From: Daniel Stenberg Date: Fri, 2 Nov 2001 13:04:23 +0000 (+0000) Subject: Replaced read() and write() with recv() and send() for socket operations X-Git-Tag: curl-7_9_1~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc82f9e6dffa3c1f3540ae2c9b9e54adb9d45e0a;p=curl Replaced read() and write() with recv() and send() for socket operations even under normal unixes. --- diff --git a/lib/setup.h b/lib/setup.h index d238d70cc..6576919ea 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -125,8 +125,8 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO) #else #define sclose(x) close(x) -#define sread(x,y,z) read(x,y,z) -#define swrite(x,y,z) write(x,y,z) +#define sread(x,y,z) recv(x,y,z,0) +#define swrite(x,y,z) send(x,y,z,0) #define myalarm(x) alarm(x) #define PATH_CHAR ":"