mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-08 13:39:25 -04:00
19 lines
502 B
C
19 lines
502 B
C
/* $NetBSD: libntp.h,v 1.3 2015/07/10 14:20:29 christos Exp $ */
|
|
|
|
/* 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 );
|