b5e14a1344
Reviewed by: roberto Security: VUXML: 4033d826-87dd-11e4-9079-3c970e169bc2 Security: http://www.kb.cert.org/vuls/id/852879 Security: CVE-2014-9293 Security CVE-2014-9294 Security CVE-2014-9295 Security CVE-2014-9296
17 lines
436 B
C
17 lines
436 B
C
/* libntp.h */
|
|
|
|
#if defined(HAVE_SYSCONF) && defined(_SC_OPEN_MAX)
|
|
#define GETDTABLESIZE() ((int)sysconf(_SC_OPEN_MAX))
|
|
#elif defined(HAVE_GETDTABLESIZE)
|
|
#define GETDTABLESIZE getdtablesize
|
|
#else
|
|
/*
|
|
* if we have no idea about the max fd value set up things
|
|
* so we will start at FOPEN_MAX
|
|
*/
|
|
#define GETDTABLESIZE() (FOPEN_MAX + FD_CHUNK)
|
|
#endif
|
|
|
|
extern void make_socket_nonblocking( SOCKET fd );
|
|
extern SOCKET move_fd( SOCKET fd );
|