rpoll.man (135768) | rpoll.man (156803) |
---|---|
1'\" 2'\" Copyright (c)1996-2002 by Hartmut Brandt 3'\" All rights reserved. 4'\" 5'\" Author: Hartmut Brandt 6'\" 7'\" Redistribution of this software and documentation and use in source and 8'\" binary forms, with or without modification, are permitted provided that --- 14 unchanged lines hidden (view full) --- 23'\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 24'\" OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25'\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26'\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 27'\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28'\" 29'\" $Begemot: libbegemot/rpoll.man,v 1.4 2004/09/21 15:59:00 brandt Exp $ 30'\" | 1'\" 2'\" Copyright (c)1996-2002 by Hartmut Brandt 3'\" All rights reserved. 4'\" 5'\" Author: Hartmut Brandt 6'\" 7'\" Redistribution of this software and documentation and use in source and 8'\" binary forms, with or without modification, are permitted provided that --- 14 unchanged lines hidden (view full) --- 23'\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 24'\" OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25'\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26'\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 27'\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28'\" 29'\" $Begemot: libbegemot/rpoll.man,v 1.4 2004/09/21 15:59:00 brandt Exp $ 30'\" |
31.TH rpoll l "21 Oct 1996" "BEGEMOT" "BEGEMOT Library" | 31.TH rpoll 3 "21 Oct 1996" "BEGEMOT" "BEGEMOT Library" |
32.SH NAME 33rpoll - callback functions for file descriptors and timers 34.SH SYNOPSIS 35.LP 36.B "# include <rpoll.h>" 37.LP 38.BR "typedef void (*poll_f)(int " "fd" ", int " "mask" ", void *" "arg);" 39.br --- 36 unchanged lines hidden (view full) --- 76A file descriptor is registered with 77.BR poll_register . 78.I fd 79is the file descriptor to watch, 80.I mask 81is an event mask. 82It may be any combination of 83.B POLL_IN | 32.SH NAME 33rpoll - callback functions for file descriptors and timers 34.SH SYNOPSIS 35.LP 36.B "# include <rpoll.h>" 37.LP 38.BR "typedef void (*poll_f)(int " "fd" ", int " "mask" ", void *" "arg);" 39.br --- 36 unchanged lines hidden (view full) --- 76A file descriptor is registered with 77.BR poll_register . 78.I fd 79is the file descriptor to watch, 80.I mask 81is an event mask. 82It may be any combination of 83.B POLL_IN |
84to get informed, when input on the file descriptor is possible, | 84to get informed when input on the file descriptor is possible, |
85.B POLL_OUT | 85.B POLL_OUT |
86to get informed, when output is possible or | 86to get informed when output is possible or |
87.B POLL_EXCEPT | 87.B POLL_EXCEPT |
88to get informed, when an exceptional condition occures. | 88to get informed when an exceptional condition occures. |
89An example of an exceptional condition is the arrival of urgent data. 90(Note, that an end of file condition is signaled via POLL_IN). 91.I func 92is the user function to be called and 93.I arg 94is a user supplied argument for this function. 95The callback functions is called with the file descriptor, a mask 96describing the actual events (from the set supplied in the registration) and --- 92 unchanged lines hidden --- | 89An example of an exceptional condition is the arrival of urgent data. 90(Note, that an end of file condition is signaled via POLL_IN). 91.I func 92is the user function to be called and 93.I arg 94is a user supplied argument for this function. 95The callback functions is called with the file descriptor, a mask 96describing the actual events (from the set supplied in the registration) and --- 92 unchanged lines hidden --- |