summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/truncate.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/truncate.2')
-rw-r--r--lib/libc/sys/truncate.27
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2
index 32e487e..29892ac 100644
--- a/lib/libc/sys/truncate.2
+++ b/lib/libc/sys/truncate.2
@@ -96,7 +96,9 @@ The file is a pure procedure (shared text) file that is being executed.
.It Bq Er EIO
An I/O error occurred updating the inode.
.It Bq Er EFAULT
-.Fa Path
+The
+.Fa path
+argument
points outside the process's allocated address space.
.El
.Pp
@@ -108,14 +110,17 @@ succeeds unless:
.It Bq Er EBADF
The
.Fa fd
+argument
is not a valid descriptor.
.It Bq Er EINVAL
The
.Fa fd
+argument
references a socket, not a file.
.It Bq Er EINVAL
The
.Fa fd
+descriptor
is not open for writing.
.El
.Sh SEE ALSO
OpenPOWER on IntegriCloud