sclose() function-like macro definition used to close a socket,

now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL
config file preprocessor definitions.
This commit is contained in:
Yang Tse
2009-06-19 00:41:03 +00:00
parent d6d63147b6
commit 2c0c05e96d
11 changed files with 45 additions and 39 deletions

View File

@@ -341,7 +341,6 @@
#endif
/* Below we define some functions. They should
1. close a socket
4. set the SIGALRM signal timeout
5. set dir/file naming defines
@@ -349,12 +348,6 @@
#ifdef WIN32
# if !defined(__CYGWIN__)
# define sclose(x) closesocket(x)
# else
# define sclose(x) close(x)
# endif
# define DIR_CHAR "\\"
# define DOT_CHAR "_"
@@ -363,7 +356,6 @@
# ifdef MSDOS /* Watt-32 */
# include <sys/ioctl.h>
# define sclose(x) close_s(x)
# define select(n,r,w,x,t) select_s(n,r,w,x,t)
# define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
# include <tcp.h>
@@ -374,21 +366,8 @@
# undef byte
# endif
# else /* MSDOS */
# ifdef __BEOS__
# define sclose(x) closesocket(x)
# else /* __BEOS__ */
# define sclose(x) close(x)
# endif /* __BEOS__ */
# endif /* MSDOS */
# ifdef _AMIGASF
# undef sclose
# define sclose(x) CloseSocket(x)
# endif
# ifdef __minix
/* Minix 3 versions up to at least 3.1.3 are missing these prototypes */
extern char * strtok_r(char *s, const char *delim, char **last);