• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/socketcalls.in; do not edit. */
2 #if !(defined(SYS_SOCKET) || (defined(HAVE_DECL_SYS_SOCKET) && HAVE_DECL_SYS_SOCKET))
3 # define SYS_SOCKET 1
4 #endif
5 #if !(defined(SYS_BIND) || (defined(HAVE_DECL_SYS_BIND) && HAVE_DECL_SYS_BIND))
6 # define SYS_BIND 2
7 #endif
8 #if !(defined(SYS_CONNECT) || (defined(HAVE_DECL_SYS_CONNECT) && HAVE_DECL_SYS_CONNECT))
9 # define SYS_CONNECT 3
10 #endif
11 #if !(defined(SYS_LISTEN) || (defined(HAVE_DECL_SYS_LISTEN) && HAVE_DECL_SYS_LISTEN))
12 # define SYS_LISTEN 4
13 #endif
14 #if !(defined(SYS_ACCEPT) || (defined(HAVE_DECL_SYS_ACCEPT) && HAVE_DECL_SYS_ACCEPT))
15 # define SYS_ACCEPT 5
16 #endif
17 #if !(defined(SYS_GETSOCKNAME) || (defined(HAVE_DECL_SYS_GETSOCKNAME) && HAVE_DECL_SYS_GETSOCKNAME))
18 # define SYS_GETSOCKNAME 6
19 #endif
20 #if !(defined(SYS_GETPEERNAME) || (defined(HAVE_DECL_SYS_GETPEERNAME) && HAVE_DECL_SYS_GETPEERNAME))
21 # define SYS_GETPEERNAME 7
22 #endif
23 #if !(defined(SYS_SOCKETPAIR) || (defined(HAVE_DECL_SYS_SOCKETPAIR) && HAVE_DECL_SYS_SOCKETPAIR))
24 # define SYS_SOCKETPAIR 8
25 #endif
26 #if !(defined(SYS_SEND) || (defined(HAVE_DECL_SYS_SEND) && HAVE_DECL_SYS_SEND))
27 # define SYS_SEND 9
28 #endif
29 #if !(defined(SYS_RECV) || (defined(HAVE_DECL_SYS_RECV) && HAVE_DECL_SYS_RECV))
30 # define SYS_RECV 10
31 #endif
32 #if !(defined(SYS_SENDTO) || (defined(HAVE_DECL_SYS_SENDTO) && HAVE_DECL_SYS_SENDTO))
33 # define SYS_SENDTO 11
34 #endif
35 #if !(defined(SYS_RECVFROM) || (defined(HAVE_DECL_SYS_RECVFROM) && HAVE_DECL_SYS_RECVFROM))
36 # define SYS_RECVFROM 12
37 #endif
38 #if !(defined(SYS_SHUTDOWN) || (defined(HAVE_DECL_SYS_SHUTDOWN) && HAVE_DECL_SYS_SHUTDOWN))
39 # define SYS_SHUTDOWN 13
40 #endif
41 #if !(defined(SYS_SETSOCKOPT) || (defined(HAVE_DECL_SYS_SETSOCKOPT) && HAVE_DECL_SYS_SETSOCKOPT))
42 # define SYS_SETSOCKOPT 14
43 #endif
44 #if !(defined(SYS_GETSOCKOPT) || (defined(HAVE_DECL_SYS_GETSOCKOPT) && HAVE_DECL_SYS_GETSOCKOPT))
45 # define SYS_GETSOCKOPT 15
46 #endif
47 #if !(defined(SYS_SENDMSG) || (defined(HAVE_DECL_SYS_SENDMSG) && HAVE_DECL_SYS_SENDMSG))
48 # define SYS_SENDMSG 16
49 #endif
50 #if !(defined(SYS_RECVMSG) || (defined(HAVE_DECL_SYS_RECVMSG) && HAVE_DECL_SYS_RECVMSG))
51 # define SYS_RECVMSG 17
52 #endif
53 #if !(defined(SYS_ACCEPT4) || (defined(HAVE_DECL_SYS_ACCEPT4) && HAVE_DECL_SYS_ACCEPT4))
54 # define SYS_ACCEPT4 18
55 #endif
56 #if !(defined(SYS_RECVMMSG) || (defined(HAVE_DECL_SYS_RECVMMSG) && HAVE_DECL_SYS_RECVMMSG))
57 # define SYS_RECVMMSG 19
58 #endif
59 #if !(defined(SYS_SENDMMSG) || (defined(HAVE_DECL_SYS_SENDMMSG) && HAVE_DECL_SYS_SENDMMSG))
60 # define SYS_SENDMMSG 20
61 #endif
62 
63 #ifdef IN_MPERS
64 
65 # error static const struct xlat socketcalls in mpers mode
66 
67 #else
68 
69 static
70 const struct xlat socketcalls[] = {
71  XLAT(SYS_SOCKET),
72  XLAT(SYS_BIND),
73  XLAT(SYS_CONNECT),
74  XLAT(SYS_LISTEN),
75  XLAT(SYS_ACCEPT),
76  XLAT(SYS_GETSOCKNAME),
77  XLAT(SYS_GETPEERNAME),
78  XLAT(SYS_SOCKETPAIR),
79  XLAT(SYS_SEND),
80  XLAT(SYS_RECV),
81  XLAT(SYS_SENDTO),
82  XLAT(SYS_RECVFROM),
83  XLAT(SYS_SHUTDOWN),
84  XLAT(SYS_SETSOCKOPT),
85  XLAT(SYS_GETSOCKOPT),
86  XLAT(SYS_SENDMSG),
87  XLAT(SYS_RECVMSG),
88  XLAT(SYS_ACCEPT4),
89  XLAT(SYS_RECVMMSG),
90  XLAT(SYS_SENDMMSG),
91  XLAT_END
92 };
93 
94 #endif /* !IN_MPERS */
95