=head1 NAME POSIX::1003::Events - POSIX for the file-system =head1 INHERITANCE POSIX::1003::Events is a POSIX::1003 =head1 SYNOPSIS use POSIX::1003::Events; =head1 FUNCTIONS =over 4 =item B(FD, SET) Remove the file descriptor FD from the SET. If FD is not a member of this set, there shall be no effect on the set, nor will an error be returned. =item B(FD, SET) Returns true if the file descriptor FD is a member of the SET =item B(FD, SET) Add the file descriptor FD to the SET If the file descriptor FD is already in this set, there is no effect on the set, nor will an error be returned. =item B(SET) Clear the set =item B(HASH, [TIMEOUT]) If TIMEOUT is not defined, the poll will wait until something happend. When C is returned, then there is an error. With an empy HASH returned, then the poll timed out. Otherwise, the returned HASH contains the FDs where something happened. =item B. The second is the one we need here. Without TIMEOUT, the select will wait until an event emerges (or an interrupt). In the example below, C<$rin> is a bit-set indicating on which file-descriptors should be listed for read events (I) and C<$rout> is a sub-set of that. The bit-sets can be manipulated with the C functions also exported by this module. my ($nfound, $timeleft) = select($rout=$rin, $wout=$win, $eout=$ein, $timeout); my $nfound = select($rout=$rin, $wout=$win, $eout=$ein); The C