History log of /freebsd/lib/libc/string/strverscmp.3 (Results 1 – 2 of 2)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/14.0.0
# 09ec5e67 31-Aug-2023 Mina Galić <freebsd@igalic.co>

libc: fix history for strverscmp(3) and versionsort(3)

strverscmp(3) and versionsort(3) where first released in 13.2

PR: 273401
Reviewed by: kib
MFC after: 3 days
Differential Revision: https://re

libc: fix history for strverscmp(3) and versionsort(3)

strverscmp(3) and versionsort(3) where first released in 13.2

PR: 273401
Reviewed by: kib
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D41617

show more ...


Revision tags: release/13.2.0, release/12.4.0
# 05c9a015 25-Aug-2022 Aymeric Wibo <obiwac@gmail.com>

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 order

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

show more ...