ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Linux-Inotify2/README
(Generate patch)

Comparing cvsroot/Linux-Inotify2/README (file contents):
Revision 1.4 by root, Tue Aug 23 02:13:55 2005 UTC vs.
Revision 1.5 by root, Sun Nov 27 12:43:40 2005 UTC

77 IN_MOVED_FROM file was moved from this object (directory) 77 IN_MOVED_FROM file was moved from this object (directory)
78 IN_MOVED_TO file was moved to this object (directory) 78 IN_MOVED_TO file was moved to this object (directory)
79 IN_CREATE file was created in this object (directory) 79 IN_CREATE file was created in this object (directory)
80 IN_DELETE file was deleted from this object (directory) 80 IN_DELETE file was deleted from this object (directory)
81 IN_DELETE_SELF object itself was deleted 81 IN_DELETE_SELF object itself was deleted
82 IN_MOVE_SELF object itself was moved
82 IN_ALL_EVENTS all of the above events 83 IN_ALL_EVENTS all of the above events
83 84
84 IN_ONESHOT only send event once 85 IN_ONESHOT only send event once
85 86
86 IN_CLOSE same as IN_CLOSE_WRITE | IN_CLOSE_NOWRITE 87 IN_CLOSE same as IN_CLOSE_WRITE | IN_CLOSE_NOWRITE
137 $event->{name} 138 $event->{name}
138 The path of the filesystem object, relative to the watch name. 139 The path of the filesystem object, relative to the watch name.
139 140
140 $watch->fullname 141 $watch->fullname
141 Returns the "full" name of the relevant object, i.e. including the 142 Returns the "full" name of the relevant object, i.e. including the
142 "name" component of the watcher. 143 "name" member of the watcher (if the the watch is on a directory and
144 a dir entry is affected), or simply the "name" member itself when
145 the object is the watch object itself.
143 146
144 $event->mask 147 $event->mask
145 $event->{mask} 148 $event->{mask}
146 The received event mask. In addition the the events described for 149 The received event mask. In addition the the events described for
147 "$inotify-"watch>, the following flags (exported by default) can be 150 "$inotify-"watch>, the following flags (exported by default) can be
148 set: 151 set:
149 152
150 IN_ISDIR event object is a directory 153 IN_ISDIR event object is a directory
151
152 IN_Q_OVERFLOW event queue overflowed 154 IN_Q_OVERFLOW event queue overflowed
153 155
154 # when the following flags are set, then watchers are canceled automatically 156 # when any of the following flags are set,
157 # then watchers for this event are automatically canceled
155 IN_UNMOUNT filesystem for watch'ed object was unmounted 158 IN_UNMOUNT filesystem for watch'ed object was unmounted
156 IN_IGNORED file was ignored/is gone (no more events are delivered) 159 IN_IGNORED file was ignored/is gone (no more events are delivered)
160 IN_ONESHOT only one event was generated
157 161
158 $event->IN_xxx 162 $event->IN_xxx
159 Returns a boolean that returns true if the event mask matches the 163 Returns a boolean that returns true if the event mask matches the
160 event. All of the "IN_xxx" constants can be used as methods. 164 event. All of the "IN_xxx" constants can be used as methods.
161 165
162 $event->cookie 166 $event->cookie
163 $event->{cookie} 167 $event->{cookie}
164 The event cookie, can be used to synchronize two related events. 168 The event cookie to "synchronize two events". Normally zero, this
169 value is set when two events relating to the same file are
170 generated. As far as I know, this only happens for "IN_MOVED_FROM"
171 and "IN_MOVED_TO" events, to identify the old and new name of a
172 file.
165 173
166 The Linux::Inotify2::Watch Class 174 The Linux::Inotify2::Watch Class
167 Watch objects are created by calling the "watch" method of a notifier. 175 Watch objects are created by calling the "watch" method of a notifier.
168 176
169 It has the following members and methods: 177 It has the following members and methods:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines