diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 19:59:03 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 19:59:03 +0000 |
commit | 70635d255ff0073ec9698f7aea7f067d2aa262e5 (patch) | |
tree | 9251981e5785c400093d4f1e6b2a56734283252c /base | |
parent | 7b6fe474c5db2e54dec8928fec6896355d318086 (diff) | |
download | chromium_src-70635d255ff0073ec9698f7aea7f067d2aa262e5.zip chromium_src-70635d255ff0073ec9698f7aea7f067d2aa262e5.tar.gz chromium_src-70635d255ff0073ec9698f7aea7f067d2aa262e5.tar.bz2 |
Add a comment about why we don't implement dir_reader_posix.h on OS X.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/dir_reader_posix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/dir_reader_posix.h b/base/dir_reader_posix.h index e9ad11e..7f069b63 100644 --- a/base/dir_reader_posix.h +++ b/base/dir_reader_posix.h @@ -11,6 +11,12 @@ // read from directories without allocating memory. For the interface, see // the generic fallback in dir_reader_fallback.h. +// Mac note: OS X has getdirentries, but it only works if we restrict Chrome to +// 32-bit inodes. There is a getdirentries64 syscall in 10.6, but it's not +// wrapped and the direct syscall interface is unstable. Using an unstable API +// seems worse than falling back to enumerating all file descriptors so we will +// probably never implement this on the Mac. + #if defined(OS_LINUX) #include "base/dir_reader_linux.h" #else |