• 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
Re: ATTR_CMN_CHGTIME
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ATTR_CMN_CHGTIME


  • Subject: Re: ATTR_CMN_CHGTIME
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 22 Mar 2010 03:35:52 -0500

On Mar 21, 2010, at 6:01 PM, gMail.com wrote:

> Also, the man says that getattrlist and setattrlist don't work on all the
> volumes. So, how can I know whether I can call these APIs?

The man page for getattrlist says:

> The best way to test whether a volume supports this function is to simply call it and check the error result.  getattrlist() will return ENOTSUP if it is not supported on a particular volume.

The man page for setattrlist says:

> Not all volumes support setattrlist().  However, if a volume supports getattrlist(2), it must also support setattrlist().  See the documentation for getattrlist(2) for details on how to tell whether a volume supports it.

It also says:

> The functions are only supported by certain volume format implementations.  For maximum compatibility, client programs should use high-level APIs (such as the Carbon File Manager) to access file system attributes. These high-level APIs include logic to emulate file system attributes on volumes that don't support setattrlist() and fsetattrlist().

Cheers,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ATTR_CMN_CHGTIME
      • From: "gMail.com" <email@hidden>
References: 
 >ATTR_CMN_CHGTIME (From: "gMail.com" <email@hidden>)

  • Prev by Date: Re: ATTR_CMN_CHGTIME
  • Next by Date: Re: Merge changes between two Managed Object Contexts
  • Previous by thread: Re: ATTR_CMN_CHGTIME
  • Next by thread: Re: ATTR_CMN_CHGTIME
  • Index(es):
    • Date
    • Thread