summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/pathconf.219
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/libc/sys/pathconf.2 b/lib/libc/sys/pathconf.2
index effa98da931..fdbf7dd5ce3 100644
--- a/lib/libc/sys/pathconf.2
+++ b/lib/libc/sys/pathconf.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pathconf.2,v 1.18 2013/03/28 03:29:45 guenther Exp $
+.\" $OpenBSD: pathconf.2,v 1.19 2013/03/28 20:01:18 guenther Exp $
.\" $NetBSD: pathconf.2,v 1.2 1995/02/27 12:35:22 cgd Exp $
.\"
.\" Copyright (c) 1993
@@ -161,6 +161,8 @@ argument is invalid.
.It Bq Er EINVAL
The implementation does not support an association of the variable
name with the associated file.
+.It Bq Er EIO
+An I/O error occurred while reading from the file system.
.El
.Pp
.Fn pathconf
@@ -182,8 +184,9 @@ The named file does not exist.
Search permission is denied for a component of the path prefix.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
-.It Bq Er EIO
-An I/O error occurred while reading from or writing to the file system.
+.It Bq Er EFAULT
+.Fa path
+points outside the process's allocated address space.
.El
.Pp
.Fn fpathconf
@@ -192,12 +195,18 @@ will fail if:
.It Bq Er EBADF
.Fa fd
is not a valid open file descriptor.
-.It Bq Er EIO
-An I/O error occurred while reading from or writing to the file system.
.El
.Sh SEE ALSO
.Xr sysconf 3 ,
.Xr sysctl 3
+.Sh STANDARDS
+The
+.Nm pathconf
+and
+.Nm fpathconf
+functions conform to
+.St -p1003.1-2008 .
+.Pp
.Sh HISTORY
The
.Nm pathconf