xref: /freebsd/contrib/ntp/include/libntp.h (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
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