Re-use read function from libc
Add wrapper for inotify_event