Hi marc, I read libev's code , I found EV_INOTIFY_BUFSIZE's define

/* the * 2 is to allow for alignment padding, which for some reason is >> 8
*/
# define EV_INOTIFY_BUFSIZE (sizeof (struct inotify_event) * 2 + NAME_MAX)

therefor my problem is why need *2(your comment make me doubt).

-- 
博观约取

豆瓣:www.douban.com/people/mustang/

blog: www.pagefault.info

twitter: www.twitter.com/minibobo
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to