xref: /freebsd/contrib/ntp/include/libntp.h (revision b2d48be1bc7df45ddd13b143a160d0acb5a383c5)
1 /* libntp.h */
2 
3 #if defined(HAVE_SYSCONF) && defined(_SC_OPEN_MAX)
4 #define GETDTABLESIZE()	((int)sysconf(_SC_OPEN_MAX))
5 #elif defined(HAVE_GETDTABLESIZE)
6 #define GETDTABLESIZE	getdtablesize
7 #else
8 /*
9  * if we have no idea about the max fd value set up things
10  * so we will start at FOPEN_MAX
11  */
12 #define GETDTABLESIZE()	(FOPEN_MAX + FD_CHUNK)
13 #endif
14 
15 extern void	make_socket_nonblocking( SOCKET fd );
16 extern SOCKET	move_fd( SOCKET fd );
17