From 5fd4345e844dcb50c0cecbe598b7e0f343dd252e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 16 Apr 2020 11:33:17 +0200 Subject: [PATCH] semctl.2: Correct description of sem_ctime field Verified from inspection of kernel source code. Reported-by: Manfred Spraul Signed-off-by: Michael Kerrisk --- man2/semctl.2 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/man2/semctl.2 b/man2/semctl.2 index 8ba301505..e57519a93 100644 --- a/man2/semctl.2 +++ b/man2/semctl.2 @@ -88,7 +88,8 @@ data structure is defined in \fI\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.