diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2009-12-30 09:46:24 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2009-12-30 09:46:24 +0000 |
commit | 1bb735affa60add8b6cfffbf555c05714d99fa09 (patch) | |
tree | b2128ceed6f1f3fcaa1de80bb592eaba29bd0c67 /lib/libc/sys/write.2 | |
parent | da18af90f0bebfab92281495b4fc96960da6644d (diff) |
Document ESPIPE and make EFAULT cover all functions.
jmc@ deraadt@ ok
Diffstat (limited to 'lib/libc/sys/write.2')
-rw-r--r-- | lib/libc/sys/write.2 | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2 index 6ded0b365cd..c7d124b03e4 100644 --- a/lib/libc/sys/write.2 +++ b/lib/libc/sys/write.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: write.2,v 1.32 2009/12/29 10:25:43 sobrado Exp $ +.\" $OpenBSD: write.2,v 1.33 2009/12/30 09:46:23 fgsch Exp $ .\" $NetBSD: write.2,v 1.6 1995/02/27 12:39:43 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)write.2 8.5 (Berkeley) 4/2/94 .\" -.Dd $Mdocdate: December 29 2009 $ +.Dd $Mdocdate: December 30 2009 $ .Dt WRITE 2 .Os .Sh NAME @@ -182,6 +182,12 @@ An I/O error occurred while reading from or writing to the file system. .It Bq Er EAGAIN The file was marked for non-blocking I/O, and no data could be written immediately. +.It Bq Er EFAULT +Part of +.Fa iov +or +.Fa buf +points outside the process's allocated address space. .El .Pp In addition, @@ -190,18 +196,22 @@ and .Fn pwrite may return the following error: .Bl -tag -width Er -.It Bq Er EFAULT -Part of -.Fa iov -or data to be written to the file points outside the process's -allocated address space. .It Bq Er EINVAL .Fa nbytes was larger than .Ev SSIZE_MAX . .El .Pp -Also, +.Fn pwrite +and +.Fn pwritev +may return the following error: +.Bl -tag -width Er +.It Bq Er ESPIPE +.Fa d +is associated with a pipe, socket, or FIFO. +.El +.Pp .Fn writev and .Fn pwritev |