summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/fcntl.2
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-12-18 09:22:32 +0000
committerru <ru@FreeBSD.org>2002-12-18 09:22:32 +0000
commita4b155d7a2170a500eb79b46959eef4018441062 (patch)
treecb18f664ed0ee63bee30f6af9b148510b6e9663b /lib/libc/sys/fcntl.2
parente7e659d1cc574138f455ed70d58a07294211ff5a (diff)
downloadFreeBSD-src-a4b155d7a2170a500eb79b46959eef4018441062.zip
FreeBSD-src-a4b155d7a2170a500eb79b46959eef4018441062.tar.gz
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.
Diffstat (limited to 'lib/libc/sys/fcntl.2')
-rw-r--r--lib/libc/sys/fcntl.216
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 6635e31..5d5a252 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -47,14 +47,14 @@
.Sh DESCRIPTION
The
.Fn fcntl
-function provides for control over descriptors.
+system call provides for control over descriptors.
The argument
.Fa fd
is a descriptor to be operated on by
.Fa cmd
as described below. Depending on the value of
.Fa cmd ,
-.Nm
+.Fn fcntl
can take an additional third argument
.Fa "int arg" .
.Bl -tag -width F_GETOWNX
@@ -145,7 +145,7 @@ flags are as follows:
.It Dv O_NONBLOCK
Non-blocking I/O; if no data is available to a
.Xr read 2
-call, or if a
+system call, or if a
.Xr write 2
operation would block,
the read or write call returns -1 with the error
@@ -195,7 +195,7 @@ in the
.Fa flock
structure.
If no lock is found that would prevent this lock from being created,
-the structure is left unchanged by this function call except for the
+the structure is left unchanged by this system call except for the
lock type which is set to
.Dv F_UNLCK .
.It Dv F_SETLK
@@ -331,7 +331,7 @@ requested a lock on the database.
Another minor semantic problem with this interface is that
locks are not inherited by a child process created using the
.Xr fork 2
-function.
+system call.
The
.Xr flock 2
interface has much more rational last close semantics and
@@ -390,7 +390,7 @@ is set to indicate the error.
.Sh ERRORS
The
.Fn fcntl
-function will fail if:
+system call will fail if:
.Bl -tag -width Er
.It Bq Er EAGAIN
The argument
@@ -450,7 +450,7 @@ The argument
.Fa cmd
is
.Dv F_SETLKW ,
-and the function was interrupted by a signal.
+and the system call was interrupted by a signal.
.It Bq Er EINVAL
.Fa Cmd
is
@@ -554,5 +554,5 @@ for the reasons as stated in
.Sh HISTORY
The
.Fn fcntl
-function call appeared in
+system call appeared in
.Bx 4.2 .
OpenPOWER on IntegriCloud