add ABI symbols for strtol family functions
these odd names are actually generated by mess in glibc's stdlib.h, so any glibc-linked program using strtol needs them to run against musl.
This commit is contained in:
parent
a97a050eca
commit
ce05325521
1 changed files with 8 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include "libc.h"
|
||||||
|
|
||||||
static unsigned long long strtox(const char *s, char **p, int base, unsigned long long lim)
|
static unsigned long long strtox(const char *s, char **p, int base, unsigned long long lim)
|
||||||
{
|
{
|
||||||
|
|
@ -54,3 +55,10 @@ uintmax_t strtoumax(const char *restrict s, char **restrict p, int base)
|
||||||
{
|
{
|
||||||
return strtoull(s, p, base);
|
return strtoull(s, p, base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
weak_alias(strtol, __strtol_internal);
|
||||||
|
weak_alias(strtoul, __strtoul_internal);
|
||||||
|
weak_alias(strtoll, __strtoll_internal);
|
||||||
|
weak_alias(strtoull, __strtoull_internal);
|
||||||
|
weak_alias(strtoimax, __strtoimax_internal);
|
||||||
|
weak_alias(strtoumax, __strtoumax_internal);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue