aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/truncate.2
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-12-18 09:22:32 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-12-18 09:22:32 +0000
commit2faeeff4c9bb77cca44a977d96c1a9fc7af8d8a3 (patch)
treecb18f664ed0ee63bee30f6af9b148510b6e9663b /lib/libc/sys/truncate.2
parenta1096fe6dfb9dc2ec492a1421075a38d6d75bc02 (diff)
mdoc(7) police: Tidy up the syscall language.
Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe.
Notes
Notes: svn path=/head/; revision=108028
Diffstat (limited to 'lib/libc/sys/truncate.2')
-rw-r--r--lib/libc/sys/truncate.214
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2
index 6e3a07e9615c..32e487eff583 100644
--- a/lib/libc/sys/truncate.2
+++ b/lib/libc/sys/truncate.2
@@ -48,7 +48,9 @@
.Ft int
.Fn ftruncate "int fd" "off_t length"
.Sh DESCRIPTION
-.Fn Truncate
+The
+.Fn truncate
+system call
causes the file named by
.Fa path
or referenced by
@@ -67,7 +69,9 @@ the file must be open for writing.
.Sh RETURN VALUES
.Rv -std
.Sh ERRORS
-.Fn Truncate
+The
+.Fn truncate
+system call
succeeds unless:
.Bl -tag -width Er
.It Bq Er ENOTDIR
@@ -96,7 +100,9 @@ An I/O error occurred updating the inode.
points outside the process's allocated address space.
.El
.Pp
-.Fn Ftruncate
+The
+.Fn ftruncate
+system call
succeeds unless:
.Bl -tag -width Er
.It Bq Er EBADF
@@ -124,5 +130,5 @@ to extend a file is not portable.
.Sh HISTORY
The
.Fn truncate
-function call appeared in
+system call appeared in
.Bx 4.2 .