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