1 --- telldir.h.orig 2009-11-08 13:57:20.000000000 -0800
2 +++ telldir.h 2009-11-08 13:57:11.000000000 -0800
5 LIST_ENTRY(ddloc) loc_lqe; /* entry in list */
6 long loc_index; /* key associated with structure */
7 +#if __DARWIN_64_BIT_INO_T
8 + __darwin_off_t loc_seek; /* returned by lseek */
9 +#else /* !__DARWIN_64_BIT_INO_T */
10 long loc_seek; /* magic cookie returned by getdirentries */
11 +#endif /* __DARWIN_64_BIT_INO_T */
12 long loc_loc; /* offset of entry in buffer */
15 @@ -57,10 +61,17 @@ struct ddloc {
17 LIST_HEAD(, ddloc) td_locq; /* list of locations */
18 long td_loccnt; /* index of entry for sequential readdir's */
19 +#if __DARWIN_64_BIT_INO_T
20 + __darwin_off_t seekoff; /* 64-bit seek offset */
21 +#endif /* __DARWIN_64_BIT_INO_T */
24 -struct dirent *_readdir_unlocked(DIR *, int);
25 +#if __DARWIN_64_BIT_INO_T
26 +size_t __getdirentries64(int fd, void *buf, size_t bufsize, __darwin_off_t *basep);
27 +#endif /* __DARWIN_64_BIT_INO_T */
28 +struct dirent *_readdir_unlocked(DIR *, int) __DARWIN_INODE64(_readdir_unlocked);
29 void _reclaim_telldir(DIR *);
30 -void _seekdir(DIR *, long);
31 +void _seekdir(DIR *, long) __DARWIN_ALIAS_I(_seekdir);
32 +long telldir(DIR *) __DARWIN_ALIAS_I(telldir);