remove obstack support
[uclibc-ng.git] / libc / misc / sysvipc / ipc.h
blobb342dc1cf1184f82f12f01051a87a44446a6b1b0
1 #ifndef IPC_H
2 #define IPC_H
3 #include <syscall.h>
4 #include <bits/wordsize.h>
6 #ifndef __ARCH_HAS_DEPRECATED_SYSCALLS__
7 # define __IPC_64 0x0
8 #else
9 # if __WORDSIZE == 32 || defined __alpha__ || defined __mips__
10 # define __IPC_64 0x100
11 # else
12 # define __IPC_64 0x0
13 # endif
14 #endif
16 #ifdef __NR_ipc
18 /* The actual system call: all functions are multiplexed by this. */
19 extern int __syscall_ipc (unsigned int __call, long __first, long __second,
20 long __third, void *__ptr, void *__fifth) attribute_hidden;
23 /* The codes for the functions to use the multiplexer `__syscall_ipc'. */
24 #define IPCOP_semop 1
25 #define IPCOP_semget 2
26 #define IPCOP_semctl 3
27 #define IPCOP_semtimedop 4
28 #define IPCOP_msgsnd 11
29 #define IPCOP_msgrcv 12
30 #define IPCOP_msgget 13
31 #define IPCOP_msgctl 14
32 #define IPCOP_shmat 21
33 #define IPCOP_shmdt 22
34 #define IPCOP_shmget 23
35 #define IPCOP_shmctl 24
37 #endif
39 #endif /* IPC_H */