]> sourceware.org Git - newlib-cygwin.git/blob - winsup/cygwin/include/cygwin/ipc.h
* include/cygwin/version.h: Reorganize last two api versions so that btowc and
[newlib-cygwin.git] / winsup / cygwin / include / cygwin / ipc.h
1 /* sys/ipc.h
2
3 Copyright 2001, 2002 Red Hat Inc.
4 Written by Robert Collins <rbtcollins@hotmail.com>
5
6 This file is part of Cygwin.
7
8 This software is a copyrighted work licensed under the terms of the
9 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
10 details. */
11
12 #ifndef _SYS_IPC_H
13 #define _SYS_IPC_H
14
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #endif
19
20 struct ipc_perm
21 {
22 uid_t uid; /* Owner's user ID. */
23 gid_t gid; /* Owner's group ID. */
24 uid_t cuid; /* Creator's user ID. */
25 gid_t cgid; /* Creator's group ID. */
26 mode_t mode; /* Read/write permission. */
27 key_t key;
28 };
29
30 /* Mode bits:
31 */
32 #define IPC_CREAT 0x0200 /* Create entry if key does not exist. */
33 #define IPC_EXCL 0x0400 /* Fail if key exists. */
34 #define IPC_NOWAIT 0x0800 /* Error if request must wait. */
35
36 /* Keys:
37 */
38 #define IPC_PRIVATE ((key_t) 0) /* Private key. */
39
40 /* Control commands:
41 */
42 #define IPC_RMID 0x1000 /* Remove identifier. */
43 #define IPC_SET 0x1001 /* Set options. */
44 #define IPC_STAT 0x1002 /* Get options. */
45 #define IPC_INFO 0x1003 /* For ipcs(8). */
46
47 key_t ftok (const char *path, int id);
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* _SYS_IPC_H */
This page took 0.092808 seconds and 5 git commands to generate.