read(), pread(), write(), and pwrite() return EINVAL if they are asked

for more than INT_MAX bytes.
This commit is contained in:
Colin Percival 2005-02-10 20:09:01 +00:00
parent 6cc7bd9464
commit 75fa96cc9b
2 changed files with 10 additions and 0 deletions

View File

@ -180,6 +180,11 @@ is before the end-of-file, and
.Fa offset
is greater than or equal to the offset maximum established
for this file system.
.It Bq Er EINVAL
The value
.Fa nbytes
is greater than
.Dv INT_MAX .
.El
.Pp
In addition,

View File

@ -192,6 +192,11 @@ Use
.Xr disklabel 8
.Fl W
to enable writing on the disk label area.
.It Bq Er EINVAL
The value
.Fa nbytes
is greater than
.Dv INT_MAX .
.El
.Pp
In addition,