freebsd-skq/contrib/ntp/include/libntp.h
cy 8560674afd MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:	roberto
2015-03-30 13:30:15 +00:00

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 );