summaryrefslogtreecommitdiff
path: root/lib/libc/sys/readlink.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/readlink.2')
-rw-r--r--lib/libc/sys/readlink.221
1 files changed, 17 insertions, 4 deletions
diff --git a/lib/libc/sys/readlink.2 b/lib/libc/sys/readlink.2
index 96973aa7d5e..ec15ad22ef2 100644
--- a/lib/libc/sys/readlink.2
+++ b/lib/libc/sys/readlink.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: readlink.2,v 1.13 2011/07/18 23:04:40 matthew Exp $
+.\" $OpenBSD: readlink.2,v 1.14 2013/03/31 05:07:55 guenther Exp $
.\" $NetBSD: readlink.2,v 1.7 1995/02/27 12:35:54 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)readlink.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: July 18 2011 $
+.Dd $Mdocdate: March 31 2013 $
.Dt READLINK 2
.Os
.Sh NAME
@@ -125,11 +125,24 @@ will fail if:
.It Bq Er EBADF
The
.Fa path
-argument does not specify an absolute path and the
+argument specifies a relative path and the
.Fa fd
argument is neither
.Dv AT_FDCWD
-nor a valid file descriptor open for reading.
+nor a valid file descriptor.
+.It Bq Er ENOTDIR
+The
+.Fa path
+argument specifies a relative path and the
+.Fa fd
+argument is a valid file descriptor but it does not reference a directory.
+.It Bq Er EACCES
+The
+.Fa path
+argument specifies a relative path but search permission is denied
+for the directory which the
+.Fa fd
+file descriptor references.
.El
.Sh SEE ALSO
.Xr lstat 2 ,