diff options
author | Patrick Monnerat <Patrick.Monnerat@datasphere.ch> | 2008-05-20 10:21:50 +0000 |
---|---|---|
committer | Patrick Monnerat <Patrick.Monnerat@datasphere.ch> | 2008-05-20 10:21:50 +0000 |
commit | 24bf52bc691cca9f8b3a668e26b4dd695ec4991c (patch) | |
tree | 9d2aaba3cf7d72e155a58bb7cb62c4ba493eeb23 /lib/setup-os400.h | |
parent | 862049c4902a3d2d2e77585a32840d00befc1dd8 (diff) | |
download | curl-24bf52bc691cca9f8b3a668e26b4dd695ec4991c.tar.gz |
Adapting last changes to OS400:
_ Updated packages/OS400/curl.inc.in with new definitions.
_ New connect/bind/sendto/recvfrom wrappers to support AF_UNIX sockets.
_ Include files line length shortened below 100 chars.
_ Const parameter in lib/qssl.[ch].
_ Typos in packages/OS400/initscript.sh.
Diffstat (limited to 'lib/setup-os400.h')
-rw-r--r-- | lib/setup-os400.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/setup-os400.h b/lib/setup-os400.h index 8466d9c43..d6e704ace 100644 --- a/lib/setup-os400.h +++ b/lib/setup-os400.h @@ -137,4 +137,20 @@ extern OM_uint32 Curl_gss_delete_sec_context_a(OM_uint32 * minor_status, #define ldap_first_attribute Curl_ldap_first_attribute_a #define ldap_next_attribute Curl_ldap_next_attribute_a +/* Some socket functions must be wrapped to process textual addresses + like AF_UNIX. */ + +extern int Curl_os400_connect(int sd, struct sockaddr * destaddr, int addrlen); +extern int Curl_os400_bind(int sd, struct sockaddr * localaddr, int addrlen); +extern int Curl_os400_sendto(int sd, char * buffer, int buflen, int flags, + struct sockaddr * dstaddr, int addrlen); +extern int Curl_os400_recvfrom(int sd, char * buffer, int buflen, int flags, + struct sockaddr * fromaddr, int * addrlen); + +#define connect Curl_os400_connect +#define bind Curl_os400_bind +#define sendto Curl_os400_sendto +#define recvfrom Curl_os400_recvfrom + + #endif /* __SETUP_OS400_H */ |