µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
select.h
Go to the documentation of this file.
1/*
2 * This file is part of the µOS++ project (https://micro-os-plus.github.io/).
3 * Copyright (c) 2015-2025 Liviu Ionescu. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software
6 * for any purpose is hereby granted, under the terms of the MIT license.
7 *
8 * If a copy of the license was not distributed with this file, it can
9 * be obtained from https://opensource.org/licenses/mit.
10 */
11
12#ifndef POSIX_IO_SYS_SELECT_H_
13#define POSIX_IO_SYS_SELECT_H_
14
15// ----------------------------------------------------------------------------
16
17#include <unistd.h>
18
19#if defined(_POSIX_VERSION)
20#include_next <sys/select.h>
21#else
22
23#include <sys/types.h>
24
25#ifdef __cplusplus
26extern "C"
27{
28#endif
29
30 // --------------------------------------------------------------------------
31
32 // typedef struct
33 // {
34 // }fd_set;
35 //
36 // struct timeval
37 // {
38 // time_t tv_sec; // Seconds.
39 // suseconds_t tv_usec; // Microseconds.
40 // };
41
42 int
43 select (int nfds, fd_set* readfds, fd_set* writefds, fd_set* errorfds,
44 struct timeval* timeout);
45
46 // --------------------------------------------------------------------------
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* defined(_POSIX_VERSION) */
53
54#endif /* POSIX_IO_SYS_SELECT_H_ */
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)