Re: [gamin] inotify compatability patch



On Wed, Mar 16, 2005 at 04:28:47PM -0500, John McCutchan wrote:
> Hey,
> 
> Inotify has changed (for the final time - no, really) it's user space
> interface. Robert Love sent patches out this afternoon, and here is an
> update for gamin.
> 
> In short, inotify now expects a fd instead of a path. 
> 
> old way,
> wd = ioctl(devfd, "/foo/bar", INOTIFY_WATCH, mask);
> 
> new way,
> fd = open("/foo/bar", O_RDONLY);
> if (fd < 0)
> 	return
> wd = ioctl(devfd, fd, INOTIFY_WATCH, mask);
> close(fd); // <---- Close the fd immediately after requesting the watch.

  Oops that's a big change, ABI wise

> This interface has made the kernel guys happy, so this should be the
> last interface change.

  Well that sounds like good news !
Patch applied, it's in CVS, thanks !

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]