Some rewording; included text describing required file permissions.

This commit is contained in:
Michael Kerrisk 2006-07-27 07:38:05 +00:00
parent f1440cce86
commit dd28cb72a8
1 changed files with 11 additions and 5 deletions

View File

@ -36,12 +36,18 @@ inotify_add_watch \- add a watch to an initialized inotify instance
.SH DESCRIPTION
.BR inotify_add_watch ()
adds a new watch, or modifies an existing watch,
on the file at the location given in
.I pathname
to the inotify instance mapped by the file descriptor
for the file whose location is specified in
.IR pathname ;
the caller must have read permission for this file.
The
.I fd
with the event mask given by the bitmask
.IR mask .
argument is a file descriptor referring to the
inotify instance whose watch list is to be modified.
The events to be monitored for
.I pathname
are specified in the
.I mask
bit-mask argument.
See
.BR inotify (7)
for a description of the bits that can be set in