summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authornatano <natano@openbsd.org>2016-02-28 14:38:25 +0000
committernatano <natano@openbsd.org>2016-02-28 14:38:25 +0000
commit16eed501d2d0499dbe5563f37fb092b3d6d1b2e3 (patch)
tree9163561a33c81b2b6854db3419a7f91d82752239 /lib/libc/sys
parentRepair the namegen function to make ffs regress useful again. (diff)
downloadwireguard-openbsd-16eed501d2d0499dbe5563f37fb092b3d6d1b2e3.tar.xz
wireguard-openbsd-16eed501d2d0499dbe5563f37fb092b3d6d1b2e3.zip
fruncate() returns EFBIG when length exceeds the max file size.
ok mpi@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/truncate.28
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2
index d66a6e9fa67..b5425140857 100644
--- a/lib/libc/sys/truncate.2
+++ b/lib/libc/sys/truncate.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: truncate.2,v 1.18 2015/09/10 17:55:21 schwarze Exp $
+.\" $OpenBSD: truncate.2,v 1.19 2016/02/28 14:38:25 natano Exp $
.\" $NetBSD: truncate.2,v 1.7 1995/02/27 12:39:00 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)truncate.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: September 10 2015 $
+.Dd $Mdocdate: February 28 2016 $
.Dt TRUNCATE 2
.Os
.Sh NAME
@@ -70,6 +70,10 @@ will succeed unless:
The
.Fa length
is a negative value.
+.It Bq Er EFBIG
+The
+.Fa length
+exceeds the maximum file size of the underlying filesystem.
.It Bq Er EIO
An I/O error occurred updating the inode.
.El