1ipc.h(3HEAD)                        Headers                       ipc.h(3HEAD)
2
3
4

NAME

6       ipc.h, ipc - XSI interprocess communication access structure
7

SYNOPSIS

9       #include <sys/ipc.h>
10
11

DESCRIPTION

13       The  <sys/ipc.h>  header  is  used by three mechanisms for interprocess
14       communication (IPC): messages, semaphores, and shared memory. All use a
15       common  structure type, ipc_perm, to pass information used in determin‐
16       ing permission to perform an IPC operation.
17
18
19       The ipc_perm structure contains the following members:
20
21         uid_t  uid     /* owner's user ID */
22         gid_t  gid     /* owner's group ID */
23         uid_t  cuid    /* creator's user ID */
24         gid_t  cgid    /* creator's group ID */
25         mode_t mode    /* read/write permission
26
27
28
29       The uid_t, gid_t, mode_t, and key_t types are defined as  described  in
30       <sys/types.h>. See types.h(3HEAD).
31
32
33       Definitions are provided for the constants listed below.
34
35
36       Mode bits:
37
38       IPC_CREAT     Create entry if key does not exist.
39
40
41       IPC_EXCL      Fail if key exists.
42
43
44       IPC_NOWAIT    Error if request must wait.
45
46
47
48       Keys:
49
50       IPC_PRIVATE    Private key.
51
52
53
54       Control commands:
55
56       IPC_RMID    Remove identifier.
57
58
59       IPC_SET     Set options.
60
61
62       IPC_STAT    Get options.
63
64

ATTRIBUTES

66       See attributes(5) for descriptions of the following attributes:
67
68
69
70
71       ┌─────────────────────────────┬─────────────────────────────┐
72       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
73       ├─────────────────────────────┼─────────────────────────────┤
74       │Interface Stability          │Standard                     │
75       └─────────────────────────────┴─────────────────────────────┘
76

SEE ALSO

78       ftok(3C), types.h(3HEAD), attributes(5), standards(5)
79
80
81
82SunOS 5.11                        10 Sep 2004                     ipc.h(3HEAD)
Impressum