.\" 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
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)
.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)