1 /* 2 * Copyright (C) 2020-2021 Alibaba Group Holding Limited 3 */ 4 5 #ifndef AOS_SELECT_H 6 #define AOS_SELECT_H 7 8 #include <poll.h> 9 10 #undef POLLIN 11 #define POLLIN 0x001 12 #undef POLLOUT 13 #define POLLOUT 0x004 14 #undef POLLERR 15 #define POLLERR 0x008 16 17 int aos_poll(struct pollfd *fds, int nfds, int timeout); 18 int aos_select(int maxfd, fd_set *readset, fd_set *writeset, fd_set *exceptset, 19 struct timeval *timeout); 20 21 #endif 22