3 FD sets

The select function relies on file descriptor sets. As the name implies, a FD set is a set of FDs. The representation is not important, however. A set of macros are provided to clear a set, add an element, remove an element and check the existence of an element. Each element is a file descriptor.