diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-05 16:49:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-05 16:49:39 +0000 |
commit | 37fed92bb1074c178ecf93aa401343bf877aaadd (patch) | |
tree | 53bb601bd32184a318e18bce0ec3a27fd3c39def | |
parent | fc94ecf7084af60eda925fe2897edf186f2afa3b (diff) |
IOV_MAX, not UIO_MAXIOV
-rw-r--r-- | lib/libc/sys/read.2 | 9 | ||||
-rw-r--r-- | lib/libc/sys/recv.2 | 13 | ||||
-rw-r--r-- | lib/libc/sys/send.2 | 13 | ||||
-rw-r--r-- | lib/libc/sys/write.2 | 6 |
4 files changed, 27 insertions, 14 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index 9f42215bf7c..c6eaf4997fb 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: read.2,v 1.5 1998/07/28 19:47:10 millert Exp $ +.\" $OpenBSD: read.2,v 1.6 1998/08/05 16:49:34 millert Exp $ .\" $NetBSD: read.2,v 1.6 1995/02/27 12:35:47 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -115,7 +115,7 @@ Note that will fail if the value of .Fa iovcnt exceedes the constant -.Fa UIO_MAXIOV . +.Dv IOV_MAX . .Pp .Sh RETURN VALUES If successful, the @@ -157,7 +157,7 @@ may return following error: .It Bq Er EINVAL .Fa nbytes was larger than -.Ev SSIZE_MAX . +.Dv SSIZE_MAX . .El .Pp Also, @@ -167,8 +167,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 +.Dv IOV_MAX . .It Bq Er EINVAL The sum of the .Fa iov_len diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2 index 5dea0e73042..78a74c84f78 100644 --- a/lib/libc/sys/recv.2 +++ b/lib/libc/sys/recv.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: recv.2,v 1.8 1998/07/28 19:47:14 millert Exp $ +.\" $OpenBSD: recv.2,v 1.9 1998/08/05 16:49:38 millert Exp $ .\" $NetBSD: recv.2,v 1.6 1995/02/27 12:36:08 cgd Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 @@ -268,12 +268,12 @@ may return following error: .It Bq Er EINVAL .Fa len was larger than -.Ev SSIZE_MAX . +.Dv SSIZE_MAX . .El .Pp Also, .Fn recvmsg -may return following error: +may return following errors: .Bl -tag -width Er .It Bq Er EINVAL The sum of the @@ -282,6 +282,13 @@ values in the .Fa msg_iov array overflowed an .Em ssize_t . +.It Bq Er EMSGSIZE +The +.Fa msg_iovlen +member of +.Fa msg +was less than 0 or larger than +.Dv IOV_MAX . .El .Sh SEE ALSO .Xr fcntl 2 , diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2 index 2e522a1be9f..15e1b6e09b3 100644 --- a/lib/libc/sys/send.2 +++ b/lib/libc/sys/send.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: send.2,v 1.7 1998/07/28 19:47:12 millert Exp $ +.\" $OpenBSD: send.2,v 1.8 1998/08/05 16:49:37 millert Exp $ .\" $NetBSD: send.2,v 1.6 1996/01/15 01:17:18 thorpej Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -169,12 +169,12 @@ may return following error: .It Bq Er EINVAL .Fa len was larger than -.Ev SSIZE_MAX . +.Dv SSIZE_MAX . .El .Pp Also, .Fn sendmsg -may return following error: +may return following errors: .Bl -tag -width Er .It Bq Er EINVAL The sum of the @@ -183,6 +183,13 @@ values in the .Fa msg_iov array overflowed an .Em ssize_t . +.It Bq Er EMSGSIZE +The +.Fa msg_iovlen +member of +.Fa msg +was less than 0 or larger than +.Dv IOV_MAX . .El .Sh SEE ALSO .Xr fcntl 2 , diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2 index 5acf9029136..df0585b7049 100644 --- a/lib/libc/sys/write.2 +++ b/lib/libc/sys/write.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: write.2,v 1.6 1998/07/28 19:47:11 millert Exp $ +.\" $OpenBSD: write.2,v 1.7 1998/08/05 16:49:35 millert Exp $ .\" $NetBSD: write.2,v 1.6 1995/02/27 12:39:43 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -130,7 +130,7 @@ Note that will fail if the value of .Fa iovcnt exceedes the constant -.Fa UIO_MAXIOV . +.Dv IOV_MAX . .Sh RETURN VALUES Upon successful completion the number of bytes which were written is returned. Otherwise a -1 is returned and the global variable @@ -194,7 +194,7 @@ may return one of the following errors: .It Bq Er EINVAL .Fa Iovcnt was less than or equal to 0, or greater than -.Fa UIO_MAXIOV . +.Dv IOV_MAX . .It Bq Er EINVAL The sum of the .Fa iov_len |