summaryrefslogtreecommitdiff
path: root/doc/posix-functions/readlink.texi
blob: e2a2a1e3adf02534a64c456a5e25ec24a5e44fad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@node readlink
@section @code{readlink}
@findex readlink

POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/readlink.html}

Gnulib module: readlink

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
When @code{readlink} is called on a directory: In the case of NFS mounted
directories, Cygwin sets @code{errno} to @code{ENOENT} or @code{EIO} instead of
@code{EINVAL}.  To avoid this problem, check for a directory before calling
@code{readlink}.
@item
When @code{readlink} is called on a file that is not a symbolic link:
Irix may set @code{errno} to @code{ENXIO} instead of @code{EINVAL}.  Cygwin
may set errno to @code{EACCES} instead of @code{EINVAL}.
@end itemize