mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
- truncate(2) returns EFBIG if the length argument was greater than the
maximum file size. - truncate(2) returns EINVAL if the length argument was less than 0.
This commit is contained in:
parent
61b2399c19
commit
0b0bc2bb7c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165192
|
@ -32,7 +32,7 @@
|
|||
.\" @(#)truncate.2 8.1 (Berkeley) 6/4/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd December 9, 2006
|
||||
.Dd December 13, 2006
|
||||
.Dt TRUNCATE 2
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -102,6 +102,14 @@ The named file is a directory.
|
|||
The named file resides on a read-only file system.
|
||||
.It Bq Er ETXTBSY
|
||||
The file is a pure procedure (shared text) file that is being executed.
|
||||
.It Bq Er EFBIG
|
||||
The
|
||||
.Fa length
|
||||
argument was greater than the maximum file size.
|
||||
.It Bq Er EINVAL
|
||||
The
|
||||
.Fa length
|
||||
argument was less than 0.
|
||||
.It Bq Er EIO
|
||||
An I/O error occurred updating the inode.
|
||||
.It Bq Er EFAULT
|
||||
|
|
Loading…
Reference in a new issue