X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fposix-functions%2Freadlink.texi;h=b1218f6c26a61461a0e3ffdc3d25392856cc724f;hb=0510d19e64a0c3cfdd7ebe31866be9b45229590a;hp=959f62d7a377ee309a0a884950197d4b3db466a4;hpb=5835d9b52879c334f16e747c54be8ec9c62e8536;p=pspp diff --git a/doc/posix-functions/readlink.texi b/doc/posix-functions/readlink.texi index 959f62d7a3..b1218f6c26 100644 --- a/doc/posix-functions/readlink.texi +++ b/doc/posix-functions/readlink.texi @@ -31,4 +31,12 @@ directories, Cygwin sets @code{errno} to @code{ENOENT} or @code{EIO} instead of 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}. +@item +Symlink contents do not always have a trailing null byte, and there is +no indication if symlink contents were truncated if the return value +matches the length. Furthermore, AIX 5.1 and HP-UX 11 set +@code{errno} to @code{ERANGE} rather than returning truncated +contents, and Linux sets @code{errno} to @code{EINVAL} if the +requested length is zero. Use the gnulib module areadlink for +improved ability to read symlink contents. @end itemize