mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
cygwin: export strverscmp, add versionsort
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
parent
59e09b6419
commit
f698efbce1
@ -1396,6 +1396,7 @@ strtoull NOSIGFE
|
|||||||
strtoull_l NOSIGFE
|
strtoull_l NOSIGFE
|
||||||
strtoumax = strtoull NOSIGFE
|
strtoumax = strtoull NOSIGFE
|
||||||
strupr NOSIGFE
|
strupr NOSIGFE
|
||||||
|
strverscmp NOSIGFE
|
||||||
strxfrm NOSIGFE
|
strxfrm NOSIGFE
|
||||||
strxfrm_l NOSIGFE
|
strxfrm_l NOSIGFE
|
||||||
swab NOSIGFE
|
swab NOSIGFE
|
||||||
@ -1492,6 +1493,7 @@ vasprintf SIGFE
|
|||||||
vdprintf SIGFE
|
vdprintf SIGFE
|
||||||
verr SIGFE
|
verr SIGFE
|
||||||
verrx SIGFE
|
verrx SIGFE
|
||||||
|
versionsort NOSIGFE
|
||||||
vfiprintf SIGFE
|
vfiprintf SIGFE
|
||||||
vfork SIGFE
|
vfork SIGFE
|
||||||
vfprintf SIGFE
|
vfprintf SIGFE
|
||||||
|
@ -476,12 +476,13 @@ details. */
|
|||||||
309: Export getloadavg.
|
309: Export getloadavg.
|
||||||
310: Export reallocarray.
|
310: Export reallocarray.
|
||||||
311: Export __xpg_sigpause.
|
311: Export __xpg_sigpause.
|
||||||
|
312: Export strverscmp, versionsort.
|
||||||
|
|
||||||
Note that we forgot to bump the api for ualarm, strtoll, strtoull,
|
Note that we forgot to bump the api for ualarm, strtoll, strtoull,
|
||||||
sigaltstack, sethostname. */
|
sigaltstack, sethostname. */
|
||||||
|
|
||||||
#define CYGWIN_VERSION_API_MAJOR 0
|
#define CYGWIN_VERSION_API_MAJOR 0
|
||||||
#define CYGWIN_VERSION_API_MINOR 311
|
#define CYGWIN_VERSION_API_MINOR 312
|
||||||
|
|
||||||
/* There is also a compatibity version number associated with the shared memory
|
/* There is also a compatibity version number associated with the shared memory
|
||||||
regions. It is incremented when incompatible changes are made to the shared
|
regions. It is incremented when incompatible changes are made to the shared
|
||||||
|
@ -89,6 +89,7 @@ int alphasort (const struct dirent **__a, const struct dirent **__b);
|
|||||||
int scandirat (int __dirfd, const char *__dir, struct dirent ***__namelist,
|
int scandirat (int __dirfd, const char *__dir, struct dirent ***__namelist,
|
||||||
int (*select) (const struct dirent *),
|
int (*select) (const struct dirent *),
|
||||||
int (*compar) (const struct dirent **, const struct dirent **));
|
int (*compar) (const struct dirent **, const struct dirent **));
|
||||||
|
int versionsort (const struct dirent **__a, const struct dirent **__b);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
@ -5,6 +5,8 @@ What's new:
|
|||||||
|
|
||||||
- New API: reallocarray
|
- New API: reallocarray
|
||||||
|
|
||||||
|
- New API: strverscmp, versionsort.
|
||||||
|
|
||||||
|
|
||||||
What changed:
|
What changed:
|
||||||
-------------
|
-------------
|
||||||
|
@ -19,6 +19,12 @@ alphasort (const struct dirent **a, const struct dirent **b)
|
|||||||
return strcoll ((*a)->d_name, (*b)->d_name);
|
return strcoll ((*a)->d_name, (*b)->d_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" int
|
||||||
|
versionsort (const struct dirent **a, const struct dirent **b)
|
||||||
|
{
|
||||||
|
return strverscmp ((*a)->d_name, (*b)->d_name);
|
||||||
|
}
|
||||||
|
|
||||||
extern "C" int
|
extern "C" int
|
||||||
scandir (const char *dir,
|
scandir (const char *dir,
|
||||||
struct dirent ***namelist,
|
struct dirent ***namelist,
|
||||||
|
@ -1367,6 +1367,7 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008).</para>
|
|||||||
strtoll_l
|
strtoll_l
|
||||||
strtoul_l
|
strtoul_l
|
||||||
strtoull_l
|
strtoull_l
|
||||||
|
strverscmp
|
||||||
sysinfo
|
sysinfo
|
||||||
tdestroy
|
tdestroy
|
||||||
timegm
|
timegm
|
||||||
@ -1377,6 +1378,7 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008).</para>
|
|||||||
vasnprintf
|
vasnprintf
|
||||||
vasprintf
|
vasprintf
|
||||||
vasprintf_r
|
vasprintf_r
|
||||||
|
versionsort
|
||||||
wcsftime_l
|
wcsftime_l
|
||||||
wcstod_l
|
wcstod_l
|
||||||
wcstof_l
|
wcstof_l
|
||||||
|
Loading…
x
Reference in New Issue
Block a user