瞎折腾

搞事情

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年8月1日

摘要: #include <stdio.h>#include <sys/epoll.h>#include <stdlib.h>#include <sys/inotify.h>#define FDMAXNUM (1024)#define MAXEVENTS (64)#define FAILURE_EXIT (-1)#define INOTIFYEVENTBUFSIZE (1024)int main(int argc, char**argv){ int ifd = inotify_init(); if(ifd==-1){ perror("inoti 阅读全文
posted @ 2011-08-01 11:32 secularbird 阅读(562) 评论(0) 推荐(0) 编辑