… | |
… | |
1889 | /* we copy this here each the time so that */ |
1889 | /* we copy this here each the time so that */ |
1890 | /* prev has the old value when the callback gets invoked */ |
1890 | /* prev has the old value when the callback gets invoked */ |
1891 | w->prev = w->attr; |
1891 | w->prev = w->attr; |
1892 | ev_stat_stat (EV_A_ w); |
1892 | ev_stat_stat (EV_A_ w); |
1893 | |
1893 | |
1894 | if (memcmp (&w->prev, &w->attr, sizeof (ev_statdata))) |
1894 | /* memcmp doesn't work on netbsd, they.... do stuff to their struct stat */ |
|
|
1895 | if ( |
|
|
1896 | w->prev.st_dev != w->attr.st_dev |
|
|
1897 | || w->prev.st_ino != w->attr.st_ino |
|
|
1898 | || w->prev.st_mode != w->attr.st_mode |
|
|
1899 | || w->prev.st_nlink != w->attr.st_nlink |
|
|
1900 | || w->prev.st_uid != w->attr.st_uid |
|
|
1901 | || w->prev.st_gid != w->attr.st_gid |
|
|
1902 | || w->prev.st_rdev != w->attr.st_rdev |
|
|
1903 | || w->prev.st_size != w->attr.st_size |
|
|
1904 | || w->prev.st_atime != w->attr.st_atime |
|
|
1905 | || w->prev.st_mtime != w->attr.st_mtime |
|
|
1906 | || w->prev.st_ctime != w->attr.st_ctime |
1895 | { |
1907 | ) { |
1896 | #if EV_USE_INOTIFY |
1908 | #if EV_USE_INOTIFY |
1897 | infy_del (EV_A_ w); |
1909 | infy_del (EV_A_ w); |
1898 | infy_add (EV_A_ w); |
1910 | infy_add (EV_A_ w); |
1899 | ev_stat_stat (EV_A_ w); /* avoid race... */ |
1911 | ev_stat_stat (EV_A_ w); /* avoid race... */ |
1900 | #endif |
1912 | #endif |