]>
Commit | Line | Data |
---|---|---|
224c7076 A |
1 | --- readdir.c.orig 2007-01-24 14:10:41.000000000 -0800 |
2 | +++ readdir.c 2007-01-27 02:51:25.000000000 -0800 | |
3 | @@ -43,8 +43,10 @@ | |
4 | #include <errno.h> | |
5 | #include <string.h> | |
6 | #include <pthread.h> | |
7 | +#include <unistd.h> | |
8 | #include "un-namespace.h" | |
9 | ||
10 | +#include "telldir.h" | |
11 | #include "libc_private.h" | |
12 | ||
13 | /* | |
14 | @@ -63,8 +65,13 @@ | |
15 | dirp->dd_loc = 0; | |
16 | } | |
17 | if (dirp->dd_loc == 0 && !(dirp->dd_flags & __DTF_READALL)) { | |
18 | +#if __DARWIN_64_BIT_INO_T | |
19 | + dirp->dd_size = __getdirentries64(dirp->dd_fd, | |
20 | + dirp->dd_buf, dirp->dd_len, &dirp->dd_td->seekoff); | |
21 | +#else /* !__DARWIN_64_BIT_INO_T */ | |
22 | dirp->dd_size = _getdirentries(dirp->dd_fd, | |
23 | dirp->dd_buf, dirp->dd_len, &dirp->dd_seek); | |
24 | +#endif /* __DARWIN_64_BIT_INO_T */ | |
25 | if (dirp->dd_size <= 0) | |
26 | return (NULL); | |
27 | } |