diff options
Diffstat (limited to 'lib/libc/sys/write.2')
-rw-r--r-- | lib/libc/sys/write.2 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2 index 75b16f040b4..f5c8460aac5 100644 --- a/lib/libc/sys/write.2 +++ b/lib/libc/sys/write.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: write.2,v 1.34 2011/11/05 17:55:49 guenther Exp $ +.\" $OpenBSD: write.2,v 1.35 2011/11/06 12:07:22 deraadt 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: November 5 2011 $ +.Dd $Mdocdate: November 6 2011 $ .Dt WRITE 2 .Os .Sh NAME @@ -67,7 +67,7 @@ performs the same action, but gathers the output data from the .Fa iovcnt buffers specified by the members of the .Fa iov -array: iov[0], iov[1], ..., iov[iovcnt\|-\|1]. +array: iov[0], iov[1], ..., iov[iovcnt-1]. .Fn pwrite and .Fn pwritev @@ -161,10 +161,6 @@ is not a valid descriptor open for writing. .It Bq Er EFBIG An attempt was made to write a file that exceeds the process's file size limit or the maximum file size. -.It Bq Er EINVAL -The pointer associated with -.Fa d -was negative. .It Bq Er ENOSPC There is no free space remaining on the file system containing the file. .It Bq Er EDQUOT @@ -210,7 +206,7 @@ may return the following error: .It Bq Er EINVAL .Fa nbytes was larger than -.Ev SSIZE_MAX . +.Dv SSIZE_MAX . .El .Pp .Fn pwrite @@ -218,6 +214,9 @@ and .Fn pwritev may return the following error: .Bl -tag -width Er +.It Bq Er EINVAL +.Fa offset +was negative. .It Bq Er ESPIPE .Fa d is associated with a pipe, socket, FIFO, or tty. |