diff options
author | 2004-07-18 12:05:07 +0000 | |
---|---|---|
committer | 2004-07-18 12:05:07 +0000 | |
commit | 32100ad0708f533e8e8c6fe72893d0da27cdae30 (patch) | |
tree | 9e6b0edd2834d2aac6a24f7d52b4d3065db5fd8f /lib/libc | |
parent | when deleting @link, don't bother checking for md5, since we don't have any. (diff) | |
download | wireguard-openbsd-32100ad0708f533e8e8c6fe72893d0da27cdae30.tar.xz wireguard-openbsd-32100ad0708f533e8e8c6fe72893d0da27cdae30.zip |
return EINVAL if ftruncate(2) is passed a negative offset
ok millert@, miod@, marius@
Diffstat (limited to 'lib/libc')
-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 |