kernel: Remove VT_UNION.
[dragonfly.git] / sys / sys / sysvipc.h
1 #ifndef __PPI_H
2 #define __PPI_H
3
4 #include <unistd.h>
5 #include <sys/queue.h>
6 #include <sys/ipc.h>
7
8 struct id_attached {
9         int shmid;
10         LIST_ENTRY(id_attached) link;
11 };
12
13 struct client {
14         //int fd[2];
15         int sock;
16         pid_t pid;
17         int undoid;
18         LIST_HEAD(_ids_attached, id_attached) ids_attached;
19 };
20
21 struct client_shm_data {
22         int fd;
23         pid_t pid;
24 //      struct ipc_perm shm_perm;
25 };
26
27 #ifndef _KERNEL
28 # include <sys/types.h>
29 #endif
30 #include <sys/ioccom.h>
31
32 #define REGISTER_DAEMON _IO('S', 1)
33 #define REGISTER_TO_DAEMON      _IOR('S', 2, struct client)
34 #define UNREGISTER_DAEMON       _IO('S', 3)
35 #define INSTALL_PIPE    _IOW('S', 4, struct client)
36 #define CONSUME_REQUEST _IOR('S', 5, pid_t)
37 #define INSTALL_FD      _IOWR('S', 5, const void *)
38
39 #endif