1iff AST_SOCKET
2nxt sys.socket
3cat{
4
5/* the socket part of ast_intercept.h */
6
7#if _sys_socket && defined(_nxt_sys_socket)
8
9#include _nxt_sys_socket	/* the real <sys/socket.h> */
10
11#if _AST_INTERCEPT_IMPLEMENT < 2
12
13#undef	accept
14#define accept		ast_accept
15
16#undef	accept4
17#define accept4		ast_accept4
18
19#undef	connect
20#define connect		ast_connect
21
22#undef	socket
23#define socket		ast_socket
24
25#undef	socketpair
26#define socketpair	ast_socketpair
27
28#endif
29
30#if _AST_INTERCEPT_IMPLEMENT > 0
31
32#if _BLD_ast && defined(__EXPORT__)
33#define extern		__EXPORT__
34#endif
35
36extern int		ast_accept(int, struct sockaddr*, socklen_t*);
37extern int		ast_accept4(int, struct sockaddr*, socklen_t*, int);
38extern int		ast_connect(int, struct sockaddr*, socklen_t);
39extern int		ast_socket(int, int, int);
40extern int		ast_socketpair(int, int, int, int[2]);
41
42#undef extern
43
44#endif
45
46#endif
47}end
48