title: Get real path of a symlink
body: <p>Suppose that I want to get the real path of a symlink. I know that both <code>readlink</code> and <code>stat</code> system calls can dereference the link and give me its real path. Do they operate in the same way (only regarding the dereferencing, I know that <code>stat</code> does lots more)? Should I prefer one over the other?</p>