home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / ipc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.1 KB  |  36 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8.  
  9. #ident    "@(#)head.sys:ipc.h    1.3"
  10.  
  11. /* Common IPC Access Structure */
  12. struct ipc_perm {
  13.     ushort    uid;    /* owner's user id */
  14.     ushort    gid;    /* owner's group id */
  15.     ushort    cuid;    /* creator's user id */
  16.     ushort    cgid;    /* creator's group id */
  17.     ushort    mode;    /* access modes */
  18.     ushort    seq;    /* slot usage sequence number */
  19.     key_t    key;    /* key */
  20. };
  21.  
  22. /* Common IPC Definitions. */
  23. /* Mode bits. */
  24. #define    IPC_ALLOC    0100000        /* entry currently allocated */
  25. #define    IPC_CREAT    0001000        /* create entry if key doesn't exist */
  26. #define    IPC_EXCL    0002000        /* fail if key exists */
  27. #define    IPC_NOWAIT    0004000        /* error if request must wait */
  28.  
  29. /* Keys. */
  30. #define    IPC_PRIVATE    (key_t)0    /* private key */
  31.  
  32. /* Control Commands. */
  33. #define    IPC_RMID    0    /* remove identifier */
  34. #define    IPC_SET        1    /* set options */
  35. #define    IPC_STAT    2    /* get options */
  36.