1sys_ipc.h(0P) POSIX Programmer's Manual sys_ipc.h(0P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
11
13 sys/ipc.h — XSI interprocess communication access structure
14
16 #include <sys/ipc.h>
17
19 The <sys/ipc.h> header is used by three mechanisms for XSI interprocess
20 communication (IPC): messages, semaphores, and shared memory. All use a
21 common structure type, ipc_perm, to pass information used in determin‐
22 ing permission to perform an IPC operation.
23
24 The <sys/ipc.h> header shall define the ipc_perm structure, which shall
25 include the following members:
26
27 uid_t uid Owner's user ID.
28 gid_t gid Owner's group ID.
29 uid_t cuid Creator's user ID.
30 gid_t cgid Creator's group ID.
31 mode_t mode Read/write permission.
32
33 The <sys/ipc.h> header shall define the uid_t, gid_t, mode_t, and key_t
34 types as described in <sys/types.h>.
35
36 The <sys/ipc.h> header shall define the following symbolic constants.
37
38 Mode bits:
39
40 IPC_CREAT Create entry if key does not exist.
41
42 IPC_EXCL Fail if key exists.
43
44 IPC_NOWAIT Error if request must wait.
45
46 Keys:
47
48 IPC_PRIVATE Private key.
49
50 Control commands:
51
52 IPC_RMID Remove identifier.
53
54 IPC_SET Set options.
55
56 IPC_STAT Get options.
57
58 The following shall be declared as a function and may also be defined
59 as a macro. A function prototype shall be provided.
60
61 key_t ftok(const char *, int);
62
63 The following sections are informative.
64
66 None.
67
69 None.
70
72 None.
73
75 <sys_types.h>
76
77 The System Interfaces volume of POSIX.1‐2008, ftok()
78
80 Portions of this text are reprinted and reproduced in electronic form
81 from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
82 -- Portable Operating System Interface (POSIX), The Open Group Base
83 Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
84 cal and Electronics Engineers, Inc and The Open Group. (This is
85 POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
86 event of any discrepancy between this version and the original IEEE and
87 The Open Group Standard, the original IEEE and The Open Group Standard
88 is the referee document. The original Standard can be obtained online
89 at http://www.unix.org/online.html .
90
91 Any typographical or formatting errors that appear in this page are
92 most likely to have been introduced during the conversion of the source
93 files to man page format. To report such errors, see https://www.ker‐
94 nel.org/doc/man-pages/reporting_bugs.html .
95
96
97
98IEEE/The Open Group 2013 sys_ipc.h(0P)