home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / ipc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-18  |  1.2 KB  |  45 lines

  1.  
  2. /*
  3.  *    @(#) ipc.h 2.1 88/05/18 
  4.  *
  5.  *    Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987.
  6.  *    Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987.
  7.  *    This Module contains Proprietary Information of
  8.  *    The Santa Cruz Operation, Microsoft Corporation
  9.  *    and AT&T, and should be treated as Confidential.
  10.  */
  11.  
  12. /*
  13.  * THIS FILE CONTAINS CODE WHICH IS SPECIFIC TO THE
  14.  * INTEL 80286 CPU AND MAY REQUIRE MODIFICATION
  15.  * WHEN ADAPTING XENIX TO NEW HARDWARE.
  16.  */
  17.  
  18. /* 
  19.  *    Common IPC Access Structure 
  20.  */
  21. struct ipc_perm {
  22.     ushort    uid;    /* owner's user id */
  23.     ushort    gid;    /* owner's group id */
  24.     ushort    cuid;    /* creator's user id */
  25.     ushort    cgid;    /* creator's group id */
  26.     ushort    mode;    /* access modes */
  27.     ushort    seq;    /* slot usage sequence number */
  28.     key_t    key;    /* key */
  29. };
  30.  
  31. /* Common IPC Definitions. */
  32. /* Mode bits. */
  33. #define    IPC_ALLOC    0100000        /* entry currently allocated */
  34. #define    IPC_CREAT    0001000        /* create entry if key doesn't exist */
  35. #define    IPC_EXCL    0002000        /* fail if key exists */
  36. #define    IPC_NOWAIT    0004000        /* error if request must wait */
  37.  
  38. /* Keys. */
  39. #define    IPC_PRIVATE    (key_t)0    /* private key */
  40.  
  41. /* Control Commands. */
  42. #define    IPC_RMID    0    /* remove identifier */
  43. #define    IPC_SET        1    /* set options */
  44. #define    IPC_STAT    2    /* get options */
  45.