select.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_COMPAT_SELECT_H
10 #define SQUID_COMPAT_SELECT_H
11 
12 #if HAVE_SYS_SELECT_H
13 #include <sys/select.h>
14 #endif
15 
17 int xselect(int nfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds, struct timeval * timeout);
18 
19 #if !(_SQUID_WINDOWS_ || _SQUID_MINGW_)
20 
21 inline int
22 xselect(int nfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds, struct timeval * timeout)
23 {
24  return select(nfds, readfds, writefds, exceptfds, timeout);
25 }
26 
27 #endif /* !(_SQUID_WINDOWS_ || _SQUID_MINGW_) */
28 
29 #endif /* SQUID_COMPAT_SELECT_H */
int xselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
POSIX select(2) equivalent.
Definition: select.h:22

 

Introduction

Documentation

Support

Miscellaneous