diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2019-08-11 17:22:45 +0200 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2019-09-24 13:39:22 +0200 |
commit | 3e0a8e539c57b9bed8265b38c2c3007cab6040e3 (patch) | |
tree | b8fd78fe050087e8ebe25c97c356f6cf241d8328 /lib/setup-os400.h | |
parent | 4a778f75c526e638b2fe1e2f627eb6649638b570 (diff) | |
download | curl-3e0a8e539c57b9bed8265b38c2c3007cab6040e3.tar.gz |
os400: getpeername() and getsockname() return ebcdic AF_UNIX sockaddr,
As libcurl now uses these 2 system functions, wrappers are needed on os400
to convert returned AF_UNIX sockaddrs to ascii.
This is a follow-up to commit 7fb54ef.
See also #4037.
Closes #4214
Diffstat (limited to 'lib/setup-os400.h')
-rw-r--r-- | lib/setup-os400.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/setup-os400.h b/lib/setup-os400.h index a3c2a7bdc..629fd94c4 100644 --- a/lib/setup-os400.h +++ b/lib/setup-os400.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -206,11 +206,15 @@ 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); +extern int Curl_os400_getpeername(int sd, struct sockaddr *addr, int *addrlen); +extern int Curl_os400_getsockname(int sd, struct sockaddr *addr, int *addrlen); #define connect Curl_os400_connect #define bind Curl_os400_bind #define sendto Curl_os400_sendto #define recvfrom Curl_os400_recvfrom +#define getpeername Curl_os400_getpeername +#define getsockname Curl_os400_getsockname #ifdef HAVE_LIBZ #define zlibVersion Curl_os400_zlibVersion |