A few minor rewordings.

This commit is contained in:
Michael Kerrisk 2006-06-05 08:16:20 +00:00
parent 211ec15cf1
commit a2cc46ca3a
1 changed files with 7 additions and 10 deletions

View File

@ -35,17 +35,17 @@ for the directory itself, and for files inside the directory.
The following system calls are used with this API:
.BR inotify_init (),
.BR inotify_add_watch (),
.BR read (),
.BR inotify_rm_watch (),
.BR read (),
and
.BR close ().
.BR inotify_init (2)
creates an inotify instance and returns a file descriptor
referring to the inotify object.
referring to the inotify instance.
.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
a file or directory,
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)
removes an item from an inotify watch list.
When all file descriptors referring to an inotify object have been closed,
the underlying object and its resources are freed for re-use by the kernel;
When all file descriptors referring to an inotify
instance have been closed,
the underlying object and its resources are
freed for re-use by the kernel;
all associated watches are automatically freed.
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.
.SH "CONFORMING TO"
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"
.BR inotify_add_watch (2),
.BR inotify_init (2),