File: ipc.h

package info (click to toggle)
privbind 1.2-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 1,584 kB
  • ctags: 89
  • sloc: sh: 11,681; ansic: 629; makefile: 75
file content (19 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef IPC_H
#define IPC_H

struct ipc_msg_req {
    enum { MSG_REQ_NONE, MSG_REQ_BIND } type;
    union {
	/* Each request type has one member here */
	struct { struct sockaddr_in addr; /* Address to bind */ } bind;
    } data;
};

struct ipc_msg_reply {
    enum { MSG_REP_NONE, MSG_REP_STAT } type;
    union {
	struct { int retval; int error; } stat;
    } data;
};

#endif /* IPC_H */