Select (Unix)

Select (Unix)

select is a system call for polling multiple file descriptors. In C programming, it is declared in the header file sys/select.h or unistd.h. Those files and sys/time.h must be included to use select.

int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* errorfds, struct timeval* timeout);

To manipulate the fd_set type arguments, the four FD_SET(), FD_CLR(), FD_ZERO() and FD_ISSET() macros can be used.

The function returns the total number of bits set in "readfds", "writefds" and "errorfds", the value of zero if the timeout expired and -1 on error.

External references

* [http://www.cl.cam.ac.uk/cgi-bin/manpage?2+select Unix Manual Page for select]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Select — may refer to: * Select (SQL), a keyword in SQL * , an HTML element * Select (magazine), a British music magazine * MTV Select , a television program * Cable select, a setting on ATA devices that allows position on the cable to determine the role… …   Wikipedia

  • Unix philosophy — The Unix philosophy is a set of cultural norms and philosophical approaches to developing software based on the experience of leading developers of the Unix operating system.McIlroy: A Quarter Century of UnixDoug McIlroy, the inventor of Unix… …   Wikipedia

  • Unix-Philosophie — Die Unix Philosophie ist eine Menge von Regeln und Herangehensweisen bei der Software Entwicklung, die auf den Erfahrungen der führenden Unix Programmierer basieren. Inhaltsverzeichnis 1 McIlroy: A Quarter Century of Unix 2 Pike: Notes on… …   Deutsch Wikipedia

  • Unix shell — A Unix shell, is a command line shell that provides the traditional user interface for the Unix operating system and for Unix like systems. Users direct the operation of the computer by entering command input as text for a command line… …   Wikipedia

  • List of Unix utilities — This is a list of UNIX utilities as specified by IEEE Std 1003.1 2008, which is part of the Single UNIX Specification (SUS). These utilities can be found on UNIX Operating systems and most UNIX like operating systems. List IEEE Std 1003.1 2008… …   Wikipedia

  • Philosophie d'UNIX — La philosophie d Unix est un ensemble de normes et une approche du développement de logiciels basée sur l expérience des principaux developpeurs du système d exploitation Unix. Sommaire 1 McIlroy: Un Quart de siècle d Unix 2 Pike: Un mot sur la… …   Wikipédia en Français

  • Philosophie d'Unix — La philosophie d Unix est un ensemble de normes et une approche du développement de logiciels basée sur l expérience des principaux développeurs du système d exploitation Unix. Sommaire 1 McIlroy : Un Quart de siècle d Unix 2 Pike: Un mot… …   Wikipédia en Français

  • Seismic Unix — is an open source seismic utilities package supported by the Center for Wave Phenomena (CWP) at the Colorado School of Mines (CSM).Infobox Software name = Seismic Unix caption = Velocity Analysis with SU developer = [http://www.cwp.mines.edu/… …   Wikipedia

  • Top (UNIX) — top вывод top в терминале Тип Системный монитор процессов ОС Кроссплатформенное программное обеспечение Лицензия GNU GPL Сайт …   Википедия

  • Top (Unix) — top вывод top в терминале Тип Системный монитор процессов ОС Кроссплатформенное программное обеспечение Лицензия GNU GPL Сайт …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”