• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2017 The Android Open Source Project
2 // SPDX-License-Identifier: BSD-2-Clause
3 
4 #include <sys/select.h>
5 
6 #include "header_checks.h"
7 
sys_select_h()8 static void sys_select_h() {
9   TYPE(struct timeval);
10   STRUCT_MEMBER(struct timeval, time_t, tv_sec);
11   STRUCT_MEMBER(struct timeval, suseconds_t, tv_usec);
12 
13   TYPE(time_t);
14   TYPE(suseconds_t);
15 
16   TYPE(sigset_t);
17   TYPE(struct timespec);
18   TYPE(fd_set);
19 
20   MACRO(FD_SETSIZE);
21 
22 #if !defined(FD_CLR)
23 #error FD_CLR
24 #endif
25 #if !defined(FD_ISSET)
26 #error FD_ISSET
27 #endif
28 #if !defined(FD_SET)
29 #error FD_SET
30 #endif
31 #if !defined(FD_ZERO)
32 #error FD_ZERO
33 #endif
34 
35   FUNCTION(pselect, int (*f)(int, fd_set*, fd_set*, fd_set*, const struct timespec*, const sigset_t*));
36   FUNCTION(select, int (*f)(int, fd_set*, fd_set*, fd_set*, struct timeval*));
37 }
38