Re: Working of KAUTH_FILEOP_CLOSE_MODIFIED flag in KAUTH_FILEOP_CLOSE
Re: Working of KAUTH_FILEOP_CLOSE_MODIFIED flag in KAUTH_FILEOP_CLOSE
- Subject: Re: Working of KAUTH_FILEOP_CLOSE_MODIFIED flag in KAUTH_FILEOP_CLOSE
- From: Alexander Dimitrov <email@hidden>
- Date: Fri, 06 May 2011 00:01:26 +0300
Hi,
I just wanted to note that using TextEdit to test your case is probably the problem here. I don't currently have access to my Mac but as far as I remember TextEdit on Snow Leopard (assuming this is your version of Mac OS X) wasn't modifying the opened file but creating a new temporary file with the new content and then it renames the temporary file to the opened file. So this should explain why you are not notified for a modification.
Also note that some programs use exchangedata(2) instead of rename when saving a file.
It is probably better to write a simple C program for the test.
On 5 May 2011 17:21, "Ken Hornstein" <email@hidden> wrote:
>
> >waiting for ur reply.....
>
> Dude, I hate to be the one who has to explain this to you ... but
> sending these messages repeatedly is simply NOT HELPING.
>
> This is an unofficial mailing list; people can either choose or not
> choose to reply to your questions. I replied to your earlier message
> because I was curious and I had a few free minutes to trawl through the
> MacOS X source code to look up the answers. But in regards to your
> later questions ... well, I don't have the time to look it up. It's
> nothing personal, and it's not like you're the only one in this boat -
> I had a question on here a few weeks ago that no one replied to. But
> I didn't repost it; I just grumbled to myself for a few minutes and
> then moved on.
>
> In your case the answers should be available in the MacOS X source code,
> which you can freely download from Apple (that's all I used to answer
> your questions last time). Combine that with some system call tracing
> and you should be able to figure this out. So, in short: suck it up
> and do it yourself.
>
> --Ken
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden