]>
Commit | Line | Data |
---|---|---|
224c7076 A |
1 | --- telldir.h.orig 2007-01-24 14:10:41.000000000 -0800 |
2 | +++ telldir.h 2007-01-25 01:18:29.000000000 -0800 | |
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 | |
224c7076 A |
15 | @@ -57,10 +61,17 @@ |
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 | ||
24 | -struct dirent *_readdir_unlocked(DIR *); | |
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 *) __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 |