]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/include/libntp.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / include / libntp.h
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 );