• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
testing exchangedata
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Getting an NSLocalizedString for another localization
  • Next by Date: Re: Debugging Stdout
  • Previous by thread: RE: Getting an NSLocalizedString for another localization
  • Next by thread: Re: testing exchangedata
  • Index(es):
    • Date
    • Thread