mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-01 13:32:26 +07:00
Update documentation to mention lack of support for regular files
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -15,9 +15,15 @@ Introduction
|
||||
------------
|
||||
|
||||
The C API to [libuEv][], listed in `uev/uev.h`, handles three different
|
||||
types of events: I/O (files, sockets, message queues, etc.), timers, and
|
||||
types of events: I/O (pipes, sockets, message queues, etc.), timers, and
|
||||
signals. The [Summary](#summary) details a slight caveat on signals.
|
||||
|
||||
Notice the *lack of support for regular files* and directories. This is
|
||||
a limitation of the underlying Linux `epoll` interface which will return
|
||||
`EPERM` for regular files. Except for the special case when `stdin` is
|
||||
redirected from the command line. See `examples/redirect.c` for more on
|
||||
this particular case.
|
||||
|
||||
Timers can be either relative, timeout in milliseconds, or absolute with
|
||||
a time given in `time_t`, see `mktime()` et al. Absolute timers are
|
||||
called cron timers and their callbacks get an `UEV_HUP` error event if
|
||||
|
||||
Reference in New Issue
Block a user