• 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: readdir vs. getdirentriesattr
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: readdir vs. getdirentriesattr


  • Subject: Re: readdir vs. getdirentriesattr
  • From: Wim Lewis <email@hidden>
  • Date: Mon, 22 Apr 2019 14:27:43 -0700

On Apr 22, 2019, at 9:59 AM, Thomas Tempelmann <email@hidden> wrote:
> Can you give some more information about the fts implementation? Is this
> user-library-level oder kernel code that's doing this? I had expected that
> this would only be a convenience userland function that uses readdir or
> similar BSD functions, but it appears to beat them all, suggesting this is
> optimized at a lower level.

That is surprising to me also. You can find the fts implementation here — at a
first glance, it seems to be using both getattrlistbulk() and fstatat(), but
nothing more exotic than that:

   https://opensource.apple.com/source/Libc/Libc-1272.200.26/gen/fts.c.auto.html


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: readdir vs. getdirentriesattr (From: Thomas Tempelmann <email@hidden>)
 >Re: readdir vs. getdirentriesattr (From: Jim Luther <email@hidden>)
 >Re: readdir vs. getdirentriesattr (From: Thomas Tempelmann <email@hidden>)

  • Prev by Date: Re: readdir vs. getdirentriesattr
  • Next by Date: Re: readdir vs. getdirentriesattr
  • Previous by thread: Re: readdir vs. getdirentriesattr
  • Next by thread: Re: readdir vs. getdirentriesattr
  • Index(es):
    • Date
    • Thread