Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   _newselect    ( 2 )

синхронное мультиплексирование ввода / вывода (synchronous I/O multiplexing)

  Name  |  Synopsis  |  Description  |    Return value    |  Error  |  Versions  |  Conforming to  |  Note  |  Bugs  |  Examples  |  See also  |

Возвращаемое значение (Return value)

On success, select() and pselect() return the number of file descriptors contained in the three returned descriptor sets (that is, the total number of bits that are set in readfds, writefds, exceptfds). The return value may be zero if the timeout expired before any file descriptors became ready.

On error, -1 is returned, and errno is set to indicate the error; the file descriptor sets are unmodified, and timeout becomes undefined.