mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 19:09:58 +08:00
80a21be075
* libc/include/sys/param.h (MAX, MIN): Added macros. * libc/sys/linux/Makefile.am: Add new files. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/sys/stat.h: Add *stat64 prototypes. * libc/sys/linux/inode.c (fchdir): Added syscall. * libc/sys/linux/ftw.c: New file. * libc/sys/linux/ftw64.c: Ditto. * libc/sys/linux/getwd.c: Ditto. * libc/sys/linux/scandir64.c: Ditto. * libc/sys/linux/strverscmp.c: Ditto. * libc/sys/linux/versionsort.c: Ditto. * libc/sys/linux/versionsort64.c: Ditto.
12 lines
258 B
C
12 lines
258 B
C
#include <dirent.h>
|
|
#include <string.h>
|
|
|
|
extern int __strverscmp (char *, char *);
|
|
|
|
int
|
|
versionsort (const void *a, const void *b)
|
|
{
|
|
return __strverscmp ((*(const struct dirent **)a)->d_name,
|
|
(*(const struct dirent **)b)->d_name);
|
|
}
|