opnsense-src/lib/libc/string/Symbol.map
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

125 lines
1.1 KiB
Text

/*
* $FreeBSD$
*/
FBSD_1.0 {
bcmp;
bcopy;
memcpy;
memmove;
ffs;
ffsl;
fls;
flsl;
index;
strchr;
memccpy;
memchr;
memcmp;
memmem;
bzero;
memset;
strrchr;
rindex;
stpcpy;
strcasecmp;
strncasecmp;
strcasestr;
strcat;
strcmp;
strcoll;
strcpy;
strcspn;
strdup;
strerror_r;
strerror;
strlcat;
strlcpy;
strlen;
strmode;
strncat;
strncmp;
strncpy;
strnstr;
strpbrk;
strsep;
strsignal;
strspn;
strstr;
strtok_r;
strtok;
strxfrm;
swab;
wcscat;
wcschr;
wcscmp;
wcscoll;
wcscpy;
wcscspn;
wcsdup;
wcslcat;
wcslcpy;
wcslen;
wcsncat;
wcsncmp;
wcsncpy;
wcspbrk;
wcsrchr;
wcsspn;
wcsstr;
wcstok;
wcswidth;
wcsxfrm;
wmemchr;
wmemcmp;
wmemcpy;
wmemmove;
wmemset;
};
FBSD_1.1 {
ffsll;
flsll;
memrchr;
stpncpy;
strndup;
strnlen;
wcpcpy;
wcpncpy;
wcscasecmp;
wcsncasecmp;
wcsnlen;
};
FBSD_1.3 {
strcasecmp_l;
strcasestr_l;
strchrnul;
strncasecmp_l;
wcswidth_l;
wcwidth_l;
};
FBSD_1.4 {
explicit_bzero;
};
FBSD_1.5 {
memset_s;
timingsafe_bcmp;
timingsafe_memcmp;
};
FBSD_1.6 {
strerror_l;
};
FBSD_1.7 {
mempcpy;
strverscmp;
wmempcpy;
};
FBSDprivate_1.0 {
__strtok_r;
};