kernel: fix sanity check
[minix.git] / servers / ipc / inc.h
blobe3e1dc88885a0d24a63a9ee3dc34f242a05bdc92
1 #define _POSIX_SOURCE 1 /* tell headers to include POSIX stuff */
2 #define _MINIX 1 /* tell headers to include MINIX stuff */
3 #define _SYSTEM 1 /* get OK and negative error codes */
5 #include <minix/callnr.h>
6 #include <minix/com.h>
7 #include <minix/config.h>
8 #include <minix/ipc.h>
9 #include <minix/endpoint.h>
10 #include <minix/sysutil.h>
11 #include <minix/const.h>
12 #include <minix/type.h>
13 #include <minix/syslib.h>
15 #include <sys/types.h>
16 #include <sys/ipc.h>
17 #include <sys/shm.h>
18 #include <sys/sem.h>
19 #include <sys/mman.h>
20 #include <machine/vm.h>
21 #include <machine/vmparam.h>
22 #include <sys/vm.h>
24 #include <time.h>
25 #include <stdio.h>
26 #include <string.h>
27 #include <stdlib.h>
28 #include <unistd.h>
29 #include <errno.h>
30 #include <signal.h>
32 int do_shmget(message *);
33 int do_shmat(message *);
34 int do_shmdt(message *);
35 int do_shmctl(message *);
36 int check_perm(struct ipc_perm *, endpoint_t, int);
37 void update_refcount_and_destroy(void);
38 int do_semget(message *);
39 int do_semctl(message *);
40 int do_semop(message *);
41 int is_sem_nil(void);
42 int is_shm_nil(void);
43 void sem_process_vm_notify(void);
45 EXTERN int identifier;
46 EXTERN endpoint_t who_e;
47 EXTERN int call_type;
48 EXTERN endpoint_t SELF_E;