mirror of https://github.com/mkerrisk/man-pages
parent
01538d0d51
commit
3ade1aa962
|
@ -38,7 +38,7 @@
|
|||
.\" Modified 2002-04-06 by Andries Brouwer <aeb@cwi.nl>
|
||||
.\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
|
||||
.\"
|
||||
.TH TRUNCATE 2 2007-07-26 "Linux" "Linux Programmer's Manual"
|
||||
.TH TRUNCATE 2 2008-07-04 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
truncate, ftruncate \- truncate a file to a specified length
|
||||
.SH SYNOPSIS
|
||||
|
@ -125,6 +125,13 @@ is negative or larger than the maximum file size.
|
|||
.B EIO
|
||||
An I/O error occurred updating the inode.
|
||||
.TP
|
||||
.B EINTR
|
||||
While blocked waiting to complete,
|
||||
the call was interrupted by a signal handler; see
|
||||
.BR fcntl (2)
|
||||
and
|
||||
.BR signal (7).
|
||||
.TP
|
||||
.B EISDIR
|
||||
The named file is a directory.
|
||||
.TP
|
||||
|
@ -157,21 +164,18 @@ For
|
|||
.BR ftruncate ()
|
||||
the same errors apply, but instead of things that can be wrong with
|
||||
.IR path ,
|
||||
we now have things that can be wrong with
|
||||
we now have things that can be wrong with the file descriptor,
|
||||
.IR fd :
|
||||
.TP
|
||||
.B EBADF
|
||||
The
|
||||
.I fd
|
||||
is not a valid descriptor.
|
||||
.TP
|
||||
.BR EBADF " or " EINVAL
|
||||
The
|
||||
.I fd
|
||||
is not open for writing.
|
||||
.TP
|
||||
.B EINVAL
|
||||
The
|
||||
.I fd
|
||||
does not reference a regular file.
|
||||
.SH "CONFORMING TO"
|
||||
|
|
Loading…
Reference in New Issue