mirror of https://github.com/mkerrisk/man-pages
A few minor rewordings.
This commit is contained in:
parent
211ec15cf1
commit
a2cc46ca3a
|
@ -35,17 +35,17 @@ for the directory itself, and for files inside the directory.
|
||||||
The following system calls are used with this API:
|
The following system calls are used with this API:
|
||||||
.BR inotify_init (),
|
.BR inotify_init (),
|
||||||
.BR inotify_add_watch (),
|
.BR inotify_add_watch (),
|
||||||
.BR read (),
|
|
||||||
.BR inotify_rm_watch (),
|
.BR inotify_rm_watch (),
|
||||||
|
.BR read (),
|
||||||
and
|
and
|
||||||
.BR close ().
|
.BR close ().
|
||||||
|
|
||||||
.BR inotify_init (2)
|
.BR inotify_init (2)
|
||||||
creates an inotify instance and returns a file descriptor
|
creates an inotify instance and returns a file descriptor
|
||||||
referring to the inotify object.
|
referring to the inotify instance.
|
||||||
|
|
||||||
.BR inotify_add_watch (2)
|
.BR inotify_add_watch (2)
|
||||||
manipulates the "watch list" associated with an inotify object.
|
manipulates the "watch list" associated with an inotify instance.
|
||||||
Each item ("watch") in the watch list specifies the pathname of
|
Each item ("watch") in the watch list specifies the pathname of
|
||||||
a file or directory,
|
a file or directory,
|
||||||
along with some set of events that the kernel should monitor for the
|
along with some set of events that the kernel should monitor for the
|
||||||
|
@ -60,8 +60,10 @@ when the watch is created.
|
||||||
.BR inotify_rm_watch (2)
|
.BR inotify_rm_watch (2)
|
||||||
removes an item from an inotify watch list.
|
removes an item from an inotify watch list.
|
||||||
|
|
||||||
When all file descriptors referring to an inotify object have been closed,
|
When all file descriptors referring to an inotify
|
||||||
the underlying object and its resources are freed for re-use by the kernel;
|
instance have been closed,
|
||||||
|
the underlying object and its resources are
|
||||||
|
freed for re-use by the kernel;
|
||||||
all associated watches are automatically freed.
|
all associated watches are automatically freed.
|
||||||
|
|
||||||
To determine what events have occurred, an application
|
To determine what events have occurred, an application
|
||||||
|
@ -285,11 +287,6 @@ The required library interfaces were added to glibc in version 2.4.
|
||||||
.\" but these definitions were added on 17 May 06.
|
.\" but these definitions were added on 17 May 06.
|
||||||
.SH "CONFORMING TO"
|
.SH "CONFORMING TO"
|
||||||
The inotify API is Linux specific.
|
The inotify API is Linux specific.
|
||||||
Some other systems provide similar mechanisms, e.g.,
|
|
||||||
FreeBSD has
|
|
||||||
.IR kqueue ,
|
|
||||||
and Solaris has
|
|
||||||
.IR /dev/poll .
|
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
.BR inotify_add_watch (2),
|
.BR inotify_add_watch (2),
|
||||||
.BR inotify_init (2),
|
.BR inotify_init (2),
|
||||||
|
|
Loading…
Reference in New Issue