mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-07 16:00:55 +00:00
Update documentation to mention lack of support for regular files
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
0dfc9152bd
commit
ad262efa97
1 file changed
+7
-1
@@ -15,9 +15,15 @@ Introduction
|
|||||||
------------
|
------------
|
||||||
|
|
||||||
The C API to [libuEv][], listed in `uev/uev.h`, handles three different
|
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.
|
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
|
Timers can be either relative, timeout in milliseconds, or absolute with
|
||||||
a time given in `time_t`, see `mktime()` et al. Absolute timers are
|
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
|
called cron timers and their callbacks get an `UEV_HUP` error event if
|
||||||
|
|||||||
Reference in new issue
Block a user