• 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: Difference between com.apple.FinderInfo (getxattr()) and ATTR_CMN_FNDRINFO (getattrlist())
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Difference between com.apple.FinderInfo (getxattr()) and ATTR_CMN_FNDRINFO (getattrlist())


  • Subject: Re: Difference between com.apple.FinderInfo (getxattr()) and ATTR_CMN_FNDRINFO (getattrlist())
  • From: Chris Suter <email@hidden>
  • Date: Mon, 9 Nov 2009 00:11:13 +1100

Hi Rohan,

On Sun, Nov 8, 2009 at 11:30 PM, rohan a <email@hidden> wrote:

> The getattrlist() API returns Finder Flags through ATTR_CMN_FNDRINFO
> while the getxattr() returns them through the Extended attribute
> com.apple.FinderInfo.
> Any flags set using /Developer/Tools/GetFileInfo except for L (Locked)
> flag shows up in com.apple.FinderInfo. The L flag shows up as uchg in
> chflags
>
> Though the two look identical are there any differences? Are there any
> flags returned by only one of the 2 API's. Is anyone a subset of the
> other ? While doing a backup of files, is it ok to use either of them
> ( ATTR_CMN_FNDRINFO or com.apple.FinderInfo ) or should I use both of
> them ?

They're almost certainly identical. To be sure, you can check the sources:

	<http://opensource.apple.com/>

Regards,

Chris
 _______________________________________________
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

References: 
 >Difference between com.apple.FinderInfo (getxattr()) and ATTR_CMN_FNDRINFO (getattrlist()) (From: rohan a <email@hidden>)

  • Prev by Date: Difference between com.apple.FinderInfo (getxattr()) and ATTR_CMN_FNDRINFO (getattrlist())
  • Next by Date: vfs, ubc and pre-fetching on snow leopard
  • Previous by thread: Difference between com.apple.FinderInfo (getxattr()) and ATTR_CMN_FNDRINFO (getattrlist())
  • Next by thread: vfs, ubc and pre-fetching on snow leopard
  • Index(es):
    • Date
    • Thread