freebsd-dev/lib/libc
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
..
aarch64 Remove "All rights reserved" where I can in libc 2022-08-05 15:11:39 +01:00
amd64 amd64: Stop using REP MOVSB for backward memmove()s. 2022-06-16 14:51:50 -04:00
arm libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
capability Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
compat-43 libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
db libc: Add HISTORY sections to the manual pages 2022-05-05 18:46:32 +02:00
gdtoa libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
gen libc: Add strverscmp(3) and versionsort(3) 2022-08-25 03:29:03 +03:00
gmon
i386 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
iconv libc: iconv: add mb_cur_min for encoder traits 2022-08-11 11:42:17 -05:00
include libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
inet
isc
locale libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
md
nameser
net sockatmark(3): Add references to 4.4BSD IPC tutorials 2022-07-03 15:56:42 +02:00
nls
posix1e acl_delete_entry(): remove write-only variable 2021-11-29 17:39:51 +02:00
powerpc libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
powerpc64 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
powerpcspe
quad
regex libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
resolv resolver(3): Fix a typo in a source code comment 2022-04-09 09:14:29 +02:00
riscv libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
rpc rpc(3): Fix two typos in source code comments 2022-04-02 09:33:24 +02:00
secure libc: ssp: sprinkle around some __dead2 2021-09-30 23:55:17 -05:00
softfloat
stdio libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
stdlib libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
stdtime libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
string libc: Add strverscmp(3) and versionsort(3) 2022-08-25 03:29:03 +03:00
sys libc: drop "All rights reserved" from Foundation copyrights 2022-08-04 16:57:50 -04:00
tests libc: Add strverscmp(3) and versionsort(3) 2022-08-25 03:29:03 +03:00
uuid uuid(3): Document return values 2021-11-19 03:58:34 -05:00
x86 Remove "All Rights Reserved" from FreeBSD Foundation libc copyrights 2022-07-21 09:53:31 -04:00
xdr
yp
libc_nossp.ldscript
libc.ldscript
Makefile powerpc: enable initial-exec TLS 2022-02-22 19:34:28 +01:00
Makefile.depend
Makefile.depend.options
Versions.def