Renamed argument from 'path' to 'pathname'.

inotify_add_watch() may also modify an existing watch item.
This commit is contained in:
Michael Kerrisk 2006-06-05 02:46:06 +00:00
parent 9f5774a93b
commit 93440c026d
1 changed files with 8 additions and 7 deletions

View File

@ -32,11 +32,12 @@ inotify_add_watch \- add a watch to an initialized inotify instance
.SH SYNOPSIS
.B #include <sys/inotify.h>
.sp
.BI "int inotify_add_watch(int " fd ", const char *" path ", uint32_t " mask );
.BI "int inotify_add_watch(int " fd ", const char *" pathname ", uint32_t " mask );
.SH DESCRIPTION
.BR inotify_add_watch ()
adds a watch on the file at pathname
.I path
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
.I fd
with the event mask given by the bitmask
@ -49,14 +50,14 @@ for a description of the bits that can be set in
A successful call to
.BR inotify_add_watch ()
returns the unique watch descriptor associated with
.I path
.I pathname
for this inotify instance.
If
.I path
.I pathname
was not previously being watched by this inotify instance,
then the watch descriptor is newly allocated.
If
.I path
.I pathname
was already being watched, then the descriptor
for the existing watch is returned.
@ -84,7 +85,7 @@ Read access to the given file is not permitted.
The given file descriptor is not valid.
.TP
.B EFAULT
.I path
.I pathname
points outside of the process's accessible address space.
.TP
.B EINVAL