aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2008-07-04 16:21:39 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-07-04 16:21:39 +0000
commit3ade1aa962b8c47ca56613d02cd63da69035cef7 (patch)
tree7456488019277b370d432bb645bf51ce9018c73c
parent01538d0d513258cbfeefc9d572ab40ba4eed7e78 (diff)
downloadman-pages-3ade1aa962b8c47ca56613d02cd63da69035cef7.tar.gz
ERRORS: Added EINTR error.
A few minor rewordings.
-rw-r--r--man2/truncate.214
1 files changed, 9 insertions, 5 deletions
diff --git a/man2/truncate.2 b/man2/truncate.2
index f875ded92a..ab03ed2639 100644
--- a/man2/truncate.2
+++ b/man2/truncate.2
@@ -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"