]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libc/misc/dirent/versionsort64.c
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libc / misc / dirent / versionsort64.c
1 /*
2  * Copyright (C) 2008-2009 Hai Zaar, Codefidence Ltd <haizaar@codefidence.com>
3  *
4  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5  */
6
7 #include <_lfs_64.h>
8 #include <dirent.h>
9
10 #if __WORDSIZE != 64
11 # include <string.h>
12 # include "dirstream.h"
13
14 int versionsort64(const struct dirent64 **a, const struct dirent64 **b)
15 {
16         return strverscmp((*a)->d_name, (*b)->d_name);
17 }
18 #endif