From dace83cbd0c2212fc0e25d36d50711b19f14b1b6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 4 Apr 2013 17:38:08 +0200 Subject: login: add new public API call sd_login_monitor_get_events() to get poll() flags to wait for We should keep our options open, so that we can watch for POLLOUT later on if we wish to. CUrrently this call will always return POLLIN however. --- man/sd_journal_get_fd.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'man/sd_journal_get_fd.xml') diff --git a/man/sd_journal_get_fd.xml b/man/sd_journal_get_fd.xml index e57431ea9e..f29aeaab23 100644 --- a/man/sd_journal_get_fd.xml +++ b/man/sd_journal_get_fd.xml @@ -115,11 +115,11 @@ below. sd_journal_get_events() - will return the - poll2 - mask to wait for. This function will return a - combination of POLLIN and POLLOUT and similar to fill - into the .events field of + will return the poll() mask to + wait for. This function will return a combination of + POLLIN and + POLLOUT and similar to fill into + the .events field of struct pollfd. sd_journal_reliable_fd() @@ -134,7 +134,7 @@ sd_journal_get_fd() are sufficient as only source for wake-ups. - After each poll() wake-up + After each poll() wake-up sd_journal_process() needs to be called to process events. This call will also indicate what kind of change has been detected (see below; note @@ -169,9 +169,9 @@ errno-style error code. sd_journal_get_events() - returns a combination of POLLIN, POLLOUT and suchlike - on success or a negative errno-style error - code. + returns a combination of POLLIN, + POLLOUT and suchlike on success or + a negative errno-style error code. sd_journal_reliable_fd() returns a positive integer if the file descriptor -- cgit v1.2.3-54-g00ecf