From fd690c8bad529cad947d11d1df4ad3d44f3a306f Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Tue, 27 Aug 1985 06:33:27 -0800 Subject: [PATCH] update error messages (mostly from sun!guy) SCCS-vsn: lib/libc/sys/access.2 6.4 SCCS-vsn: lib/libc/sys/chmod.2 6.3 SCCS-vsn: lib/libc/sys/chown.2 6.4 SCCS-vsn: lib/libc/sys/fork.2 6.2 SCCS-vsn: lib/libc/sys/link.2 6.3 SCCS-vsn: lib/libc/sys/open.2 6.3 SCCS-vsn: lib/libc/sys/ptrace.2 6.3 SCCS-vsn: lib/libc/sys/read.2 6.3 SCCS-vsn: lib/libc/sys/write.2 6.3 SCCS-vsn: lib/libc/sys/execve.2 6.4 SCCS-vsn: lib/libc/sys/acct.2 6.3 SCCS-vsn: lib/libc/sys/chdir.2 6.3 SCCS-vsn: lib/libc/compat-43/creat.2 6.4 SCCS-vsn: lib/libc/sys/mknod.2 6.3 SCCS-vsn: lib/libc/sys/mount.2 6.3 SCCS-vsn: lib/libc/sys/pipe.2 6.2 SCCS-vsn: lib/libc/sys/stat.2 6.4 SCCS-vsn: lib/libc/sys/intro.2 6.4 SCCS-vsn: lib/libc/sys/utimes.2 6.4 SCCS-vsn: lib/libc/sys/gettimeofday.2 6.5 SCCS-vsn: lib/libc/sys/getrusage.2 6.3 SCCS-vsn: lib/libc/sys/swapon.2 6.3 SCCS-vsn: lib/libc/sys/chroot.2 6.3 SCCS-vsn: lib/libc/sys/fsync.2 6.3 SCCS-vsn: lib/libc/sys/getpgrp.2 6.3 SCCS-vsn: lib/libc/gen/gethostname.3 6.2 SCCS-vsn: lib/libc/sys/getitimer.2 6.2 SCCS-vsn: lib/libc/sys/getsockopt.2 6.2 SCCS-vsn: lib/libc/sys/mkdir.2 6.4 SCCS-vsn: lib/libc/sys/readlink.2 6.4 SCCS-vsn: lib/libc/sys/rename.2 6.3 SCCS-vsn: lib/libc/sys/rmdir.2 6.3 SCCS-vsn: lib/libc/sys/symlink.2 6.3 SCCS-vsn: lib/libc/sys/truncate.2 6.4 --- usr/src/lib/libc/compat-43/creat.2 | 24 +++++++++++++++- usr/src/lib/libc/gen/gethostname.3 | 4 +-- usr/src/lib/libc/sys/access.2 | 8 ++++-- usr/src/lib/libc/sys/acct.2 | 5 +++- usr/src/lib/libc/sys/chdir.2 | 5 +++- usr/src/lib/libc/sys/chmod.2 | 6 ++++ usr/src/lib/libc/sys/chown.2 | 14 ++++++++-- usr/src/lib/libc/sys/chroot.2 | 5 +++- usr/src/lib/libc/sys/execve.2 | 5 +++- usr/src/lib/libc/sys/fork.2 | 5 +++- usr/src/lib/libc/sys/fsync.2 | 5 +++- usr/src/lib/libc/sys/getitimer.2 | 6 ++-- usr/src/lib/libc/sys/getpgrp.2 | 4 +-- usr/src/lib/libc/sys/getrusage.2 | 16 ++++++++++- usr/src/lib/libc/sys/getsockopt.2 | 12 ++++++-- usr/src/lib/libc/sys/gettimeofday.2 | 5 +++- usr/src/lib/libc/sys/intro.2 | 22 +++++++++++---- usr/src/lib/libc/sys/link.2 | 16 +++++++++-- usr/src/lib/libc/sys/mkdir.2 | 37 ++++++++++++++++++++++--- usr/src/lib/libc/sys/mknod.2 | 21 +++++++++++++- usr/src/lib/libc/sys/mount.2 | 15 ++++++++-- usr/src/lib/libc/sys/open.2 | 43 +++++++++++++++++++++++++++-- usr/src/lib/libc/sys/pipe.2 | 5 +++- usr/src/lib/libc/sys/ptrace.2 | 10 +++---- usr/src/lib/libc/sys/read.2 | 8 +++++- usr/src/lib/libc/sys/readlink.2 | 5 +++- usr/src/lib/libc/sys/rename.2 | 24 +++++++++++++++- usr/src/lib/libc/sys/rmdir.2 | 7 ++++- usr/src/lib/libc/sys/stat.2 | 8 +++++- usr/src/lib/libc/sys/swapon.2 | 27 +++++++++++++++++- usr/src/lib/libc/sys/symlink.2 | 34 ++++++++++++++++++++++- usr/src/lib/libc/sys/truncate.2 | 4 +-- usr/src/lib/libc/sys/utimes.2 | 14 ++++------ usr/src/lib/libc/sys/write.2 | 13 ++++++++- 34 files changed, 376 insertions(+), 66 deletions(-) diff --git a/usr/src/lib/libc/compat-43/creat.2 b/usr/src/lib/libc/compat-43/creat.2 index 32b932ab50..c50b853740 100644 --- a/usr/src/lib/libc/compat-43/creat.2 +++ b/usr/src/lib/libc/compat-43/creat.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)creat.2 6.3 (Berkeley) %G% +.\" @(#)creat.2 6.4 (Berkeley) %G% .\" .TH CREAT 2 "" .UC 4 @@ -90,6 +90,28 @@ The file is a directory. [EMFILE] There are already too many files open. .TP 15 +[ENFILE] +The system file table is full. +.TP 15 +[ENOSPC] +The directory in which the entry for the new file is being placed +cannot be extended because there is no space left on the file +system containing the directory. +.TP 15 +[ENOSPC] +There are no free inodes on the file system on which the +file is being created. +.TP 15 +[EDQUOT] +The directory in which the entry for the new file +is being placed cannot be extended because the +user's quota of disk blocks on the file system +containing the directory has been exhausted. +.TP 15 +[EDQUOT] +The user's quota of inodes on the file system on +which the file is being created has been exhausted. +.TP 15 [EROFS] The named file resides on a read-only file system. .TP 15 diff --git a/usr/src/lib/libc/gen/gethostname.3 b/usr/src/lib/libc/gen/gethostname.3 index 8bd8f1dfad..9dfe232e3f 100644 --- a/usr/src/lib/libc/gen/gethostname.3 +++ b/usr/src/lib/libc/gen/gethostname.3 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)gethostname.3 6.1 (Berkeley) %G% +.\" @(#)gethostname.3 6.2 (Berkeley) %G% .\" .TH GETHOSTNAME 2 "" .UC 5 @@ -51,7 +51,7 @@ The \fIname\fP or \fInamelen\fP parameter gave an invalid address. .TP 15 [EPERM] -The caller was not the super-user. +The caller tried to set the hostname and was not the super-user. .SH SEE ALSO gethostid(2) .SH BUGS diff --git a/usr/src/lib/libc/sys/access.2 b/usr/src/lib/libc/sys/access.2 index 6b460fa270..1ff415b816 100644 --- a/usr/src/lib/libc/sys/access.2 +++ b/usr/src/lib/libc/sys/access.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)access.2 6.3 (Berkeley) %G% +.\" @(#)access.2 6.4 (Berkeley) %G% .\" .TH ACCESS 2 "" .UC 4 @@ -78,8 +78,7 @@ A component of a pathname exceeded 255 characters, or an entire path name exceeded 1023 characters. .TP 15 [ENOENT] -Read, write, or execute (search) permission is requested for a null -path name or the named file does not exist. +The named file does not exist. .TP 15 [EACCES] Search permission is denied for a component of the path prefix. @@ -107,5 +106,8 @@ mode bits. [EFAULT] .I Path points outside the process's allocated address space. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .SH "SEE ALSO chmod(2), stat(2) diff --git a/usr/src/lib/libc/sys/acct.2 b/usr/src/lib/libc/sys/acct.2 index 14d1261a42..3a2f167867 100644 --- a/usr/src/lib/libc/sys/acct.2 +++ b/usr/src/lib/libc/sys/acct.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)acct.2 6.2 (Berkeley) %G% +.\" @(#)acct.2 6.3 (Berkeley) %G% .\" .TH ACCT 2 "" .UC 4 @@ -72,6 +72,9 @@ The named file resides on a read-only file system. [EFAULT] .I File points outside the process's allocated address space. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .SH "SEE ALSO" acct(5), sa(8) .SH BUGS diff --git a/usr/src/lib/libc/sys/chdir.2 b/usr/src/lib/libc/sys/chdir.2 index 7848409eef..8f1b4e8fc6 100644 --- a/usr/src/lib/libc/sys/chdir.2 +++ b/usr/src/lib/libc/sys/chdir.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)chdir.2 6.2 (Berkeley) %G% +.\" @(#)chdir.2 6.3 (Berkeley) %G% .\" .TH CHDIR 2 "" .UC 4 @@ -57,5 +57,8 @@ the path name. [EFAULT] .I Path points outside the process's allocated address space. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .SH "SEE ALSO" chroot(2) diff --git a/usr/src/lib/libc/sys/chmod.2 b/usr/src/lib/libc/sys/chmod.2 index 56703a5932..e774c4565c 100644 --- a/usr/src/lib/libc/sys/chmod.2 +++ b/usr/src/lib/libc/sys/chmod.2 @@ -95,6 +95,9 @@ The named file resides on a read-only file system. [EFAULT] .I Path points outside the process's allocated address space. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .PP .I Fchmod will fail if: @@ -108,5 +111,8 @@ refers to a socket, not to a file. .TP 15 [EROFS] The file resides on a read-only file system. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .SH "SEE ALSO" open(2), chown(2) diff --git a/usr/src/lib/libc/sys/chown.2 b/usr/src/lib/libc/sys/chown.2 index 99b9f1e552..89fd6cd705 100644 --- a/usr/src/lib/libc/sys/chown.2 +++ b/usr/src/lib/libc/sys/chown.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)chown.2 6.3 (Berkeley) %G% +.\" @(#)chown.2 6.4 (Berkeley) %G% .\" .TH CHOWN 2 "" .UC 4 @@ -75,8 +75,7 @@ Search permission is denied for a component of the path prefix. Too many symbolic links were encountered in translating the pathname. .TP 15 [EPERM] -The effective user ID does not match the owner of the file and -the effective user ID is not the super-user. +The effective user ID is not the super-user. .TP 15 [EROFS] The named file resides on a read-only file system. @@ -84,6 +83,9 @@ The named file resides on a read-only file system. [EFAULT] .I Path points outside the process's allocated address space. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .PP .I Fchown will fail if: @@ -96,7 +98,13 @@ does not refer to a valid descriptor. .I Fd refers to a socket, not a file. .TP 15 +[EPERM] +The effective user ID is not the super-user. +.TP 15 [EROFS] The named file resides on a read-only file system. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .SH "SEE ALSO" chmod(2), flock(2) diff --git a/usr/src/lib/libc/sys/chroot.2 b/usr/src/lib/libc/sys/chroot.2 index dee8978245..0fc2fa9bea 100644 --- a/usr/src/lib/libc/sys/chroot.2 +++ b/usr/src/lib/libc/sys/chroot.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)chroot.2 6.2 (Berkeley) %G% +.\" @(#)chroot.2 6.3 (Berkeley) %G% .\" .TH CHROOT 2 "" .UC 5 @@ -57,5 +57,8 @@ Too many symbolic links were encountered in translating the pathname. [EFAULT] .I Path points outside the process's allocated address space. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .SH "SEE ALSO" chdir(2) diff --git a/usr/src/lib/libc/sys/execve.2 b/usr/src/lib/libc/sys/execve.2 index f78549eccd..e8e826ae6b 100644 --- a/usr/src/lib/libc/sys/execve.2 +++ b/usr/src/lib/libc/sys/execve.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)execve.2 6.3 (Berkeley) %G% +.\" @(#)execve.2 6.4 (Berkeley) %G% .\" .TH EXECVE 2 "" .UC 4 @@ -196,6 +196,9 @@ the size values in its header. [EFAULT] \fIPath\fP\|, \fIargv\fP\|, or \fIenvp\fP point to an illegal address. +.TP 15 +[EIO] +An I/O error occurred while reading from the file system. .SH CAVEATS If a program is .I setuid diff --git a/usr/src/lib/libc/sys/fork.2 b/usr/src/lib/libc/sys/fork.2 index d87ba3e971..19c96a5789 100644 --- a/usr/src/lib/libc/sys/fork.2 +++ b/usr/src/lib/libc/sys/fork.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)fork.2 6.1 (Berkeley) %G% +.\" @(#)fork.2 6.2 (Berkeley) %G% .\" .TH FORK 2 "" .UC @@ -61,5 +61,8 @@ number of processes under execution would be exceeded. [EAGAIN] The system-imposed limit {KID_MAX} on the total number of processes under execution by a single user would be exceeded. +.TP 15 +[ENOMEM] +There is insufficient swap space for the new process. .SH "SEE ALSO" execve(2), wait(2) diff --git a/usr/src/lib/libc/sys/fsync.2 b/usr/src/lib/libc/sys/fsync.2 index d7aae5b4c7..c4461b051e 100644 --- a/usr/src/lib/libc/sys/fsync.2 +++ b/usr/src/lib/libc/sys/fsync.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)fsync.2 6.2 (Berkeley) %G% +.\" @(#)fsync.2 6.3 (Berkeley) %G% .\" .TH FSYNC 2 "" .UC 5 @@ -36,5 +36,8 @@ The \fIfsync\fP fails if: .TP 15 [EINVAL] \fIFd\fP refers to a socket, not to a file. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .SH "SEE ALSO" sync(2), sync(8), update(8) diff --git a/usr/src/lib/libc/sys/getitimer.2 b/usr/src/lib/libc/sys/getitimer.2 index 5b84158c75..5b73b25ee4 100644 --- a/usr/src/lib/libc/sys/getitimer.2 +++ b/usr/src/lib/libc/sys/getitimer.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)getitimer.2 6.1 (Berkeley) %G% +.\" @(#)getitimer.2 6.2 (Berkeley) %G% .\" .TH GETITIMER 2 "" .UC 5 @@ -113,10 +113,10 @@ in the global variable \fIerrno\fP. The possible errors are: .TP 15 [EFAULT] -The \fIvalue\fP structure specified a bad address. +The \fIvalue\fP parameter specified a bad address. .TP 15 [EINVAL] -A \fIvalue\fP structure specified a time was too large +A \fIvalue\fP parameter specified a time was too large to be handled. .SH "SEE ALSO" sigvec(2), gettimeofday(2) diff --git a/usr/src/lib/libc/sys/getpgrp.2 b/usr/src/lib/libc/sys/getpgrp.2 index 6baf0eb0f7..220a456557 100644 --- a/usr/src/lib/libc/sys/getpgrp.2 +++ b/usr/src/lib/libc/sys/getpgrp.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)getpgrp.2 6.2 (Berkeley) %G% +.\" @(#)getpgrp.2 6.3 (Berkeley) %G% .\" .TH GETPGRP 2 "" .UC 5 @@ -12,7 +12,7 @@ getpgrp \- get process group .ft B .nf pgrp = getpgrp(pid) -int prgp; +int pgrp; int pid; .fi .ft R diff --git a/usr/src/lib/libc/sys/getrusage.2 b/usr/src/lib/libc/sys/getrusage.2 index bb27ba87fa..b47e513bfc 100644 --- a/usr/src/lib/libc/sys/getrusage.2 +++ b/usr/src/lib/libc/sys/getrusage.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)getrusage.2 6.2 (Berkeley) %G% +.\" @(#)getrusage.2 6.3 (Berkeley) %G% .\" .TH GETRUSAGE 2 "" .UC 4 @@ -135,6 +135,20 @@ and account only for real i/o; data supplied by the cacheing mechanism is charged only to the first process to read or write the data. +.SH ERRORS +The possible errors for +.I getrusage +are: +.TP 15 +[EINVAL] +The +.I who +parameter is not a valid value. +.TP 15 +[EFAULT] +The address specified by the +.I rusage +parameter is not in a valid part of the process address space. .SH SEE ALSO gettimeofday(2), wait(2) .SH BUGS diff --git a/usr/src/lib/libc/sys/getsockopt.2 b/usr/src/lib/libc/sys/getsockopt.2 index aeab5b8cc4..15e5594fe2 100644 --- a/usr/src/lib/libc/sys/getsockopt.2 +++ b/usr/src/lib/libc/sys/getsockopt.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)getsockopt.2 6.1 (Berkeley) %G% +.\" @(#)getsockopt.2 6.2 (Berkeley) %G% .\" .TH GETSOCKOPT 2 "" .UC 5 @@ -92,7 +92,13 @@ The argument \fIs\fP is a file, not a socket. The option is unknown. .TP 20 [EFAULT] -The options are not in a valid part of the -process address space. +The address pointed to by +.I optval +is not in a valid part of the process address space. +For +.IR getsockopt , +this error may also be returned if +.I optlen +is not in a valid part of the process address space. .SH "SEE ALSO" socket(2), getprotoent(3N) diff --git a/usr/src/lib/libc/sys/gettimeofday.2 b/usr/src/lib/libc/sys/gettimeofday.2 index 7188af4943..ecc0eadfb5 100644 --- a/usr/src/lib/libc/sys/gettimeofday.2 +++ b/usr/src/lib/libc/sys/gettimeofday.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)gettimeofday.2 6.4 (Berkeley) %G% +.\" @(#)gettimeofday.2 6.5 (Berkeley) %G% .\" .TH GETTIMEOFDAY 2 "" .UC 4 @@ -28,6 +28,9 @@ struct timezone *tzp; returns the system's notion of the current Greenwich time and the current time zone. Time returned is expressed relative in seconds and microseconds since midnight January 1, 1970. +If +.I tzp +is NULL, the time zone information will not be returned or set. .PP The structures pointed to by .I tp diff --git a/usr/src/lib/libc/sys/intro.2 b/usr/src/lib/libc/sys/intro.2 index dd82665e6f..6ba59ca37c 100644 --- a/usr/src/lib/libc/sys/intro.2 +++ b/usr/src/lib/libc/sys/intro.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)intro.2 6.3 (Berkeley) %G% +.\" @(#)intro.2 6.4 (Berkeley) %G% .\" .TH INTRO 2 "" .UC 4 @@ -178,10 +178,14 @@ The size of a file exceeded the maximum (about .if n 1.0E9 bytes). .en 28 ENOSPC "No space left on device -During a +A .I write -to an ordinary file, -there is no free space left on the device. +to an ordinary file, the creation of a +directory or symbolic link, or the creation of a directory +entry failed because no more disk blocks are available +on the file system, or the allocation of an inode for a newly +created file failed because no more inodes are available +on the file system. .en 29 ESPIPE "Illegal seek An .I lseek @@ -309,8 +313,14 @@ was supplied to a remove directory or rename call. ...en 67 EPROCLIM "Too many processes" ...en 68 EUSERS "Too many users" .en 69 EDQUOT "Disc quota exceeded" -A file creation or write operation failed because the hard limit -for that resource had been reached. +A +.i write +to an ordinary file, the creation of a +directory or symbolic link, or the creation of a directory +entry failed because the user's quota of disk blocks was +exhausted, or the allocation of an inode for a newly +created file failed because the user's quota of inodes +was exhausted. .SH DEFINITIONS .TP 5 Process ID diff --git a/usr/src/lib/libc/sys/link.2 b/usr/src/lib/libc/sys/link.2 index eb5945cf65..10dd3ce8e5 100644 --- a/usr/src/lib/libc/sys/link.2 +++ b/usr/src/lib/libc/sys/link.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)link.2 6.2 (Berkeley) %G% +.\" @(#)link.2 6.3 (Berkeley) %G% .\" .TH LINK 2 "" .UC 4 @@ -85,8 +85,20 @@ user ID is not super-user. The link named by \fIname2\fP and the file named by \fIname1\fP are on different file systems. .TP 15 +[ENOSPC] +The directory in which the entry for the new link is being placed +cannot be extended because there is no space left on the file +system containing the directory. +.TP 15 +[EDQUOT] +The directory in which the entry for the new link +is being placed cannot be extended because the +user's quota of disk blocks on the file system +containing the directory has been exhausted. +.TP 15 [EIO] -An I/O error occurred while making the directory entry. +An I/O error occurred while reading from or writing to +the file system to make the directory entry. .TP 15 [EROFS] The requested link requires writing in a directory on a read-only file diff --git a/usr/src/lib/libc/sys/mkdir.2 b/usr/src/lib/libc/sys/mkdir.2 index da20127bf4..be3bb18c33 100644 --- a/usr/src/lib/libc/sys/mkdir.2 +++ b/usr/src/lib/libc/sys/mkdir.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)mkdir.2 6.3 (Berkeley) %G% +.\" @(#)mkdir.2 6.4 (Berkeley) %G% .\" .TH MKDIR 2 "" .UC 5 @@ -71,14 +71,43 @@ The named file resides on a read-only file system. [EEXIST] The named file exists. .TP 15 +[ENOSPC] +The directory in which the entry for the new directory is being placed +cannot be extended because there is no space left on the file +system containing the directory. +.TP 15 +[ENOSPC] +The new directory cannot be created because there +there is no space left on the file +system that will contain the directory. +.TP 15 +[ENOSPC] +There are no free inodes on the file system on which the +directory is being created. +.TP 15 +[EDQUOT] +The directory in which the entry for the new directory +is being placed cannot be extended because the +user's quota of disk blocks on the file system +containing the directory has been exhausted. +.TP 15 +[EDQUOT] +The new directory cannot be created because the user's +quota of disk blocks on the file system that will +contain the directory has been exhausted. +.TP 15 +[EDQUOT] +The user's quota of inodes on the file system on +which the directory is being created has been exhausted. +.TP 15 [EIO] An I/O error occurred while making the directory entry or allocating the inode. .TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. +.TP 15 [EFAULT] .I Path points outside the process's allocated address space. -.TP 15 -[EIO] -An I/O error occured while writing to the file system. .SH "SEE ALSO" chmod(2), stat(2), umask(2) diff --git a/usr/src/lib/libc/sys/mknod.2 b/usr/src/lib/libc/sys/mknod.2 index 8383e333a8..5e7ffbe1a8 100644 --- a/usr/src/lib/libc/sys/mknod.2 +++ b/usr/src/lib/libc/sys/mknod.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)mknod.2 6.2 (Berkeley) %G% +.\" @(#)mknod.2 6.3 (Berkeley) %G% .\" .TH MKNOD 2 "" .UC 4 @@ -81,6 +81,25 @@ The pathname contains a character with the high-order bit set. [EIO] An I/O error occurred while making the directory entry or allocating the inode. .TP 15 +[ENOSPC] +The directory in which the entry for the new node is being placed +cannot be extended because there is no space left on the file +system containing the directory. +.TP 15 +[ENOSPC] +There are no free inodes on the file system on which the +node is being created. +.TP 15 +[EDQUOT] +The directory in which the entry for the new node +is being placed cannot be extended because the +user's quota of disk blocks on the file system +containing the directory has been exhausted. +.TP 15 +[EDQUOT] +The user's quota of inodes on the file system on +which the node is being created has been exhausted. +.TP 15 [EROFS] The named file resides on a read-only file system. .TP 15 diff --git a/usr/src/lib/libc/sys/mount.2 b/usr/src/lib/libc/sys/mount.2 index 78afca9c6e..002e50fb46 100644 --- a/usr/src/lib/libc/sys/mount.2 +++ b/usr/src/lib/libc/sys/mount.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)mount.2 6.2 (Berkeley) %G% +.\" @(#)mount.2 6.3 (Berkeley) %G% .\" .TH MOUNT 2 "" .UC 4 @@ -133,8 +133,12 @@ Not enough memory was available to read the cylinder group information for the file system. .TP 15 [EIO] -An i/o error occurred while reading the super block or +An I/O error occurred while reading the super block or cylinder group information. +.TP 15 +[EFAULT] +\fISpecial\fP or \fIname\fP points outside the +process's allocated address space. .PP .I Umount may fail with one of the following errors: @@ -175,6 +179,13 @@ The requested device is not in the mount table. [EBUSY] A process is holding a reference to a file located on the file system. +.TP 15 +[EIO] +An I/O error occurred while writing the super block or +other cached file system information. +.TP 15 +[EFAULT] +\fISpecial\fP points outside the process's allocated address space. .SH "SEE ALSO" mount(8), umount(8) .SH BUGS diff --git a/usr/src/lib/libc/sys/open.2 b/usr/src/lib/libc/sys/open.2 index ad051a908a..e37ab9c97d 100644 --- a/usr/src/lib/libc/sys/open.2 +++ b/usr/src/lib/libc/sys/open.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)open.2 6.2 (Berkeley) %G% +.\" @(#)open.2 6.3 (Berkeley) %G% .\" .TH OPEN 2 "" .UC 4 @@ -98,6 +98,9 @@ or an entire path name exceeded 1023 characters. [ENOENT] O_CREAT is not set and the named file does not exist. .TP 15 +[ENOENT] +A component of the path name that must exist does not exist. +.TP 15 [EACCES] Search permission is denied for a component of the path prefix. .TP 15 @@ -105,6 +108,12 @@ Search permission is denied for a component of the path prefix. The required permissions (for reading and/or writing) are denied for the named flag. .TP 15 +[EACCES] +O_CREAT is specified, +the file does not exist, +and the directory in which it is to be created +does not permit writing. +.TP 15 [ELOOP] Too many symbolic links were encountered in translating the pathname. .TP 15 @@ -119,6 +128,9 @@ and the file is to be modified. [EMFILE] {OPEN_MAX} file descriptors are currently open. .TP 15 +[ENFILE] +The system file table is full. +.TP 15 [ENXIO] The named file is a character special or block special file, and the device associated with this special file @@ -128,6 +140,33 @@ does not exist. The O_NDELAY flag is given, and the file is a communications device on which their is no carrier present. .TP 15 +[ENOSPC] +O_CREAT is specified, +the file does not exist, +and the directory in which the entry for the new file is being placed +cannot be extended because there is no space left on the file +system containing the directory. +.TP 15 +[ENOSPC] +O_CREAT is specified, +the file does not exist, +and there are no free inodes on the file system on which the +file is being created. +.TP 15 +[EDQUOT] +O_CREAT is specified, +the file does not exist, +and the directory in which the entry for the new fie +is being placed cannot be extended because the +user's quota of disk blocks on the file system +containing the directory has been exhausted. +.TP 15 +[EDQUOT] +O_CREAT is specified, +the file does not exist, +and the user's quota of inodes on the file system on +which the file is being created has been exhausted. +.TP 15 [EIO] An I/O error occurred while making the directory entry or allocating the inode for O_CREAT. @@ -141,7 +180,7 @@ executed and the \fIopen\fP call requests write access. points outside the process's allocated address space. .TP 15 [EEXIST] -O_EXCL was specified and the file exists. +O_CREAT and O_EXCL were specified and the file exists. .TP 15 [EOPNOTSUPP] An attempt was made to open a socket (not currently implemented). diff --git a/usr/src/lib/libc/sys/pipe.2 b/usr/src/lib/libc/sys/pipe.2 index 400dc516b8..fc33a90fee 100644 --- a/usr/src/lib/libc/sys/pipe.2 +++ b/usr/src/lib/libc/sys/pipe.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)pipe.2 6.1 (Berkeley) %G% +.\" @(#)pipe.2 6.2 (Berkeley) %G% .\" .TH PIPE 2 "" .UC 4 @@ -67,6 +67,9 @@ The \fIpipe\fP call will fail if: [EMFILE] Too many descriptors are active. .TP 15 +[ENFILE] +The system file table is full. +.TP 15 [EFAULT] The \fIfildes\fP buffer is in an invalid area of the process's address space. diff --git a/usr/src/lib/libc/sys/ptrace.2 b/usr/src/lib/libc/sys/ptrace.2 index 6f2fe4578c..b3d7787fe4 100644 --- a/usr/src/lib/libc/sys/ptrace.2 +++ b/usr/src/lib/libc/sys/ptrace.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)ptrace.2 6.2 (Berkeley) %G% +.\" @(#)ptrace.2 6.3 (Berkeley) %G% .\" .TH PTRACE 2 "" .UC 4 @@ -180,16 +180,16 @@ then a \-1 is returned and the global variable \fIerrno\fP is set to indicate the error. .SH "ERRORS .TP 15 -[EINVAL] +[EIO] The request code is invalid. .TP 15 -[EINVAL] +[ESRCH] The specified process does not exist. .TP 15 -[EINVAL] +[EIO] The given signal number is invalid. .TP 15 -[EFAULT] +[EIO] The specified address is out of bounds. .TP 15 [EPERM] diff --git a/usr/src/lib/libc/sys/read.2 b/usr/src/lib/libc/sys/read.2 index bdcf4ef48d..487274c3cf 100644 --- a/usr/src/lib/libc/sys/read.2 +++ b/usr/src/lib/libc/sys/read.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)read.2 6.2 (Berkeley) %G% +.\" @(#)read.2 6.3 (Berkeley) %G% .\" .TH READ 2 "" .UC 4 @@ -110,6 +110,9 @@ will fail if one or more of the following are true: [EFAULT] \fIBuf\fP points outside the allocated address space. .TP 15 +[EIO] +An I/O error occurred while reading from the file system. +.TP 15 [EINTR] A read from a slow device was interrupted before any data arrived by the delivery of a signal. @@ -135,5 +138,8 @@ The sum of the values in the .I iov array overflowed a 32-bit integer. +.TP 15 +[EFAULT] +Part of the \fIiov\fP points outside the process's allocated address space. .SH "SEE ALSO" dup(2), open(2), pipe(2), socket(2), socketpair(2) diff --git a/usr/src/lib/libc/sys/readlink.2 b/usr/src/lib/libc/sys/readlink.2 index 417e900346..17f768fb07 100644 --- a/usr/src/lib/libc/sys/readlink.2 +++ b/usr/src/lib/libc/sys/readlink.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)readlink.2 6.3 (Berkeley) %G% +.\" @(#)readlink.2 6.4 (Berkeley) %G% .\" .TH READLINK 2 "" .UC 5 @@ -56,6 +56,9 @@ Too many symbolic links were encountered in translating the pathname. [EINVAL] The named file is not a symbolic link. .TP 15 +[EIO] +An I/O error occurred while reading from the file system. +.TP 15 [EFAULT] .I Buf extends outside the process's allocated address space. diff --git a/usr/src/lib/libc/sys/rename.2 b/usr/src/lib/libc/sys/rename.2 index 8c83abb11d..4abce4e47b 100644 --- a/usr/src/lib/libc/sys/rename.2 +++ b/usr/src/lib/libc/sys/rename.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)rename.2 6.2 (Berkeley) %G% +.\" @(#)rename.2 6.3 (Berkeley) %G% .\" .TH RENAME 2 "" .UC 5 @@ -79,6 +79,17 @@ A component of either path prefix denies search permission. The requested link requires writing in a directory with a mode that denies write permission. .TP 15 +[EPERM] +The directory containing \fIfrom\fP is marked sticky, +and neither the containing directory nor \fIfrom\fP +are owned by the effective user ID. +.TP 15 +[EPERM] +The \fIto\fP file exists, +the directory containing \fIto\fP is marked sticky, +and neither the containing directory nor \fIto\fP +are owned by the effective user ID. +.TP 15 [ELOOP] Too many symbolic links were encountered in translating either pathname. .TP 15 @@ -99,6 +110,17 @@ are on different logical devices (file systems). Note that this error code will not be returned if the implementation permits cross-device links. .TP 15 +[ENOSPC] +The directory in which the entry for the new name is being placed +cannot be extended because there is no space left on the file +system containing the directory. +.TP 15 +[EDQUOT] +The directory in which the entry for the new name +is being placed cannot be extended because the +user's quota of disk blocks on the file system +containing the directory has been exhausted. +.TP 15 [EIO] An I/O error occurred while making or updating a directory entry. .TP 15 diff --git a/usr/src/lib/libc/sys/rmdir.2 b/usr/src/lib/libc/sys/rmdir.2 index 282eee9404..49535873fd 100644 --- a/usr/src/lib/libc/sys/rmdir.2 +++ b/usr/src/lib/libc/sys/rmdir.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)rmdir.2 6.2 (Berkeley) %G% +.\" @(#)rmdir.2 6.3 (Berkeley) %G% .\" .TH RMDIR 2 "" .UC 5 @@ -55,6 +55,11 @@ Search permission is denied for a component of the path prefix. Write permission is denied on the directory containing the link to be removed. .TP 15 +[EPERM] +The directory containing the directory to be removed is marked sticky, +and neither the containing directory nor the directory to be removed +are owned by the effective user ID. +.TP 15 [EBUSY] The directory to be removed is the mount point for a mounted file system. diff --git a/usr/src/lib/libc/sys/stat.2 b/usr/src/lib/libc/sys/stat.2 index 39bc8d72a4..89155e8945 100644 --- a/usr/src/lib/libc/sys/stat.2 +++ b/usr/src/lib/libc/sys/stat.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)stat.2 6.3 (Berkeley) %G% +.\" @(#)stat.2 6.4 (Berkeley) %G% .\" .TH STAT 2 "" .UC 4 @@ -174,6 +174,9 @@ Too many symbolic links were encountered in translating the pathname. or .I name points to an invalid address. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .PP .I Fstat will fail if one or both of the following are true: @@ -185,6 +188,9 @@ is not a valid open file descriptor. [EFAULT] .I Buf points to an invalid address. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .SH CAVEAT The fields in the stat structure currently marked .IR st_spare1 , diff --git a/usr/src/lib/libc/sys/swapon.2 b/usr/src/lib/libc/sys/swapon.2 index d4bd82a9e0..fc1ef13d13 100644 --- a/usr/src/lib/libc/sys/swapon.2 +++ b/usr/src/lib/libc/sys/swapon.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)swapon.2 6.2 (Berkeley) %G% +.\" @(#)swapon.2 6.3 (Berkeley) %G% .\" .TH SWAPON 2 "" .UC 4 @@ -49,6 +49,31 @@ Too many symbolic links were encountered in translating the pathname. .TP 15 [EPERM] The caller is not the super-user. +.TP 15 +[ENOTBLK] +.I Special +is not a block device. +.TP 15 +[EBUSY] +The device specified by \fIspecial\fP has already +been made available for swapping +.TP 15 +[EINVAL] +The device configured by \fIspecial\fP was not +configured into the system as a swap device. +.TP 15 +[ENXIO] +The major device number of +.I special +is out of range (this indicates no device driver exists +for the associated hardware). +.TP 15 +[EIO] +An I/O error occurred while opening the swap device. +.TP 15 +[EFAULT] +.I Special +points outside the process's allocated address space. .SH "SEE ALSO" swapon(8), config(8) .SH BUGS diff --git a/usr/src/lib/libc/sys/symlink.2 b/usr/src/lib/libc/sys/symlink.2 index a78502473b..9fd92ed6a5 100644 --- a/usr/src/lib/libc/sys/symlink.2 +++ b/usr/src/lib/libc/sys/symlink.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)symlink.2 6.2 (Berkeley) %G% +.\" @(#)symlink.2 6.3 (Berkeley) %G% .\" .TH SYMLINK 2 "" .UC 5 @@ -64,6 +64,38 @@ or writing out the link contents of \fIname2\fP. [EROFS] The file \fIname2\fP would reside on a read-only file system. .TP 15 +[ENOSPC] +The directory in which the entry for the new symbolic link is being placed +cannot be extended because there is no space left on the file +system containing the directory. +.TP 15 +[ENOSPC] +The new symbolic link cannot be created because there +there is no space left on the file +system that will contain the symbolic link. +.TP 15 +[ENOSPC] +There are no free inodes on the file system on which the +symbolic link is being created. +.TP 15 +[EDQUOT] +The directory in which the entry for the new symbolic link +is being placed cannot be extended because the +user's quota of disk blocks on the file system +containing the directory has been exhausted. +.TP 15 +[EDQUOT] +The new symbolic link cannot be created because the user's +quota of disk blocks on the file system that will +contain the symbolic link has been exhausted. +.TP 15 +[EDQUOT] +The user's quota of inodes on the file system on +which the symbolic link is being created has been exhausted. +.TP 15 +[EIO] +An I/O error occurred while making the directory entry or allocating the inode. +.TP 15 [EFAULT] .I Name1 or diff --git a/usr/src/lib/libc/sys/truncate.2 b/usr/src/lib/libc/sys/truncate.2 index 7450743a69..15fd33108b 100644 --- a/usr/src/lib/libc/sys/truncate.2 +++ b/usr/src/lib/libc/sys/truncate.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)truncate.2 6.3 (Berkeley) %G% +.\" @(#)truncate.2 6.4 (Berkeley) %G% .\" .TH TRUNCATE 2 "" .UC 5 @@ -73,7 +73,7 @@ The file is a pure procedure (shared text) file that is being executed. An I/O error occurred updating the inode. .TP 15 [EFAULT] -.I Name +.I Path points outside the process's allocated address space. .PP .I Ftruncate diff --git a/usr/src/lib/libc/sys/utimes.2 b/usr/src/lib/libc/sys/utimes.2 index 1f21425ec0..9d679f1c4b 100644 --- a/usr/src/lib/libc/sys/utimes.2 +++ b/usr/src/lib/libc/sys/utimes.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)utimes.2 6.3 (Berkeley) %G% +.\" @(#)utimes.2 6.4 (Berkeley) %G% .\" .TH UTIMES 2 "" .UC 4 @@ -63,16 +63,14 @@ The process is not super-user and not the owner of the file. [EACCES] Search permission is denied for a component of the path prefix. .TP 15 -[EACCES] -The effective user ID is not super-user and not the -owner of the file and write access to the file -is denied. -.TP 15 [EROFS] The file system containing the file is mounted read-only. .TP 15 [EFAULT] -.I Tvp -points outside the process's allocated address space. +.I File +or \fItvp\fP points outside the process's allocated address space. +.TP 15 +[EIO] +An I/O error occurred while reading or writing the affected inode. .SH SEE ALSO stat(2) diff --git a/usr/src/lib/libc/sys/write.2 b/usr/src/lib/libc/sys/write.2 index 10d8e22cd9..b3af055146 100644 --- a/usr/src/lib/libc/sys/write.2 +++ b/usr/src/lib/libc/sys/write.2 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)write.2 6.2 (Berkeley) %G% +.\" @(#)write.2 6.3 (Berkeley) %G% .\" .TH WRITE 2 "" .UC 4 @@ -87,5 +87,16 @@ file size limit or the maximum file size. [EFAULT] Part of \fIiov\fP or data to be written to the file points outside the process's allocated address space. +.TP 15 +[ENOSPC] +There is no free space remaining on the file system +containing the file. +.TP 15 +[EDQUOT] +The user's quota of disk blocks on the file system +containing the file has been exhausted. +.TP 15 +[EIO] +An I/O error occurred while reading from or writing to the file system. .SH "SEE ALSO" lseek(2), open(2), pipe(2) -- 2.20.1