Commit | Line | Data |
---|---|---|
3666451e MD |
1 | /* classes: h_files */ |
2 | ||
0527e687 DH |
3 | #ifndef SCM_ISELECT_H |
4 | #define SCM_ISELECT_H | |
3666451e | 5 | |
26d14806 MW |
6 | /* Copyright (C) 1997,1998,2000,2001, 2002, 2006, |
7 | * 2013 Free Software Foundation, Inc. | |
0527e687 | 8 | * |
73be1d9e | 9 | * This library is free software; you can redistribute it and/or |
53befeb7 NJ |
10 | * modify it under the terms of the GNU Lesser General Public License |
11 | * as published by the Free Software Foundation; either version 3 of | |
12 | * the License, or (at your option) any later version. | |
0527e687 | 13 | * |
53befeb7 NJ |
14 | * This library is distributed in the hope that it will be useful, but |
15 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
73be1d9e MV |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 | * Lesser General Public License for more details. | |
0527e687 | 18 | * |
73be1d9e MV |
19 | * You should have received a copy of the GNU Lesser General Public |
20 | * License along with this library; if not, write to the Free Software | |
53befeb7 NJ |
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
22 | * 02110-1301 USA | |
73be1d9e | 23 | */ |
0527e687 DH |
24 | |
25 | \f | |
3666451e MD |
26 | |
27 | #include "libguile/__scm.h" | |
28 | ||
bb3b902f JB |
29 | /* Needed for FD_SET on some systems. */ |
30 | #include <sys/types.h> | |
31 | ||
9d4b740b | 32 | #if SCM_HAVE_SYS_SELECT_H |
3666451e | 33 | |
6ab4de61 | 34 | #include <sys/select.h> |
82893676 | 35 | |
6ab4de61 AW |
36 | SCM_API int scm_std_select (int fds, |
37 | fd_set *rfds, | |
38 | fd_set *wfds, | |
39 | fd_set *efds, | |
40 | struct timeval *timeout); | |
3666451e MD |
41 | |
42 | #define SELECT_TYPE fd_set | |
3666451e | 43 | |
6ab4de61 | 44 | #endif /* SCM_HAVE_SYS_SELECT_H */ |
6d8d2deb | 45 | |
0527e687 | 46 | #endif /* SCM_ISELECT_H */ |
89e00824 ML |
47 | |
48 | /* | |
49 | Local Variables: | |
50 | c-file-style: "gnu" | |
51 | End: | |
52 | */ |