#include <sys/inotify.h>
struct inotify_event {}


int inotify_init()
int inotify_add_watch(int fd, const char *path, int mod)
inotify_rm_watch(int fd, int hd)


int read(fd, buff, BUFF_LEN) //buff是指向struct inotify_event的指针


监听事件:
IN_MODIFY
IN_ATTRB
IN_MOVE
IN_DELETE
IN_MOVE_SELF
IN_DELETE_SELF
IN_UNMOUNT