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

gdb shared library debugging support

provide the minimal level of dynamic linker-to-debugger glue needed to
let gdb find loaded libra...

3ec8d29c754542c3f4b3d6c07ab6db17213aff17 authored almost 13 years ago
first attempt at enabling stack protector support

the code is written to pre-init the thread pointer in static linked
programs that pull in __stac...

60872cf9c93687e771c1b8bc41bb006bdcdc2e45 authored almost 13 years ago
use signed char rather than plain char for int8_t

otherwise this BADLY breaks if -funsigned-char is passed to gcc

848d30a1e5f75988be4b291a431713e78ae09f79 authored almost 13 years ago
add another example option to dist/config.mak

e4d35ea9cfb612bcfbaf141559d62e1dca9f13c4 authored almost 13 years ago
ditch the priority inheritance locks; use malloc's version of lock

i did some testing trying to switch malloc to use the new internal
lock with priority inheritanc...

4750cf4202c29a895639b89099a7bdbe9ae422b6 authored almost 13 years ago
internal locks: new owner of contended lock must set waiters flag

this bug probably would have gone unnoticed since it's only used in
the fallback code for system...

e7655ed37bc9c2d79d921af4f287ee5cf2788661 authored almost 13 years ago
new internal locking primitive; drop spinlocks

we use priority inheritance futexes if possible so that the library
cannot hit internal priority...

f34d0ea511e552851c8c6148fb113816f41e6759 authored almost 13 years ago
new wcwidth implementation (fast table-based)

i tried to go with improving the old binary-search-based algorithm,
but between growth in the nu...

1b0ce9af6d2aa7b92edaf3e9c631cb635bae22bd authored almost 13 years ago
sync case mappings with unicode 6.1

also special-case ß (U+00DF) as lowercase even though it does not have
a mapping to uppercase. u...

1a63a9fc30e7a1f1239e3cedcb5041e5ec1c5351 authored almost 13 years ago
optimize iswprint

38b5d7d0526be24fba0f0789407727e4e7950e63 authored almost 13 years ago
fix spurious punct class for some surrogate codepoints (invalid)

this happened due to their entries in UnicodeData.txt

640fe75ce8e0ca3a1af98197a93e9aa4884f79bf authored almost 13 years ago
destubify iswalpha and update iswpunct to unicode 6.1

alpha is defined as unicode property "Alphabetic" plus category Nd
minus ASCII digits minus 2 sp...

7e38b1ea2bf1a0817942275cea89c959bf446d87 authored almost 13 years ago
make dlerror produce informative results

note that dlerror is specified to be non-thread-safe, so no locking is
performed on the error fl...

a5d10eb1f587a13a513504ffb5d8e6a8738eee6f authored almost 13 years ago
implement getusershell, etc. legacy functions

I actually wrote these a month ago but forgot to integrate them. ugly,
probably-harmful-to-use f...

90da74ef51ddd51924042ee42b5e766908e9980c authored almost 13 years ago
getdtablesize is not standard; move it to its correct spot in unistd.h

431a4cd4df25dd9cc9fd699c59036f896aef1003 authored almost 13 years ago
new gcc wrapper, entirely specfile based

the _concept_ of this wrapper has been tested extensively, but the
integration with the build/in...

58f430c1e0255c0b28aed1e9bf3d892c18c06631 authored almost 13 years ago
remove redundant (unmaintained) check in floatscan

also be extra careful to avoid wrapping the circular buffer early

02eb568dedadb3d66c2751aba6bea559370ff32c authored almost 13 years ago
fix breakage in endian.h

3f4de355ba02b0659ae84b8861f7360658a04b01 authored almost 13 years ago
add some ugly byte swapping cruft in endian.h

8705a0f1afdf6e6eb5d2e325dafb3be7e58f259c authored almost 13 years ago
add getresuid and getresgid syscall wrappers

b1b3d3525bbc50a6781f57bfe423c7e18d64f625 authored almost 13 years ago
fix major breakage in iconv, bogus rejecting of dest charsets

80d7859f32c11826c24490cac8a8be48f737cee0 authored almost 13 years ago
make floatscan correctly set errno for overflow/underflow

care is taken that the setting of errno correctly reflects underflow
condition. scanning exact d...

77731d0ec16027cb0e3a593d5dd9bb906932303e authored almost 13 years ago
skip leading zeros even after decimal point in floatscan

in principle this should just be an optimization, but it happens to
also fix a nasty bug where v...

2df2a97a20df22f598810b88409eb6107d23e7e1 authored almost 13 years ago
fix overread (consuming an extra byte) scanning NAN

bug detected by glib test suite

33e7781b5b71eac594b6fa539f6d75939e9b676d authored almost 13 years ago
fix broken sysconf when correct value is -1

this caused glib to try to allocate >2gb for getpwnam_r, and probably
numerous other problems.

c61312596608bf819b693c04a395f1b4e3e0acf0 authored almost 13 years ago
release notes for 0.8.9 (bugfix release)

c5d1adc56c22ead8caa9effcee0518a7a8ff3c06 authored almost 13 years ago
further fixes to leading space issue (forgot the wide versions)

1bf725eda7a06713825b0609c9b39c55cf5ab76a authored almost 13 years ago
fix really bad breakage in strtol, etc.: failure to accept leading spaces

cb81b6947c0277a6a27ddc699d716e9cf2b524aa authored almost 13 years ago
fix header typo

769d3d349824fb45218972a1cf0e912cfee62d51 authored almost 13 years ago
legacy junk compatibility grab-bag

- add the rest of the junk traditionally in sys/param.h
- add prototypes for some nonstandard fu...

ba6a9e7734aaff8f4e7d49b888f9dd1954bc92b1 authored almost 13 years ago
fix incorrect macro name for MATH_ERREXCEPT in math.h

ed0e3a357e5a5aef394b0b94d13c3a5c078f67f2 authored almost 13 years ago
release notes for 0.8.8

ef2c4fd91ffb0b333f7258e3d62266414d00702e authored almost 13 years ago
fix typo in exponent reading code or floats

this was basically harmless, but could have resulted in misreading
inputs with more than a few g...

1ff3e6fa2573ece62c53d7e22563a94f8398d0e1 authored almost 13 years ago
fix wide scanf's handling of input failure on %c, and simplify %[

bdeb184c3d08ea5017e1570e0f0431e9d7fd02fd authored almost 13 years ago
fix failure to distinguish input/match failure in wide %[ scanf

this also includes a related fix for vswscanf's read function, which
was returning a spurious (u...

a12aa2918535fd370419bd24b50a33974091c5a7 authored almost 13 years ago
fix over-read in %ls with non-wide scanf

2dd5dc78d4502381e2933137ed525acf339cb383 authored almost 13 years ago
fix broken %s and %[ with no width specifier in wide scanf

9ab180fa57f3a01b2004c3d19ad8dc3732f6069d authored almost 13 years ago
fix failure to read infinity in scanf

this code worked in strtod, but not in scanf. more evidence that i
should design a better interf...

dad40407705801c8bb597d5bc9a4eda562cae890 authored almost 13 years ago
fix failure of int parser to unget an initial mismatching character

bb477f9fd4a69bac77c70d2099272ee1ac17e62c authored almost 13 years ago
make wide scanf %[ respect width

99fbf4cfdbb3b67f30d595a7f1c535ca17c2f969 authored almost 13 years ago
fix wide scanf to respect field width for strings

00722515729bb6943dc84a8c4aa9ccd715e48e74 authored almost 13 years ago
fix some bugs in scanf %[ handling detected while writing the wide version

e0d9f780d171326a12bf9daf2af1e2f0c51c89f6 authored almost 13 years ago
introduce new wide scanf code and remove the last remnants of old scanf

at this point, strto* and all scanf family functions are using the new
unified integer and float...

73ec1d0495bb676012fd69491900ca8beb989ef7 authored almost 13 years ago
avoid depending on POSIX symbol in code used from plain C functions

8b57a81577980e4b440addaa8f2bbed454be2a59 authored almost 13 years ago
avoid null pointer dereference on %*p fields in scanf

03de77f5210addfd2ca2b35137152edfe2ab70be authored almost 13 years ago
also ensure that write buffer is bounded when __stdio_write returns

assuming other code is correct, this should be a no-op, but better to
be safe...

b7a2761780c28cd0167ce4e51623e42298096708 authored almost 13 years ago
fix buffer overflow in vfprintf on long writes to unbuffered files

vfprintf temporarily swaps in a local buffer (for the duration of the
operation) when the target...

b5a8b28915aad17b6f49ccacd6d3fef3890844d1 authored almost 13 years ago
fix %lf, etc. with printf

the l prefix is redundant/no-op with printf, since default promotions
always promote floats to d...

cc3a4466605fe8dfc31f3b75779110ac93055bc1 authored almost 13 years ago
better description for errno==0

9d2a15a64e03b2e369161add728de3139dae5a7f authored almost 13 years ago
implement wcstod and family

not heavily tested but these functions appear to work correctly

f94cbdeb4181e604e193646af16a2e5daa3dd718 authored almost 13 years ago
avoid hitting eof in wcstol

shunget cannot unget eof status, causing wcstol to leave endptr
pointing to the wrong place when...

a4310aa2f592779118912fe5e7f6df4fd6b6d64a authored almost 13 years ago
use the new integer parser (FILE/shgetc based) for strtol, wcstol, etc.

96e9773eb764afa649b099a6e283dba4c69389a9 authored almost 13 years ago
new scanf implementation and corresponding integer parser/converter

advantages over the old code:
- correct results for floating point (old code was bogus)
- wide/r...

18efeb320b763e541a7dbf61a7da1cbe13ab2be9 authored almost 13 years ago
fix buggy limiter handling in shgetc

this is needed for upcoming new scanf

cc762434d91a2f441a1d2f44962ab1d4854b607b authored almost 13 years ago
wordexp must set the we_offs entries of we_wordv to null pointers

0d5df2df4f57cf28adf91110f70cdee0bc830151 authored almost 13 years ago
fix crash in wordfree if we_offs is not initialized by the caller

I'm not sure if it's legal for wordexp to modify this field, but this
is the only easy/straightf...

bef7a85e45ccc4b40958ca6d94894ca0d27e8291 authored almost 13 years ago
fix broken shgetc limiter logic (wasn't working)

f007bb854b0b2d2d12cd45a8feb674fa9abe70b2 authored almost 13 years ago
floatscan: fix incorrect count of leading nonzero digits

this off-by-one error was causing values with just one digit past the
decimal point to be treate...

2ac580fdfe1daf9924f221dc98878ae480306bfa authored almost 13 years ago
move F_DUPFD_CLOEXEC out of bits

fcntl values 1024 and up are universal, arch-independent. later I'll
add some of the other linux...

67b25fe0a8947de93e3eddd36dae24a9fec12ade authored almost 13 years ago
add F_SETSIG and F_GETSIG (linux specific) to fcntl.h

F_* is in the reserved namespace so no feature test is needed

a68af229266d1a937a98fc7474ebe09b7c3c72b3 authored almost 13 years ago
fix signedness error handling invalid multibyte sequences in regexec

the "< 0" test was always false due to use of an unsigned type. this
resulted in infinite loops ...

b9dd43db04ca312c3c1cc6ddc77e8f5bf559e72d authored almost 13 years ago
rename __sa_restorer to sa_restorer in struct sigaction

this is legal since sa_* is in the reserved namespace for signal.h,
per posix. note that the sa_...

0115a6ed964f4afe87847a252363801e96194f0b authored almost 13 years ago
remove invalid code from TRE

TRE wants to treat + and ? after a +, ?, or * as special; ? means
ungreedy and + is reserved for...

386b34a07bc65b6b0627d04105f60fb5fa79df33 authored almost 13 years ago
fix broken regerror (typo) and missing message

b6dbdc69b6d969b416428e0eb467eefbe5a7837f authored almost 13 years ago
use fast version of the int reading code for the high-order digits too

this increases code size slightly, but it's considerably faster,
especially for power-of-2 bases.

11f3e33f9bbb31330b1dc4a51c07f8c58aef2fdd authored almost 13 years ago
use macros instead of inline functions in shgetc.h

at -Os optimization level, gcc refuses to inline these functions even
though the inlined code wo...

26832d045f46e68b79277916edbad7512d253704 authored almost 13 years ago
fix spurious overflows in strtoull with small bases

whenever the base was small enough that more than one digit could
still fit after UINTMAX_MAX/36...

54222d1efc5239d3fc8c528672bd52bfd8dad813 authored almost 13 years ago
remove magic numbers from floatscan

3ddeedd8f75be8a3dc2a167746f36f871d7e595a authored almost 13 years ago
optimize more integer cases in floatscan; comment the whole procedure

fe514951af4e67f05d17d796251af9a8229761eb authored almost 13 years ago
revert invalid optimization in floatscan

470fecdd3aa90a1787a4f678a8cb76d3641fa9a9 authored almost 13 years ago
fix stupid typo in floatscan that caused excess rounding of some values

96acdae944f44a4a757cd98de297490fea2dddb5 authored almost 13 years ago
add some more useful suggested options to config.mak template

5595de69608cbb250a8019d1ec5db22bcd32795b authored almost 13 years ago
Merge remote branch 'nsz/master'

cc00f05632e5d7cbfb8ce49f4b0dfd59c3cf611d authored almost 13 years ago
optimize floatscan downscaler to skip results that won't be needed

when upscaling, even the very last digit is needed in cases where the
input is exact; no digits ...

4054da9ba062c694dc4fde5c577fcb6da7743bc9 authored almost 13 years ago
simplify/debloat radix point alignment code in floatscan

now that this is the first operation, it can rely on the circular
buffer contents not being wrap...

5837a0bb6b5cf516f79527e837368af0b494d51a authored almost 13 years ago
optimize floatscan: avoid excessive upscaling

upscaling by even one step too much creates 3-29 extra iterations for
the next loop. this is sti...

1bdd5c8b9868ebc092074e078604acb80546e43f authored almost 13 years ago
fix incorrect initial count in shgetc when data is already buffered

7ef1a9bba56aa756d8166c4c93cf4a178d6c0c0c authored almost 13 years ago
fix bug parsing lone zero followed by junk, and hex float over-reading

48bb81adf80a439133c376d50ea814687fb5169f authored almost 13 years ago
fix float scanning of certain values ending in zeros

for example, "1000000000" was being read as "1" due to this loop
exiting early. it's necessary t...

38b3f1fea8fe4f2c590c1a9438d219291a7bfcd2 authored almost 13 years ago
fix potential overflow in exponent reading

note that there's no need for a precise cutoff, because exponents this
large will always result ...

633a26c1e69b6a977d16086834f2b937e0378002 authored almost 13 years ago
set errno properly when parsing floating point

c5ff29699cb3cccf8dcd8e44ddf4dcb7599e585c authored almost 13 years ago
add "scan helper getc" and rework strtod, etc. to use it

the immediate benefit is a significant debloating of the float parsing
code by moving the respon...

2162541f38d3f642f5a643010548d62220d55a4d authored almost 13 years ago
unify strtof/strtod/strtold wrappers and fix initial whitespace issue

4fb6aa02c88a6b8b718c0ae982d072aa6ab8559f authored almost 13 years ago
new floating point parser/converter

this version is intended to be fully conformant to the ISO C, POSIX,
and IEEE standards for conv...

415c4cd7fdb3e8b7476fbb2be2390f4592cf5165 authored almost 13 years ago
fix alloca issue in stdlib.h too

I forgot _GNU_SOURCE also has it declared here...

3be616c1df7ee176b5e00b9f493136ca7385ec46 authored almost 13 years ago
alloca cannot be a function. #define it to the gcc builtin if possible

gcc makes this mapping by default anyway, but it will be disabled by
-fno-builtin (and presumabl...

d71d0805f9ad4010529bb94092a2e378b4edac9a authored almost 13 years ago
math: fix x86 asin accuracy

use (1-x)*(1+x) instead of (1-x*x) in asin.s
the later can be inaccurate with upward rounding whe...

37eaec3ad396ea4502f4aea2395b3b5f5f69a1c6 authored almost 13 years ago
work around nasty gcc bug in the i386 syscall asm

when the "r" (register) constraint is used to let gcc choose a
register, gcc will sometimes assi...

5bd0ab8af66829af74ed80cac767ce1c041fd767 authored almost 13 years ago
remove useless (at best, harmful) feature test checks in aio.h

450f2c4a8515f2c5c9f469082bf69fdef009d26a authored almost 13 years ago
improve name lookup performance in corner cases

the buffer in getaddrinfo really only matters when /etc/hosts is huge,
but in that case, the hug...

4f346b08b33c9265c36fe8a14f5f908b1a9f296a authored almost 13 years ago
optimize signbit macro

4dbd94112ff74064554054b5ff27a7af547e4899 authored almost 13 years ago
make math.h more c++-friendly

93a18a15e4428d4fe3f239081e0218ac0c69f458 authored almost 13 years ago
math: minor cleanups in ceil and floor

7eabe8e69044e3683376165934a17210b6b148b9 authored almost 13 years ago
math: remove x86 modf asm

the int part was wrong when -1 < x <= -0 (+0.0 instead of -0.0)
and the size and performace gain ...

d79ac8c38f3992b4547d155f5c8e612f51d9b32e authored almost 13 years ago
math: rewrite modf.c and clean up modff.c

cleaner implementation with unions and unsigned arithmetic

f6ceccd92247575e4a35bc94f581a570b8052d43 authored almost 13 years ago
math: fix modfl.c bug

modfl(+-inf) was wrong on ld80 because the explicit msb
was not taken into account during inf vs ...

9f58d06007818c43b9504e959ef81ab5f113b374 authored almost 13 years ago
math: fix a regression in powl and do some cleanups

previously a division was accidentally turned into integer div
(w = -i/NXT;) instead of long doub...

cf682072ce16080ebe199e5055f686d81c8416ce authored almost 13 years ago
math: add dummy tgamma and tgammaf implementations

bbfbc7edaf992abe1d3d09868be07c4c1cc44db7 authored almost 13 years ago
math: remove comment about aliasing lgamma as gamma

It is probably not worth supporting gamma.
(it was already deprecated in 4.3BSD)

1b229a2098a35795aa20bd09b8c81c5143e64277 authored almost 13 years ago
math: fix typo in i386 remquof and remquol asm

(fldl instruction was used instead of flds and fldt)

ad23771c32e5a125eae711ab644cf672e4896c76 authored almost 13 years ago