aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAymeric Wibo <obiwac@gmail.com>2022-08-24 23:20:13 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2022-08-31 01:20:28 +0000
commit27e60668bf29dc4da3409168967974e7ee3ffddc (patch)
tree06a8315906db650ca15b74ee39c7210806efe1b2 /include
parenta7593bf87d54bb7d6c7224264bf507b1b41efcc7 (diff)
downloadsrc-27e60668bf29dc4da3409168967974e7ee3ffddc.tar.gz
src-27e60668bf29dc4da3409168967974e7ee3ffddc.zip
libc: Add strverscmp(3) and versionsort(3)
(cherry picked from commit 05c9a0158f6837bb3a3781e4ed75f66115f6415a)
Diffstat (limited to 'include')
-rw-r--r--include/dirent.h1
-rw-r--r--include/string.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 047206258471..751a016838c0 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -108,6 +108,7 @@ int alphasort(const struct dirent **, const struct dirent **);
int dirfd(DIR *);
#endif
#if __BSD_VISIBLE
+int versionsort(const struct dirent **, const struct dirent **);
DIR *__opendir2(const char *, int);
int fdclosedir(DIR *);
ssize_t getdents(int, char *, size_t);
diff --git a/include/string.h b/include/string.h
index afa90c3f2536..29683eefa15b 100644
--- a/include/string.h
+++ b/include/string.h
@@ -81,6 +81,7 @@ char *strcat(char * __restrict, const char * __restrict);
char *strchr(const char *, int) __pure;
#if __BSD_VISIBLE
char *strchrnul(const char*, int) __pure;
+int strverscmp(const char *, const char *) __pure;
#endif
int strcmp(const char *, const char *) __pure;
int strcoll(const char *, const char *);