freebsd-dev/include
Aymeric Wibo 05c9a0158f libc: Add strverscmp(3) and versionsort(3)
Add a strverscmp(3) function to libc, a GNU extension I implemented by
reading its glibc manual page. It orders strings following a much more
natural ordering (e.g. "ent1 < ent2 < ent10" as opposed to
"ent1 < ent10 < ent2" with strcmp(3)'s lexicographic ordering).

Also add versionsort(3) for use as scandir(3)'s compar argument.

Update manual page for scandir(3) and add one for strverscmp(3).

Reviewed by:	pstef, gbe, kib
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D35807
2022-08-25 03:29:03 +03:00
..
arpa
gssapi
i386 include/i386: fix release builds 2022-06-13 21:37:34 +01:00
protocols
rpc rpcbind: get contact addr from xprt members 2022-06-13 08:54:08 -05:00
rpcsvc
xlocale
_ctype.h
a.out.h
ar.h
assert.h
bitstring.h
complex.h
cpio.h
ctype.h
db.h
dirent.h libc: Add strverscmp(3) and versionsort(3) 2022-08-25 03:29:03 +03:00
dlfcn.h
elf-hints.h
elf.h
err.h
fmtmsg.h
fnmatch.h
fstab.h
fts.h
ftw.h
getopt.h
glob.h
grp.h
gssapi.h
hesiod.h
iconv.h
ieeefp.h
ifaddrs.h
inttypes.h
iso646.h
kenv.h
langinfo.h
libgen.h
limits.h
link.h
locale.h
Makefile amd64: add an i386 include directory 2022-06-13 18:35:38 +01:00
Makefile.depend
malloc_np.h
malloc.h
memory.h
mk-osreldate.sh
monetary.h
mpool.h
mqueue.h
ndbm.h
netconfig.h
netdb.h
nl_types.h
nlist.h
nss.h
nsswitch.h
paths.h
printf.h
proc_service.h
pthread_np.h
pthread.h
pwd.h
ranlib.h
readpassphrase.h
regex.h
res_update.h
resolv.h
runetype.h
sched.h
search.h
semaphore.h
setjmp.h
signal.h
spawn.h
stab.h
stdalign.h
stdbool.h
stddef.h
stdio.h
stdlib.h
stdnoreturn.h
string.h libc: Add strverscmp(3) and versionsort(3) 2022-08-25 03:29:03 +03:00
stringlist.h
strings.h
sysexits.h
tar.h
termios.h
tgmath.h
time.h
timeconv.h
timers.h
ttyent.h
uchar.h
ulimit.h
unistd.h
utime.h
utmpx.h
uuid.h
varargs.h
wchar.h
wctype.h
wordexp.h
xlocale.h