inotify.7: Note buffer size that guarantees being able to read at least one event

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2012-04-24 09:35:45 +12:00
parent 655684a9d9
commit 4ba272b3e0
1 changed files with 6 additions and 0 deletions

View File

@ -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)