mirror of https://github.com/mkerrisk/man-pages
ffix
This commit is contained in:
parent
dda869a41d
commit
3f174f7d71
|
@ -156,22 +156,47 @@ and may be returned in the
|
||||||
.I mask
|
.I mask
|
||||||
field returned by
|
field returned by
|
||||||
.BR read (2):
|
.BR read (2):
|
||||||
.TS
|
.RS 4
|
||||||
lB l.
|
.sp
|
||||||
IN_ACCESS File was accessed (read) (*)
|
.PD 0
|
||||||
IN_ATTRIB Metadata changed (permissions, timestamps,
|
.TP 18
|
||||||
extended attributes, etc.) (*)
|
.B IN_ACCESS
|
||||||
IN_CLOSE_WRITE File opened for writing was closed (*)
|
File was accessed (read) (*).
|
||||||
IN_CLOSE_NOWRITE File not opened for writing was closed (*)
|
.TP
|
||||||
IN_CREATE File/directory created in watched directory (*)
|
.B IN_ATTRIB
|
||||||
IN_DELETE File/directory deleted from watched directory (*)
|
Metadata changed (permissions, timestamps, extended attributes, etc.) (*).
|
||||||
IN_DELETE_SELF Watched file/directory was itself deleted
|
.TP
|
||||||
IN_MODIFY File was modified (*)
|
.B IN_CLOSE_WRITE
|
||||||
IN_MOVE_SELF Watched file/directory was itself moved
|
File opened for writing was closed (*).
|
||||||
IN_MOVED_FROM File moved out of watched directory (*)
|
.TP
|
||||||
IN_MOVED_TO File moved into watched directory (*)
|
.B IN_CLOSE_NOWRITE
|
||||||
IN_OPEN File was opened (*)
|
File not opened for writing was closed (*).
|
||||||
.TE
|
.TP
|
||||||
|
.B IN_CREATE
|
||||||
|
File/directory created in watched directory (*).
|
||||||
|
.TP
|
||||||
|
.B IN_DELETE
|
||||||
|
File/directory deleted from watched directory (*).
|
||||||
|
.TP
|
||||||
|
.B IN_DELETE_SELF
|
||||||
|
Watched file/directory was itself deleted.
|
||||||
|
.TP
|
||||||
|
.B IN_MODIFY
|
||||||
|
File was modified (*).
|
||||||
|
.TP
|
||||||
|
.B IN_MOVE_SELF
|
||||||
|
Watched file/directory was itself moved.
|
||||||
|
.TP
|
||||||
|
.B IN_MOVED_FROM
|
||||||
|
File moved out of watched directory (*).
|
||||||
|
.TP
|
||||||
|
.B IN_MOVED_TO
|
||||||
|
File moved into watched directory (*).
|
||||||
|
.TP
|
||||||
|
.B IN_OPEN
|
||||||
|
File was opened (*).
|
||||||
|
.PD
|
||||||
|
.RE
|
||||||
.PP
|
.PP
|
||||||
When monitoring a directory,
|
When monitoring a directory,
|
||||||
the events marked with an asterisk (*) above can occur for
|
the events marked with an asterisk (*) above can occur for
|
||||||
|
@ -202,7 +227,10 @@ The following further bits can be specified in
|
||||||
.I mask
|
.I mask
|
||||||
when calling
|
when calling
|
||||||
.BR inotify_add_watch (2):
|
.BR inotify_add_watch (2):
|
||||||
.TP 16
|
.RS 4
|
||||||
|
.sp
|
||||||
|
.PD 0
|
||||||
|
.TP 18
|
||||||
.B IN_DONT_FOLLOW
|
.B IN_DONT_FOLLOW
|
||||||
Don't dereference \fIpathname\fP if it is a symbolic link
|
Don't dereference \fIpathname\fP if it is a symbolic link
|
||||||
(since Linux 2.6.15).
|
(since Linux 2.6.15).
|
||||||
|
@ -218,13 +246,17 @@ watch list.
|
||||||
.B IN_ONLYDIR
|
.B IN_ONLYDIR
|
||||||
Only watch \fIpathname\fP if it is a directory
|
Only watch \fIpathname\fP if it is a directory
|
||||||
(since Linux 2.6.15).
|
(since Linux 2.6.15).
|
||||||
.TE
|
.PD
|
||||||
|
.RE
|
||||||
.PP
|
.PP
|
||||||
The following bits may be set in the
|
The following bits may be set in the
|
||||||
.I mask
|
.I mask
|
||||||
field returned by
|
field returned by
|
||||||
.BR read (2):
|
.BR read (2):
|
||||||
.TP 16
|
.RS 4
|
||||||
|
.sp
|
||||||
|
.PD 0
|
||||||
|
.TP 18
|
||||||
.B IN_IGNORED
|
.B IN_IGNORED
|
||||||
Watch was removed explicitly (\fBinotify_rm_watch\fP(2))
|
Watch was removed explicitly (\fBinotify_rm_watch\fP(2))
|
||||||
or automatically (file was deleted, or file system was unmounted).
|
or automatically (file was deleted, or file system was unmounted).
|
||||||
|
@ -237,6 +269,8 @@ Event queue overflowed (\fIwd\fP is \-1 for this event).
|
||||||
.TP
|
.TP
|
||||||
.B IN_UNMOUNT
|
.B IN_UNMOUNT
|
||||||
File system containing watched object was unmounted.
|
File system containing watched object was unmounted.
|
||||||
|
.PD
|
||||||
|
.RE
|
||||||
.SS /proc interfaces
|
.SS /proc interfaces
|
||||||
The following interfaces can be used to limit the amount of
|
The following interfaces can be used to limit the amount of
|
||||||
kernel memory consumed by inotify:
|
kernel memory consumed by inotify:
|
||||||
|
|
Loading…
Reference in New Issue