mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Document select(2) as obsolete.
This commit is contained in:
parent
abbcc3941b
commit
9650bbd776
1 changed files with 12 additions and 0 deletions
|
@ -170,6 +170,18 @@ settimeofday
|
|||
|
||||
Use clock_settime instead.
|
||||
|
||||
select
|
||||
------
|
||||
|
||||
The fd_set system is poorly designed and the FD_SETSIZE is considerably smaller
|
||||
than INT_MIN on most systems, which violates that the value of the file
|
||||
descriptor shouldn't matter as long as it is between 0 and INT_MAX. It would be
|
||||
better to use poll instead. There is also the problem that select uses struct
|
||||
timeval instead of the superior struct timespec, though pselect solves tha
|
||||
particular problem.
|
||||
|
||||
Sortix currently provides this function for compatibility reasons.
|
||||
|
||||
strings.h
|
||||
---------
|
||||
|
||||
|
|
Loading…
Reference in a new issue