diff options
author | 1996-12-13 21:20:50 +0000 | |
---|---|---|
committer | 1996-12-13 21:20:50 +0000 | |
commit | 3212d7665ef9937f47531f305acf0eadb4c55639 (patch) | |
tree | 1c18b6b8df05c29756615877f79c5c7a10056a7b /lib/libc/sys/write.2 | |
parent | fix comments regarding {*path,sys}conf() (diff) | |
download | wireguard-openbsd-3212d7665ef9937f47531f305acf0eadb4c55639.tar.xz wireguard-openbsd-3212d7665ef9937f47531f305acf0eadb4c55639.zip |
make UIO_MAXIOV note more prominent
Diffstat (limited to 'lib/libc/sys/write.2')
-rw-r--r-- | lib/libc/sys/write.2 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2 index bb4813789d3..56a32fb542d 100644 --- a/lib/libc/sys/write.2 +++ b/lib/libc/sys/write.2 @@ -55,8 +55,8 @@ attempts to write of data to the object referenced by the descriptor .Fa d from the buffer pointed to by -.Fa buf . -.Fn Writev +.Fa buf . +.Fn \ Writev performs the same action, but gathers the output data from the .Fa iovcnt @@ -117,6 +117,13 @@ and may write fewer bytes than requested; the return value must be noted, and the remainder of the operation should be retried when possible. +.Pp +Note that +.Fn writev +will fail if the value of +.Fa iovcnt +exceedes the constant +.Fa UIO_MAXIOV . .Sh RETURN VALUES Upon successful completion the number of bytes which were written is returned. Otherwise a -1 is returned and the global variable @@ -170,7 +177,7 @@ may return one of the following errors: .It Bq Er EINVAL .Fa Iovcnt was less than or equal to 0, or greater than -.Dv {UIO_MAXIOV} . +.Fa UIO_MAXIOV . .It Bq Er EINVAL One of the .Fa iov_len |