|
1 /* Generated automatically */ |
|
2 #ifndef have_Src_Modules_tcp_globals |
|
3 #define have_Src_Modules_tcp_globals |
|
4 |
|
5 #ifndef HAVE_INET_NTOP |
|
6 extern mod_import_function char const*zsh_inet_ntop _((int af,void const*cp,char*buf,size_t len)); |
|
7 #else /* !HAVE_INET_NTOP */ |
|
8 # define zsh_inet_ntop inet_ntop |
|
9 #endif /* !HAVE_INET_NTOP */ |
|
10 #ifndef HAVE_INET_ATON |
|
11 extern mod_import_function int zsh_inet_aton _((char const*src,struct in_addr*dst)); |
|
12 #else /* !HAVE_INET_ATON */ |
|
13 # define zsh_inet_aton inet_aton |
|
14 #endif /* !HAVE_INET_ATON */ |
|
15 #ifndef HAVE_INET_PTON |
|
16 extern mod_import_function int zsh_inet_pton _((int af,char const*src,void*dst)); |
|
17 #endif /* !HAVE_INET_PTON */ |
|
18 #ifndef HAVE_GETIPNODEBYNAME |
|
19 # ifndef HAVE_GETHOSTBYNAME2 |
|
20 extern mod_import_function struct hostent*zsh_gethostbyname2 _((char const*name,int af)); |
|
21 #else /* !HAVE_GETHOSTBYNAME2 */ |
|
22 # define zsh_gethostbyname2 gethostbyname2 |
|
23 # endif /* !HAVE_GETHOSTBYNAME2 */ |
|
24 extern mod_import_function struct hostent*zsh_getipnodebyname _((char const*name,int af,UNUSED(int flags),int*errorp)); |
|
25 extern mod_import_function void freehostent _((UNUSED(struct hostent*ptr))); |
|
26 #else /* !HAVE_GETIPNODEBYNAME */ |
|
27 # define zsh_getipnodebyname getipnodebyname |
|
28 #endif /* !HAVE_GETIPNODEBYNAME */ |
|
29 extern mod_import_function Tcp_session tcp_socket _((int domain,int type,int protocol,int ztflags)); |
|
30 extern mod_import_function int tcp_close _((Tcp_session sess)); |
|
31 extern mod_import_function int tcp_connect _((Tcp_session sess,char*addrp,struct hostent*zhost,int d_port)); |
|
32 extern int setup_ _((UNUSED(Module m))); |
|
33 extern int boot_ _((Module m)); |
|
34 extern int cleanup_ _((Module m)); |
|
35 extern int finish_ _((UNUSED(Module m))); |
|
36 |
|
37 #endif /* !have_Src_Modules_tcp_globals */ |