Re: Identifying directory changes with kqueue/kevent
Re: Identifying directory changes with kqueue/kevent
- Subject: Re: Identifying directory changes with kqueue/kevent
- From: Fred Leboucher <email@hidden>
- Date: Wed, 19 Sep 2007 23:29:36 +0200
On Sep 19, 2007, at 10:32 PM, Shaun Wexler wrote:
On Sep 19, 2007, at 9:01 AM, Fred Leboucher wrote:
Except that my code has to be compatible with 10.3.9 and higher :/
On Sep 19, 2007, at 5:56 PM, Dave Zarzycki wrote:
It sounds like you want the new FSEvents API in Leopard.
The new FSEvents API is a sustainable interface, forward-compatible
from Leopard onwards, however in this case the underlying kernel
mechanisms do exist as SPI in earlier OS versions. Simply create a
wrapper which calls the legacy SPI's conditionally via runtime
introspection.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
"Problems cannot be solved by the same level of thinking that
created them." - Albert Einstein
It exists in Tiger (xnu-792 / http://fxr.watson.org/fxr/source/bsd/
sys/fsevents.h?v=xnu-792), but it looks like it doesn't exist in
prior versions. If I'm not mistaken, 10.3.9 has a xnu-517, and
fsevents.h is not present in this version (http://fxr.watson.org/fxr/
source/bsd/sys/fsevents.h?v=xnu-517). Are you sure that it's not
Tiger-only ?
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden