OSDN Git Service

(split) LDP: Update original to LDP v3.40.
[linuxjm/LDP_man-pages.git] / original / man7 / inotify.7
index 6936293..6a34e1e 100644 (file)
@@ -23,7 +23,7 @@
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
-.TH INOTIFY 7 2011-12-07 "Linux" "Linux Programmer's Manual"
+.TH INOTIFY 7 2012-04-26 "Linux" "Linux Programmer's Manual"
 .SH NAME
 inotify \- monitoring file system events
 .SH DESCRIPTION
@@ -147,7 +147,7 @@ including the null bytes;
 the length of each
 .I inotify_event
 structure is thus
-.IR "sizeof(inotify_event)+len" .
+.IR "sizeof(struct inotify_event)+len" .
 
 The behavior when the buffer given to
 .BR read (2)
@@ -158,6 +158,12 @@ returns 0; since kernel 2.6.21,
 .BR read (2)
 fails with the error
 .BR EINVAL .
+Specifying a buffer of size
+
+    sizeof(struct inotify_event) + NAME_MAX + 1
+
+will be sufficient to read at least one event.
+
 .SS inotify events
 The
 .BR inotify_add_watch (2)