alphasort64.c 392 B

1234567891011121314151617
  1. #include <features.h>
  2. #ifdef __UCLIBC_HAVE_LFS__
  3. #define _FILE_OFFSET_BITS 64
  4. #define __USE_LARGEFILE64
  5. #define __USE_FILE_OFFSET64
  6. #include <dirent.h>
  7. #include <string.h>
  8. #include "dirstream.h"
  9. int alphasort64(const void * a, const void * b)
  10. {
  11. return strcmp ((*(const struct dirent64 **) a)->d_name,
  12. (*(const struct dirent64 **) b)->d_name);
  13. }
  14. #endif /* __UCLIBC_HAVE_LFS__ */