1 /* select.h 2 Copyright 1998 Cygnus Solutions. 3 4 Written by Geoffrey Noer <noer@cygnus.com> 5 6 This file is part of Cygwin. 7 8 This software is a copyrighted work licensed under the terms of the 9 Cygwin license. Please consult the file "CYGWIN_LICENSE" for 10 details. */ 11 12 #ifndef _SYS_SELECT_H 13 #define _SYS_SELECT_H 14 15 #if !defined (_POSIX_SOURCE) && !defined (__INSIDE_CYGWIN_NET__) 16 17 #include <sys/cdefs.h> 18 19 /* Get fd_set, and macros like FD_SET */ 20 #include <sys/types.h> 21 22 /* Get definition of timeval. */ 23 #include <sys/time.h> 24 #include <time.h> 25 26 __BEGIN_DECLS 27 28 int select __P ((int __n, fd_set *__readfds, fd_set *__writefds, 29 fd_set *__exceptfds, struct timeval *__timeout)); 30 31 __END_DECLS 32 33 #endif /* !_POSIX_SOURCE, !__INSIDE_CYGWIN_NET__ */ 34 35 #endif /* sys/select.h */ |