]>
Commit | Line | Data |
---|---|---|
1f2f436a A |
1 | --- telldir.h.orig 2009-11-08 13:57:20.000000000 -0800 |
2 | +++ telldir.h 2009-11-08 13:57:11.000000000 -0800 | |
224c7076 A |
3 | @@ -46,7 +46,11 @@ |
4 | struct ddloc { | |
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 */ | |
13 | }; | |
3d9156a7 | 14 | |
1f2f436a | 15 | @@ -57,10 +61,17 @@ struct ddloc { |
224c7076 A |
16 | struct _telldir { |
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 */ | |
22 | }; | |
23 | ||
1f2f436a | 24 | -struct dirent *_readdir_unlocked(DIR *, int); |
224c7076 A |
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 */ | |
1f2f436a | 28 | +struct dirent *_readdir_unlocked(DIR *, int) __DARWIN_INODE64(_readdir_unlocked); |
3d9156a7 A |
29 | void _reclaim_telldir(DIR *); |
30 | -void _seekdir(DIR *, long); | |
224c7076 A |
31 | +void _seekdir(DIR *, long) __DARWIN_ALIAS_I(_seekdir); |
32 | +long telldir(DIR *) __DARWIN_ALIAS_I(telldir); | |
3d9156a7 A |
33 | |
34 | #endif |