alphasort64.c 372 B

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