* Copyright 2008-2012 Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYS_IPC_H
#define _SYS_IPC_H
#include <sys/cdefs.h>
#include <sys/types.h>
#define IPC_CREAT 01000 /* create key */
#define IPC_EXCL 02000 /* fail if key exists */
#define IPC_NOWAIT 04000 /* do not block */
#define IPC_RMID 0 /* remove identifier */
#define IPC_SET 1 /* set options */
#define IPC_STAT 2 /* get options */
#define IPC_PRIVATE (key_t)0
struct ipc_perm {
key_t key;
uid_t uid;
gid_t gid;
uid_t cuid;
gid_t cgid;
mode_t mode;
};
__BEGIN_DECLS
key_t ftok(const char *path, int id);
__END_DECLS
#endif