NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/41605: some copy'n'pastoes in semctl(2) and shmctl(2) man pages



>Number:         41605
>Category:       lib
>Synopsis:       some copy'n'pastoes in semctl(2) and shmctl(2) man pages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 16 16:40:00 +0000 2009
>Originator:     Jukka Salmi
>Release:        NetBSD 5.99.12
>Organization:
>Environment:
System: NetBSD moray.salmi.ch 5.99.12 NetBSD 5.99.12 (MORAY) #0: Mon May 25 
17:09:01 CEST 2009 
root%moray.salmi.ch@localhost:/b/build/nbsd/c/i386/sys/arch/i386/compile/MORAY 
i386
Architecture: i386
Machine: i386
>Description:
There are some (probably copy'n'paste related) errors in the semctl(2) and
shmctl(2) man pages: sometimes the text references message queues when it
should reference semaphores and shared memory segments respectively.
>How-To-Repeat:
n/a
>Fix:
The following patch is also available from
http://salmi.ch/~jukka/patches/nbsd/HEAD/lib/libc/sys/sysvipc_man.diff

Index: lib/libc/sys/semctl.2
===================================================================
RCS file: /cvsroot/src/lib/libc/sys/semctl.2,v
retrieving revision 1.17
diff -u -p -r1.17 semctl.2
--- lib/libc/sys/semctl.2       6 May 2008 20:25:09 -0000       1.17
+++ lib/libc/sys/semctl.2       16 Jun 2009 16:11:51 -0000
@@ -150,7 +150,7 @@ has an effective user id equal to either
 .Va sem_perm.cuid
 or
 .Va sem_perm.uid
-in the data structure associated with the message queue.
+in the data structure associated with the semaphore.
 .It Dv IPC_RMID
 Remove the semaphores associated with
 .Fa semid
@@ -162,7 +162,7 @@ or
 values in the data structure associated with the semaphore can do this.
 .El
 .Pp
-The permission to read or change a message queue (see
+The permission to read or change a semaphore (see
 .Xr semop 2 )
 is determined by the
 .Va sem_perm.mode
@@ -209,7 +209,7 @@ the effective uid match either the
 .Va sem_perm.uid
 or
 .Va sem_perm.cuid
-fields of the data structure associated with the message queue.
+fields of the data structure associated with the semaphore.
 .It Bq Er EACCES
 The caller has no operation permission for this semaphore.
 .It Bq Er EINVAL
Index: lib/libc/sys/shmctl.2
===================================================================
RCS file: /cvsroot/src/lib/libc/sys/shmctl.2,v
retrieving revision 1.19
diff -u -p -r1.19 shmctl.2
--- lib/libc/sys/shmctl.2       31 Dec 2006 03:17:52 -0000      1.19
+++ lib/libc/sys/shmctl.2       16 Jun 2009 16:11:52 -0000
@@ -112,7 +112,7 @@ Only the super-user or a process with an
 .Va shm_perm.cuid
 or
 .Va shm_perm.uid
-values in the data structure associated with the queue can do this.
+values in the data structure associated with the shared memory segment can do 
this.
 .It Dv SHM_LOCK
 Lock the shared memory segment specified by
 .Fa shmid



Home | Main Index | Thread Index | Old Index