add (currently stubbed due to stubbed strverscmp) versionsort function
authorRich Felker <dalias@aerifal.cx>
Wed, 13 Jun 2012 15:14:38 +0000 (11:14 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 13 Jun 2012 15:14:38 +0000 (11:14 -0400)
commitfbffcee63dde1cba27021177d2ed9ba4f3792a57
treed5c6c7e8b410cfd7fc85e6a08e0843511e6150e9
parente361019c24b4dc930aa9431b895b478e1eee04e0
add (currently stubbed due to stubbed strverscmp) versionsort function

based on patch by Emil Renner Berthing, with minor changes to dirent.h
for LFS64 and organization of declarations

this code should work unmodified once a real strverscmp is added, but
I've been hesitant to add it because the GNU strverscmp behavior is
harmful in a lot of cases (for instance if you have numeric filenames
in hex). at some point I plan on trying to design a variant of the
algorithm that behaves better on a mix of filename styles.
include/dirent.h
src/dirent/versionsort.c [new file with mode: 0644]