Rename two directories: headers -> posix-headers, functions -> posix-functions.
[gnulib.git] / doc / posix-functions / readlink.texi
1 @node readlink
2 @section @code{readlink}
3 @findex readlink
4
5 POSIX specification: @url{http://www.opengroup.org/susv3xsh/readlink.html}
6
7 Gnulib module: readlink
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 mingw.
14 @end itemize
15
16 Portability problems not fixed by Gnulib:
17 @itemize
18 @item
19 When @code{readlink} is called on a directory: In the case of NFS mounted
20 directories, Cygwin sets @code{errno} to @code{ENOENT} or @code{EIO} instead of
21 @code{EINVAL}.  To avoid this problem, check for a directory before calling
22 @code{readlink}.
23 @item
24 When @code{readlink} is called on a file that is not a symbolic link:
25 Irix may set @code{errno} to @code{ENXIO} instead of @code{EINVAL}.  Cygwin
26 may set errno to @code{EACCES} instead of @code{EINVAL}.
27 @end itemize