]> sourceware.org Git - glibc.git/blame - bits/ipc.h
Update.
[glibc.git] / bits / ipc.h
CommitLineData
8a4b65b4
UD
1/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
60478656 4
8a4b65b4
UD
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
60478656 9
8a4b65b4
UD
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
60478656 14
8a4b65b4
UD
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
60478656
RM
19
20#ifndef _SYS_IPC_BUF_H
60478656 21
8a4b65b4 22#define _SYS_IPC_BUF_H 1
60478656 23#include <features.h>
8a4b65b4 24
60478656
RM
25#include <sys/types.h>
26
27/* Mode bits for `msgget', `semget', and `shmget'. */
28#define IPC_CREAT 01000 /* create key if key does not exist */
29#define IPC_EXCL 02000 /* fail if key exists */
30#define IPC_NOWAIT 04000 /* return error on wait */
31
32/* Control commands for `msgctl', `semctl', and `shmctl'. */
33#define IPC_RMID 0 /* remove identifier */
34#define IPC_SET 1 /* set `ipc_perm' options */
35#define IPC_STAT 2 /* get `ipc_perm' options */
36
37
38__BEGIN_DECLS
39
60478656
RM
40/* Special key values. */
41#define IPC_PRIVATE ((key_t) 0) /* private key */
42
43
44/* Data structure used to pass permission information to IPC operations. */
45struct ipc_perm
46{
47 __uid_t uid; /* owner's user ID */
48 __gid_t gid; /* owner's group ID */
49 __uid_t cuid; /* creator's user ID */
50 __gid_t cgid; /* creator's group ID */
51 __mode_t mode; /* read/write permission */
52};
53
54__END_DECLS
55
8a4b65b4 56#endif /* _SYS_IPC_BUF_H */
This page took 0.078108 seconds and 5 git commands to generate.