-int $getdirentries(int, char *, int, long *) __asm("_getdirentries");
-
-struct $dirent {
- __uint32_t d_ino;
- __uint16_t d_reclen;
- __uint8_t d_type;
- __uint8_t d_namlen;
- char d_name[__DARWIN_MAXNAMLEN + 1];
-};
-
-#define getdirentries $getdirentries
-#define dirent $dirent
+extern "C" int __getdirentries64(int, char *, int, long *);