1 |
2016-06-16 17:43 GMT+08:00 Luca Barbato <lu_zero@g.o>: |
2 |
> On 16/06/16 05:36, Lei Zhang wrote: |
3 |
>> Attached is what I've got so far. |
4 |
>> |
5 |
>> Some of them are not documented in man pages, so I checked their |
6 |
>> declarations in musl's headers. Functions strtold_l, strtoll_l and |
7 |
>> strtoull_l are not available in musl, but libc++ is smart enough to |
8 |
>> not use them when linked against musl. |
9 |
|
10 |
I made a mistake. Actually strtold_l *is* available in musl, but |
11 |
hidden by _GNU_SOURCE. |
12 |
|
13 |
> beside vasprintf, the rest is covered by _XOPEN_SOURCE 700 |
14 |
> |
15 |
> Might be worth trying to do -U_GNU_SOURCES -D_XOPEN_SOURCE=700 and see |
16 |
> how it goes. |
17 |
|
18 |
So far vasprintf and strtold_l are not covered. vasprintf can be |
19 |
covered with -D_BSD_SOURCE. But _BSD_SOURCE is deprecated since glibc |
20 |
2.20; I don't know if this has any impact on musl. |
21 |
|
22 |
> How vasprintf is used? |
23 |
|
24 |
It's used by <locale>. The code is kinda hard to read; I can't tell |
25 |
exactly what it's doing... |
26 |
|
27 |
|
28 |
Lei |