diff options
author | yar <yar@FreeBSD.org> | 2004-10-16 09:53:35 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2004-10-16 09:53:35 +0000 |
commit | 3cb7a307573d2ecba05b19a4bd89cc597b85e97e (patch) | |
tree | 9e692a1c82b77040b403bf5297cb2a2f163e3ebb | |
parent | ada175da60c0a26c50bcad3188aa792ba00deef1 (diff) | |
download | FreeBSD-src-3cb7a307573d2ecba05b19a4bd89cc597b85e97e.zip FreeBSD-src-3cb7a307573d2ecba05b19a4bd89cc597b85e97e.tar.gz |
Explain it is a negative offset that EINVAL may indicate.
Now readers won't get an impression that pointing to beyond
the current end of file will result in EINVAL.
MFC after: 1 week
-rw-r--r-- | lib/libc/sys/read.2 | 4 | ||||
-rw-r--r-- | lib/libc/sys/write.2 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2 index 1e98f3a..b3dfa92 100644 --- a/lib/libc/sys/read.2 +++ b/lib/libc/sys/read.2 @@ -32,7 +32,7 @@ .\" @(#)read.2 8.4 (Berkeley) 2/26/94 .\" $FreeBSD$ .\" -.Dd February 26, 1994 +.Dd October 16, 2004 .Dt READ 2 .Os .Sh NAME @@ -215,7 +215,7 @@ The system call may also return the following errors: .Bl -tag -width Er .It Bq Er EINVAL -The specified file offset is invalid. +The specified file offset is invalid, i.e. negative. .It Bq Er ESPIPE The file descriptor is associated with a pipe, socket, or FIFO. .El diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2 index 4687e3b..55389c0 100644 --- a/lib/libc/sys/write.2 +++ b/lib/libc/sys/write.2 @@ -32,7 +32,7 @@ .\" @(#)write.2 8.5 (Berkeley) 4/2/94 .\" $FreeBSD$ .\" -.Dd April 2, 1994 +.Dd October 16, 2004 .Dt WRITE 2 .Os .Sh NAME @@ -231,7 +231,7 @@ The system call may also return the following errors: .Bl -tag -width Er .It Bq Er EINVAL -The specified file offset is invalid. +The specified file offset is invalid, i.e. negative. .It Bq Er ESPIPE The file descriptor is associated with a pipe, socket, or FIFO. .El |