Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/AssemblyScript/musl
Mirror of git://git.musl-libc.org/musl
https://github.com/AssemblyScript/musl
provide the minimal level of dynamic linker-to-debugger glue needed to
let gdb find loaded libra...
the code is written to pre-init the thread pointer in static linked
programs that pull in __stac...
otherwise this BADLY breaks if -funsigned-char is passed to gcc
848d30a1e5f75988be4b291a431713e78ae09f79 authored almost 13 years agoe4d35ea9cfb612bcfbaf141559d62e1dca9f13c4 authored almost 13 years ago
i did some testing trying to switch malloc to use the new internal
lock with priority inheritanc...
this bug probably would have gone unnoticed since it's only used in
the fallback code for system...
we use priority inheritance futexes if possible so that the library
cannot hit internal priority...
i tried to go with improving the old binary-search-based algorithm,
but between growth in the nu...
also special-case ß (U+00DF) as lowercase even though it does not have
a mapping to uppercase. u...
38b5d7d0526be24fba0f0789407727e4e7950e63 authored almost 13 years ago
this happened due to their entries in UnicodeData.txt
640fe75ce8e0ca3a1af98197a93e9aa4884f79bf authored almost 13 years ago
alpha is defined as unicode property "Alphabetic" plus category Nd
minus ASCII digits minus 2 sp...
note that dlerror is specified to be non-thread-safe, so no locking is
performed on the error fl...
I actually wrote these a month ago but forgot to integrate them. ugly,
probably-harmful-to-use f...
431a4cd4df25dd9cc9fd699c59036f896aef1003 authored almost 13 years ago
the _concept_ of this wrapper has been tested extensively, but the
integration with the build/in...
also be extra careful to avoid wrapping the circular buffer early
02eb568dedadb3d66c2751aba6bea559370ff32c authored almost 13 years ago3f4de355ba02b0659ae84b8861f7360658a04b01 authored almost 13 years ago
8705a0f1afdf6e6eb5d2e325dafb3be7e58f259c authored almost 13 years ago
b1b3d3525bbc50a6781f57bfe423c7e18d64f625 authored almost 13 years ago
80d7859f32c11826c24490cac8a8be48f737cee0 authored almost 13 years ago
care is taken that the setting of errno correctly reflects underflow
condition. scanning exact d...
in principle this should just be an optimization, but it happens to
also fix a nasty bug where v...
bug detected by glib test suite
33e7781b5b71eac594b6fa539f6d75939e9b676d authored almost 13 years ago
this caused glib to try to allocate >2gb for getpwnam_r, and probably
numerous other problems.
c5d1adc56c22ead8caa9effcee0518a7a8ff3c06 authored almost 13 years ago
1bf725eda7a06713825b0609c9b39c55cf5ab76a authored almost 13 years ago
cb81b6947c0277a6a27ddc699d716e9cf2b524aa authored almost 13 years ago
769d3d349824fb45218972a1cf0e912cfee62d51 authored almost 13 years ago
- add the rest of the junk traditionally in sys/param.h
- add prototypes for some nonstandard fu...
ed0e3a357e5a5aef394b0b94d13c3a5c078f67f2 authored almost 13 years ago
ef2c4fd91ffb0b333f7258e3d62266414d00702e authored almost 13 years ago
this was basically harmless, but could have resulted in misreading
inputs with more than a few g...
bdeb184c3d08ea5017e1570e0f0431e9d7fd02fd authored almost 13 years ago
this also includes a related fix for vswscanf's read function, which
was returning a spurious (u...
2dd5dc78d4502381e2933137ed525acf339cb383 authored almost 13 years ago
9ab180fa57f3a01b2004c3d19ad8dc3732f6069d authored almost 13 years ago
this code worked in strtod, but not in scanf. more evidence that i
should design a better interf...
bb477f9fd4a69bac77c70d2099272ee1ac17e62c authored almost 13 years ago
99fbf4cfdbb3b67f30d595a7f1c535ca17c2f969 authored almost 13 years ago
00722515729bb6943dc84a8c4aa9ccd715e48e74 authored almost 13 years ago
e0d9f780d171326a12bf9daf2af1e2f0c51c89f6 authored almost 13 years ago
at this point, strto* and all scanf family functions are using the new
unified integer and float...
8b57a81577980e4b440addaa8f2bbed454be2a59 authored almost 13 years ago
03de77f5210addfd2ca2b35137152edfe2ab70be authored almost 13 years ago
assuming other code is correct, this should be a no-op, but better to
be safe...
vfprintf temporarily swaps in a local buffer (for the duration of the
operation) when the target...
the l prefix is redundant/no-op with printf, since default promotions
always promote floats to d...
9d2a15a64e03b2e369161add728de3139dae5a7f authored almost 13 years ago
not heavily tested but these functions appear to work correctly
f94cbdeb4181e604e193646af16a2e5daa3dd718 authored almost 13 years ago
shunget cannot unget eof status, causing wcstol to leave endptr
pointing to the wrong place when...
96e9773eb764afa649b099a6e283dba4c69389a9 authored almost 13 years ago
advantages over the old code:
- correct results for floating point (old code was bogus)
- wide/r...
this is needed for upcoming new scanf
cc762434d91a2f441a1d2f44962ab1d4854b607b authored almost 13 years ago0d5df2df4f57cf28adf91110f70cdee0bc830151 authored almost 13 years ago
I'm not sure if it's legal for wordexp to modify this field, but this
is the only easy/straightf...
f007bb854b0b2d2d12cd45a8feb674fa9abe70b2 authored almost 13 years ago
this off-by-one error was causing values with just one digit past the
decimal point to be treate...
fcntl values 1024 and up are universal, arch-independent. later I'll
add some of the other linux...
F_* is in the reserved namespace so no feature test is needed
a68af229266d1a937a98fc7474ebe09b7c3c72b3 authored almost 13 years ago
the "< 0" test was always false due to use of an unsigned type. this
resulted in infinite loops ...
this is legal since sa_* is in the reserved namespace for signal.h,
per posix. note that the sa_...
TRE wants to treat + and ? after a +, ?, or * as special; ? means
ungreedy and + is reserved for...
b6dbdc69b6d969b416428e0eb467eefbe5a7837f authored almost 13 years ago
this increases code size slightly, but it's considerably faster,
especially for power-of-2 bases.
at -Os optimization level, gcc refuses to inline these functions even
though the inlined code wo...
whenever the base was small enough that more than one digit could
still fit after UINTMAX_MAX/36...
3ddeedd8f75be8a3dc2a167746f36f871d7e595a authored almost 13 years ago
fe514951af4e67f05d17d796251af9a8229761eb authored almost 13 years ago
470fecdd3aa90a1787a4f678a8cb76d3641fa9a9 authored almost 13 years ago
96acdae944f44a4a757cd98de297490fea2dddb5 authored almost 13 years ago
5595de69608cbb250a8019d1ec5db22bcd32795b authored almost 13 years ago
cc00f05632e5d7cbfb8ce49f4b0dfd59c3cf611d authored almost 13 years ago
when upscaling, even the very last digit is needed in cases where the
input is exact; no digits ...
now that this is the first operation, it can rely on the circular
buffer contents not being wrap...
upscaling by even one step too much creates 3-29 extra iterations for
the next loop. this is sti...
7ef1a9bba56aa756d8166c4c93cf4a178d6c0c0c authored almost 13 years ago
48bb81adf80a439133c376d50ea814687fb5169f authored almost 13 years ago
for example, "1000000000" was being read as "1" due to this loop
exiting early. it's necessary t...
note that there's no need for a precise cutoff, because exponents this
large will always result ...
c5ff29699cb3cccf8dcd8e44ddf4dcb7599e585c authored almost 13 years ago
the immediate benefit is a significant debloating of the float parsing
code by moving the respon...
4fb6aa02c88a6b8b718c0ae982d072aa6ab8559f authored almost 13 years ago
this version is intended to be fully conformant to the ISO C, POSIX,
and IEEE standards for conv...
I forgot _GNU_SOURCE also has it declared here...
3be616c1df7ee176b5e00b9f493136ca7385ec46 authored almost 13 years ago
gcc makes this mapping by default anyway, but it will be disabled by
-fno-builtin (and presumabl...
use (1-x)*(1+x) instead of (1-x*x) in asin.s
the later can be inaccurate with upward rounding whe...
when the "r" (register) constraint is used to let gcc choose a
register, gcc will sometimes assi...
450f2c4a8515f2c5c9f469082bf69fdef009d26a authored almost 13 years ago
the buffer in getaddrinfo really only matters when /etc/hosts is huge,
but in that case, the hug...
4dbd94112ff74064554054b5ff27a7af547e4899 authored almost 13 years ago
93a18a15e4428d4fe3f239081e0218ac0c69f458 authored almost 13 years ago
7eabe8e69044e3683376165934a17210b6b148b9 authored almost 13 years ago
the int part was wrong when -1 < x <= -0 (+0.0 instead of -0.0)
and the size and performace gain ...
cleaner implementation with unions and unsigned arithmetic
f6ceccd92247575e4a35bc94f581a570b8052d43 authored almost 13 years agomodfl(+-inf) was wrong on ld80 because the explicit msb
was not taken into account during inf vs ...
previously a division was accidentally turned into integer div
(w = -i/NXT;) instead of long doub...
bbfbc7edaf992abe1d3d09868be07c4c1cc44db7 authored almost 13 years ago
It is probably not worth supporting gamma.
(it was already deprecated in 4.3BSD)
(fldl instruction was used instead of flds and fldt)
ad23771c32e5a125eae711ab644cf672e4896c76 authored almost 13 years ago