]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/telldir.h.patch
Libc-763.12.tar.gz
[apple/libc.git] / gen / FreeBSD / telldir.h.patch
index f01a6d51a522b20be990229d4c64aa1342c0c922..ca6455492532e1e7e919b78437ccdbd18c495ebf 100644 (file)
@@ -1,11 +1,34 @@
---- telldir.h.orig     2003-05-20 15:21:03.000000000 -0700
-+++ telldir.h  2004-11-19 17:43:13.000000000 -0800
-@@ -61,6 +61,7 @@
+--- telldir.h.orig     2009-11-08 13:57:20.000000000 -0800
++++ telldir.h  2009-11-08 13:57:11.000000000 -0800
+@@ -46,7 +46,11 @@
+ struct ddloc {
+       LIST_ENTRY(ddloc) loc_lqe; /* entry in list */
+       long    loc_index;      /* key associated with structure */
++#if __DARWIN_64_BIT_INO_T
++      __darwin_off_t  loc_seek;       /* returned by lseek */
++#else /* !__DARWIN_64_BIT_INO_T */
+       long    loc_seek;       /* magic cookie returned by getdirentries */
++#endif /* __DARWIN_64_BIT_INO_T */
+       long    loc_loc;        /* offset of entry in buffer */
+ };
  
- struct dirent *_readdir_unlocked(DIR *);
+@@ -57,10 +61,17 @@ struct ddloc {
+ struct _telldir {
+       LIST_HEAD(, ddloc) td_locq; /* list of locations */
+       long    td_loccnt;      /* index of entry for sequential readdir's */
++#if __DARWIN_64_BIT_INO_T
++      __darwin_off_t seekoff; /* 64-bit seek offset */
++#endif /* __DARWIN_64_BIT_INO_T */
+ };
+-struct dirent *_readdir_unlocked(DIR *, int);
++#if __DARWIN_64_BIT_INO_T
++size_t                __getdirentries64(int fd, void *buf, size_t bufsize, __darwin_off_t *basep);
++#endif /* __DARWIN_64_BIT_INO_T */
++struct dirent *_readdir_unlocked(DIR *, int) __DARWIN_INODE64(_readdir_unlocked);
  void          _reclaim_telldir(DIR *);
 -void          _seekdir(DIR *, long);
-+void          _seekdir(DIR *, long) __DARWIN_ALIAS(_seekdir);
-+long          telldir(DIR *) __DARWIN_ALIAS(telldir);
++void          _seekdir(DIR *, long) __DARWIN_ALIAS_I(_seekdir);
++long          telldir(DIR *) __DARWIN_ALIAS_I(telldir);
  
  #endif