From 9a0cabd9e4baeea5e32666e02af09612d5b38211 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Sat, 16 Oct 2004 09:53:35 +0000 Subject: [PATCH] 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 --- lib/libc/sys/read.2 | 4 ++-- 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 1e98f3a3bb6..b3dfa925572 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 4687e3bab6a..55389c0a48f 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