Minor heading changes and reformattings.

This commit is contained in:
Michael Kerrisk 2007-12-19 05:17:51 +00:00
parent c1bdeb84c5
commit 8a35999094
1 changed files with 2 additions and 14 deletions

View File

@ -77,7 +77,7 @@ will block until at least one event occurs.
Each successful Each successful
.BR read (2) .BR read (2)
returns a buffer containing one or more of the following structures: returns a buffer containing one or more of the following structures:
.in +0.25i .RS 4
.nf .nf
struct inotify_event { struct inotify_event {
@ -89,7 +89,7 @@ struct inotify_event {
char name[]; /* Optional null-terminated name */ char name[]; /* Optional null-terminated name */
}; };
.fi .fi
.in -0.25i .RE
.I wd .I wd
identifies the watch for which this event occurs. identifies the watch for which this event occurs.
@ -156,11 +156,8 @@ and may be returned in the
.I mask .I mask
field returned by field returned by
.BR read (2): .BR read (2):
.in +0.25i
.TS .TS
lB lB
lB l. lB l.
Bit Description
IN_ACCESS File was accessed (read) (*) IN_ACCESS File was accessed (read) (*)
IN_ATTRIB Metadata changed (permissions, timestamps, IN_ATTRIB Metadata changed (permissions, timestamps,
extended attributes, etc.) (*) extended attributes, etc.) (*)
@ -175,7 +172,6 @@ IN_MOVED_FROM File moved out of watched directory (*)
IN_MOVED_TO File moved into watched directory (*) IN_MOVED_TO File moved into watched directory (*)
IN_OPEN File was opened (*) IN_OPEN File was opened (*)
.TE .TE
.in -0.25i
.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
@ -206,11 +202,8 @@ 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):
.in +0.25i
.TS .TS
lB lB
lB l. lB l.
Bit Description
IN_DONT_FOLLOW Don't dereference \fIpathname\fP if it is a symbolic link IN_DONT_FOLLOW Don't dereference \fIpathname\fP if it is a symbolic link
(Since Linux 2.6.15) (Since Linux 2.6.15)
IN_MASK_ADD Add (OR) events to watch mask for this pathname if IN_MASK_ADD Add (OR) events to watch mask for this pathname if
@ -220,17 +213,13 @@ IN_ONESHOT Monitor \fIpathname\fP for one event, then remove from
IN_ONLYDIR Only watch \fIpathname\fP if it is a directory IN_ONLYDIR Only watch \fIpathname\fP if it is a directory
(Since Linux 2.6.15) (Since Linux 2.6.15)
.TE .TE
.in -0.25i
.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):
.in +0.25i
.TS .TS
lB lB
lB l. lB l.
Bit Description
IN_IGNORED Watch was removed explicitly (\fBinotify_rm_watch\fP(2)) IN_IGNORED Watch was removed explicitly (\fBinotify_rm_watch\fP(2))
or automatically (file was deleted, or or automatically (file was deleted, or
file system was unmounted) file system was unmounted)
@ -238,7 +227,6 @@ IN_ISDIR Subject of this event is a directory
IN_Q_OVERFLOW Event queue overflowed (\fIwd\fP is \-1 for this event) IN_Q_OVERFLOW Event queue overflowed (\fIwd\fP is \-1 for this event)
IN_UNMOUNT File system containing watched object was unmounted IN_UNMOUNT File system containing watched object was unmounted
.TE .TE
.in -0.25i
.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: