aboutsummaryrefslogtreecommitdiffstats
path: root/man2/semctl.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/semctl.2')
-rw-r--r--man2/semctl.222
1 files changed, 11 insertions, 11 deletions
diff --git a/man2/semctl.2 b/man2/semctl.2
index dbd2a054eb..129156c2bd 100644
--- a/man2/semctl.2
+++ b/man2/semctl.2
@@ -66,8 +66,8 @@ When there are four, the fourth has the type
.IR "union semun" .
The \fIcalling program\fP must define this union as follows:
.PP
-.nf
.in +4n
+.nf
union semun {
int val; /* Value for SETVAL */
struct semid_ds *buf; /* Buffer for IPC_STAT, IPC_SET */
@@ -75,23 +75,23 @@ union semun {
struct seminfo *__buf; /* Buffer for IPC_INFO
(Linux-specific) */
};
-.in
.fi
+.in
.PP
The
.I semid_ds
data structure is defined in \fI<sys/sem.h>\fP as follows:
-.nf
+.PP
.in +4n
-
+.EX
struct semid_ds {
struct ipc_perm sem_perm; /* Ownership and permissions */
time_t sem_otime; /* Last semop time */
time_t sem_ctime; /* Last change time */
unsigned long sem_nsems; /* No. of semaphores in set */
};
-.in
.fi
+.in
.PP
The
.I ipc_perm
@@ -99,8 +99,8 @@ structure is defined as follows
(the highlighted fields are settable using
.BR IPC_SET ):
.PP
-.nf
.in +4n
+.nf
struct ipc_perm {
key_t __key; /* Key supplied to semget(2) */
uid_t \fBuid\fP; /* Effective UID of owner */
@@ -110,8 +110,8 @@ struct ipc_perm {
unsigned short \fBmode\fP; /* Permissions */
unsigned short __seq; /* Sequence number */
};
-.in
.fi
+.in
.PP
Valid values for
.I cmd
@@ -178,9 +178,9 @@ defined in
if the
.B _GNU_SOURCE
feature test macro is defined:
-.nf
+.IP
.in +4n
-
+.EX
struct seminfo {
int semmap; /* Number of entries in semaphore
map; unused within kernel */
@@ -200,9 +200,9 @@ struct seminfo {
int semaem; /* Max. value that can be recorded for
semaphore adjustment (SEM_UNDO) */
};
-
+.EE
.in
-.fi
+.IP
The
.IR semmsl ,
.IR semmns ,