testing exchangedata
testing exchangedata
- Subject: testing exchangedata
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 4 Oct 2005 12:02:46 +0200
Is there a way to test the validity of the arguments of exchangedata()
without actually calling it?
The equivalent of:
touch dummypath;
int a = exchangedata( path1, dummypath, 0);
exchangedata( dummypath, path1, 0);
What I really want to find out is, whether path1 is a hard link (in
which case exchangedata sets errno to EINVAL).
Please note that the link count does not help in this case, as HFS(+)
can have hard links with a link count of 1.
The reason I want to know about hard links is that NSDocument will not
do a "save" in this case (as it uses exchangedata internally in
writeWithBackupToFile:ofType:saveOperation: or in its Tiger
equivalent).
Kind regards,
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden