diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2004-07-18 12:05:08 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2004-07-18 12:05:08 +0000 |
commit | 6c018fb721847e86bbfbbb3b93be011eadd837e6 (patch) | |
tree | 8e38a98e25e96937770a58bcf1c817e3a5c6b1e9 /lib/libc/sys | |
parent | beb8886edd5ae075dd280187280e6e8300a1d5d9 (diff) |
return EINVAL if ftruncate(2) is passed a negative offset
ok millert@, miod@, marius@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/truncate.2 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2 index 7f519cbb63b..ee4f1aeb3e4 100644 --- a/lib/libc/sys/truncate.2 +++ b/lib/libc/sys/truncate.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: truncate.2,v 1.11 2003/06/02 20:18:39 millert Exp $ +.\" $OpenBSD: truncate.2,v 1.12 2004/07/18 12:05:07 avsm Exp $ .\" $NetBSD: truncate.2,v 1.7 1995/02/27 12:39:00 cgd Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -114,6 +114,10 @@ references a socket, not a file. The .Fa fd is not open for writing. +.It Bq Er EINVAL +The +.Fa length +is a negative value. .El .Sh SEE ALSO .Xr open 2 |