Bug 9933 - bits/ipc.h defines ipc_perm key member incorrectly
bits/ipc.h defines ipc_perm key member incorrectly
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2000-03-03 11:41 EST by magill
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-05-22 10:52:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description magill 2000-03-03 11:41:09 EST
With glibc-devel-2.1.2-11 installed, /usr/include/bits/ipc.h kefines the
key member of struct ipc_perm incorrectly:

struct ipc_perm
    __key_t __key;			/* Key.  */
    unsigned short int uid;		/* Owner's user ID.  */
    unsigned short int gid;		/* Owner's group ID.  */
    unsigned short int cuid;		/* Creator's user ID.  */
    unsigned short int cgid;		/* Creator's group ID.  */
    unsigned short int mode;		/* Read/write permission.  */
    unsigned short int __seq;		/* Sequence number.  */

key should simply be defined as 'key' not '__key'
Comment 1 Cristian Gafton 2000-05-22 10:52:59 EDT
assign to jakub
Comment 2 Jakub Jelinek 2000-09-04 10:13:52 EDT
No, it should not. X/Open (1987/01) does not define such members of
struct ipc_perm. Look at util-linux/sys-utils/ipcs.c to see how ipcs
does this.

Note You need to log in before you can comment on or make changes to this bug.