From bd98f15ceaa8a2ea93029fb008fb73ea400971eb Mon Sep 17 00:00:00 2001 From: guenther Date: Thu, 28 Mar 2013 20:01:18 +0000 Subject: pathconf/fpathconf are now compliant with POSIX-2008. Adjust the errnos a bit. --- lib/libc/sys/pathconf.2 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'lib/libc') 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 -- cgit v1.2.3-59-g8ed1b