diff options
Diffstat (limited to 'upstream/debian-unstable/man3/sd_event_add_inotify.3')
-rw-r--r-- | upstream/debian-unstable/man3/sd_event_add_inotify.3 | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/upstream/debian-unstable/man3/sd_event_add_inotify.3 b/upstream/debian-unstable/man3/sd_event_add_inotify.3 index cb5a643a..6bd6c615 100644 --- a/upstream/debian-unstable/man3/sd_event_add_inotify.3 +++ b/upstream/debian-unstable/man3/sd_event_add_inotify.3 @@ -1,5 +1,5 @@ '\" t -.TH "SD_EVENT_ADD_INOTIFY" "3" "" "systemd 255" "sd_event_add_inotify" +.TH "SD_EVENT_ADD_INOTIFY" "3" "" "systemd 256~rc3" "sd_event_add_inotify" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -20,7 +20,7 @@ .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" -sd_event_add_inotify, sd_event_add_inotify_fd, sd_event_source_get_inotify_mask, sd_event_inotify_handler_t \- Add an "inotify" file system inode event source to an event loop +sd_event_add_inotify, sd_event_add_inotify_fd, sd_event_source_get_inotify_mask, sd_event_source_get_inotify_path, sd_event_inotify_handler_t \- Add an "inotify" file system inode event source to an event loop .SH "SYNOPSIS" .sp .ft B @@ -41,7 +41,9 @@ typedef struct sd_event_source sd_event_source; .HP \w'int\ sd_event_add_inotify_fd('u .BI "int sd_event_add_inotify_fd(sd_event\ *" "event" ", sd_event_source\ **" "source" ", int\ " "fd" ", uint32_t\ " "mask" ", sd_event_inotify_handler_t\ " "handler" ", void\ *" "userdata" ");" .HP \w'int\ sd_event_source_get_inotify_mask('u -.BI "int sd_event_source_get_inotify_mask(sd_event_source\ *" "source" ", uint32_t\ *" "mask" ");" +.BI "int sd_event_source_get_inotify_mask(sd_event_source\ *" "source" ", uint32_t\ *" "ret" ");" +.HP \w'int\ sd_event_source_get_inotify_path('u +.BI "int sd_event_source_get_inotify_path(sd_event_source\ *" "source" ", const\ char\ **" "ret" ");" .SH "DESCRIPTION" .PP \fBsd_event_add_inotify()\fR @@ -126,6 +128,14 @@ retrieves the configured inotify watch mask of an event source created previousl parameter and a pointer to a \fBuint32_t\fR variable to return the mask in\&. +.PP +\fBsd_event_source_get_inotify_path()\fR +retrieves the target path of the configured inotify watch of an event source created previously with +\fBsd_event_add_inotify()\fR\&. It takes the event source object as the +\fIsource\fR +parameter and a pointer to a +\fBconst char **\fR +variable to return the path in\&. The caller must not free the returned path\&. .SH "RETURN VALUE" .PP On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. @@ -147,7 +157,13 @@ set\&. .PP \fB\-ESTALE\fR .RS 4 -The event loop is already terminated\&. +Returned by +\fBsd_event_source_add_inotify()\fR +or +\fBsd_event_source_add_inotify_fd()\fR +when the event loop is already terminated\&. Returned by +\fBsd_event_source_get_inotify_path()\fR +when no active inode data is assigned to the event source, e\&.g\&. when the event source is disabled\&. .RE .PP \fB\-ECHILD\fR @@ -163,18 +179,16 @@ The passed event source is not an inotify process event source\&. \fB\-EBADF\fR .RS 4 The passed file descriptor is not valid\&. -.sp -Added in version 250\&. .RE .PP \fB\-ENOSYS\fR .RS 4 \fBsd_event_add_inotify_fd()\fR +or +\fBsd_event_source_get_inotify_path()\fR was called without /proc/ mounted\&. -.sp -Added in version 250\&. .RE .SH "EXAMPLES" .PP @@ -267,20 +281,9 @@ were added in version 239\&. .PP \fBsd_event_add_inotify_fd()\fR was added in version 250\&. +.PP +\fBsd_event_source_get_inotify_path()\fR +was added in version 256\&. .SH "SEE ALSO" .PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_now\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_floating\fR(3), -\fBwaitid\fR(2) +\fBsystemd\fR(1), \fBsd-event\fR(3), \fBsd_event_new\fR(3), \fBsd_event_now\fR(3), \fBsd_event_add_io\fR(3), \fBsd_event_add_time\fR(3), \fBsd_event_add_signal\fR(3), \fBsd_event_add_defer\fR(3), \fBsd_event_add_child\fR(3), \fBsd_event_source_set_enabled\fR(3), \fBsd_event_source_set_priority\fR(3), \fBsd_event_source_set_userdata\fR(3), \fBsd_event_source_set_description\fR(3), \fBsd_event_source_set_floating\fR(3), \fBwaitid\fR(2) |