aboutsummaryrefslogtreecommitdiffstats
path: root/man2/semctl.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2004-12-13 08:39:28 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2004-12-13 08:39:28 +0000
commit540036b2fd7fe90714d9c961132dba78c5ce7a1c (patch)
treec883f87db63663a01f8e616b8f6494e1c93669ed /man2/semctl.2
parent30ca894053477911ab060fa2a5ca7474d0414c21 (diff)
downloadman-pages-540036b2fd7fe90714d9c961132dba78c5ce7a1c.tar.gz
minor wording/formatting fixes
Diffstat (limited to 'man2/semctl.2')
-rw-r--r--man2/semctl.215
1 files changed, 8 insertions, 7 deletions
diff --git a/man2/semctl.2 b/man2/semctl.2
index 5bb5fdbe36..9d69dcb3f6 100644
--- a/man2/semctl.2
+++ b/man2/semctl.2
@@ -46,7 +46,7 @@ semctl \- semaphore control operations
.BI "int semctl(int " semid ", int " semnum ", int " cmd ", ...);"
.fi
.SH DESCRIPTION
-.B semctl
+.BR semctl ()
performs the control operation specified by
.I cmd
on the semaphore set identified by
@@ -156,8 +156,9 @@ calls on the set (with an error return and
.I errno
set to
.BR EIDRM ).
-The effective user\-ID of the calling process must be that of the
-superuser, or match the creator or owner of the semaphore set.
+The effective user\-ID of the calling process must
+match the creator or owner of the semaphore set,
+or the caller must be privileged.
The argument
.I semnum
is ignored.
@@ -263,7 +264,7 @@ calls in other processes to proceed, then those processes are woken up.
The calling process must have alter permission on the semaphore set.
.SH "RETURN VALUE"
On failure
-.B semctl
+.BR semctl ()
returns \-1
with
.I errno
@@ -389,7 +390,7 @@ the macro
is defined in <sys/sem.h>.
.PP
The following system limit on semaphore sets affects a
-.B semctl
+.BR semctl ()
call:
.TP 11
.B SEMVMX
@@ -398,11 +399,11 @@ Maximum value for
implementation dependent (32767).
.LP
For greater portability it is best to always call
-.B semctl
+.BR semctl ()
with four arguments.
.LP
Under Linux,
-.B semctl
+.BR semctl ()
is not a system call, but is implemented via the system call
.BR ipc (2).
.SH "CONFORMING TO"