semctl.2: Correct description of sem_ctime field

Verified from inspection of kernel source code.

Reported-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-04-16 11:33:17 +02:00
parent 6fea5f4f1d
commit 5fd4345e84
1 changed files with 8 additions and 4 deletions

View File

@ -88,7 +88,8 @@ data structure is defined in \fI<sys/sem.h>\fP as follows:
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 */
time_t sem_ctime; /* Creation time/time of last
modification via semctl() */
unsigned long sem_nsems; /* No. of semaphores in set */
};
.EE
@ -109,10 +110,13 @@ Time of last
system call.
.TP
.I sem_ctime
Time of last
Time of creation of semaphore set or time of last
.BR semctl ()
system call that changed a member of the above structure or of one
semaphore belonging to the set.
.BR IPCSET ,
.BR SETVAL ,
or
.BR SETVALL
operation.
.TP
.I sem_nsems
Number of semaphores in the set.