Module Name: src Committed By: njoly Date: Sun Jul 28 21:24:12 UTC 2013
Modified Files: src/lib/libc/sys: readlink.2 Log Message: Add readlink(2) specific errors. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/lib/libc/sys/readlink.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/readlink.2 diff -u src/lib/libc/sys/readlink.2:1.30 src/lib/libc/sys/readlink.2:1.31 --- src/lib/libc/sys/readlink.2:1.30 Sun Jan 13 08:15:02 2013 +++ src/lib/libc/sys/readlink.2 Sun Jul 28 21:24:12 2013 @@ -1,4 +1,4 @@ -.\" $NetBSD: readlink.2,v 1.30 2013/01/13 08:15:02 dholland Exp $ +.\" $NetBSD: readlink.2,v 1.31 2013/07/28 21:24:12 njoly Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -107,6 +107,8 @@ buf[len] = '\e0'; .Ed .Sh ERRORS .Fn readlink +and +.Fn readlinkat will fail if: .Bl -tag -width Er .It Bq Er EACCES @@ -131,6 +133,24 @@ The named file does not exist. .It Bq Er ENOTDIR A component of the path prefix is not a directory. .El +.Pp +In addition, +.Fn readlinkat +will fail if: +.Bl -tag -width Er +.It Bq Er EBADF +.Fa path +does not specify an absolute path and +.Fa fd +is neither +.Dv AT_FDCWD +nor a valid file descriptor open for reading or searching. +.It Bq Er ENOTDIR +.Fa path +is not an absolute path and +.Fa fd +is a file descriptor associated with a non-directory file. +.El .Sh SEE ALSO .Xr lstat 2 , .Xr stat 2 ,