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 CMPLX macros in implementation-internal libm.h

this avoids assuming the presence of C11 macro definitions in the
public complex.h, which need c...

a414e8374dfe32f5efd35a49592698f89878de1f authored about 10 years ago
implement FNM_CASEFOLD extension to fnmatch function

efa9d396f9d3af6c6f85ec86302b48206c574a38 authored about 10 years ago
add basic dns record parsing functions

based on patch by Timo Teräs, with some corrections to bounds checking
code and other minor chan...

aac59c116456f8ce617d5b218e7ee4f044f56e6c authored about 10 years ago
correctly handle write errors encountered by printf-family functions

previously, write errors neither stopped further output attempts nor
caused the function to retu...

d42269d7c85308abdbf8cee38b1a1097249eb38b authored about 10 years ago
simplify getopt_long argv permutation loop logic

da16224fc5fea45b307d9f0565c2adc92f9e1da0 authored about 10 years ago
fix handling of "--" with getopt_long argv permutation

if argv permutation is used, the option terminator "--" should be
moved before any skipped non-o...

567cc81c7e3f38c3ca9b223f5d771205711b1f5c authored about 10 years ago
accept null longopts pointer in getopt_long

this is an undocumented feature of GNU getopt_long that the BSD
version also mimics, and is repo...

b4ef1830b7863bfba1da4bdad56a20ef398672a8 authored about 10 years ago
fix getopt handling of initial '+' in optstring

in the case where an initial '+' was passed in optstring (a
getopt_long feature to suppress argv...

d4f7d9c46f0e8f19d70871efb66b0f482935642d authored about 10 years ago
support abbreviated options in getopt_long

cfd7b4acd55420deedd41e0614c9b614c73c743e authored about 10 years ago
support options after non-option arguments in getopt_long (argv permutation)

59f6232f85240f448da0d1fc77b3e09fe36eeed9 authored about 10 years ago
don't shadow functions with macros in C++

C++ programmers typically expect something like "::function(x,y)" to work
and may be surprised t...

f164875a84c35d0e0d132f99330d3fcda76ee7aa authored about 10 years ago
use direct syscall rather than write function in posix_spawn child

the write function is a cancellation point and accesses thread-local
state belonging to the call...

8f7bc690f07e90177b176b6e19736ad7c1d49840 authored about 10 years ago
don't fail posix_spawn on failed close

the resolution of austin group issue #370 removes the requirement that
posix_spawn fail when the...

1c12c24364d1058ffdbb28fca72a51de85082778 authored about 10 years ago
fix getopt handling of ':' modifier for multibyte option characters

the previous hard-coded offsets of +1 and +2 contained a hidden
assumption that the option chara...

014275b547e3059db5c45986408757c250e8198d authored about 10 years ago
add arm private syscall numbers

it is part of kernel uapi, and some programs (e.g. nodejs) do use them

be1f67ab6fde1989af7b2e2946804e9009931a8a authored about 10 years ago
fix return value of pthread_getaffinity_np and pthread_setaffinity_np

these functions are expected to return an error code rather than
setting errno and returning -1.

66140b0c926ed097f2cb7474863523e4af351f5b authored about 10 years ago
fix uninitialized output from sched_getaffinity

the sched_getaffinity syscall only fills a cpu set up to the set size
used/supported by the kern...

a56e339419c1a90f8a85f86621f3c73945e07b23 authored about 10 years ago
add support for non-option arguments extension to getopt

this is a GNU extension, activated by including '-' as the first
character of the options string...

b72cd07f176b876aa51864d93aa8101477b1d732 authored about 10 years ago
adapt dynamic linker for new binutils versions that omit DT_RPATH

the new DT_RUNPATH semantics for search order are always used, and
since binutils had always set...

d8dc2b7c0289b12eeef4feff65e3c918111b0f55 authored about 10 years ago
fix tabs/spaces in memcpy.s

this file had been a mess that went unnoticed ever since it was
imported. some lines used spaces...

9911754b198aaf1e2b0e98951766a9d83c277c67 authored about 10 years ago
fix build regression in arm asm for setjmp/longjmp with old assemblers

921c26e0e7058502e317fe0c93f6d59f982a21f1 authored about 10 years ago
fix build regression in arm asm for memcpy

commit 27828f7e9adb6b4f93ca56f6f98ef4c44bb5ed4e fixed compatibility
with clang's internal assemb...

9367fe926196f407705bb07cd29c6e40eb1774dd authored about 10 years ago
arm assembly changes for clang compatibility

27828f7e9adb6b4f93ca56f6f98ef4c44bb5ed4e authored about 10 years ago
unify non-inline version of syscall code across archs

except powerpc, which still lacks inline syscalls simply because
nobody has written the code, th...

4134c68dd4dc23ed358c8301da56225d21d655d9 authored about 10 years ago
inline 5- and 6-argument syscalls on arm

0e971b0e3f4b9c99a7ce67b10d851fc885c188d5 authored about 10 years ago
remove old clang workarounds from arm syscall implementation

the register constraints in the non-clang case were tested to work on
clang back to 3.2, and ear...

7d310ed1d086d9874b7ca40933ff870a8adc75d9 authored about 10 years ago
fix __aeabi_read_tp oversight in arm atomics/tls overhaul

calls to __aeabi_read_tp may be generated by the compiler to access
TLS on pre-v6 targets. previ...

8cd0b11eafeaaec3df5113cb39094e5456ca6b22 authored about 10 years ago
overhaul ARM atomics/tls for performance and compatibility

previously, builds for pre-armv6 targets hard-coded use of the "kuser
helper" system for atomics...

4a241f14a6bea81b9b50edda09f8184e35a75860 authored about 10 years ago
save auxv pointer into libc struct early in dynamic linker startup

this allows most code to assume it has already been saved, and is a
prerequisite for upcoming ch...

d8bdc97d148088bdaa672f56d4b8e0a15b03e70e authored about 10 years ago
getopt: fix optional argument processing

Processing an option character with optional argument fails if the
option is last on the command...

acccc93e084641861ca553317edb7da7791833b5 authored about 10 years ago
implement a private state for the uchar.h functions

The C standard is imperative on that:

7.28.1 ... If ps is a null pointer, each function uses ...

941644e98c3d05761b4639a8ae5afacd8586d1b9 authored about 10 years ago
fix behavior of printf with alt-form octal, zero precision, zero value

in this case there are two conflicting rules in play: that an explicit
precision of zero with th...

b91cdbe2bc8b626aa04dc6e3e84345accf34e4b1 authored about 10 years ago
math: use fnstsw consistently instead of fstsw in x87 asm

fnstsw does not wait for pending unmasked x87 floating-point exceptions
and it is the same as fs...

ec4318943a26d4bd4050481d11709853184f2794 authored over 10 years ago
math: fix x86_64 and x32 asm not to use sahf instruction

Some early x86_64 cpus (released before 2006) did not support sahf/lahf
instructions so they sho...

a732e80d33b4fd6f510f7cec4f5573ef5d89bc4e authored over 10 years ago
fix 64-bit syscall argument passing on or1k

the kernel syscall interface for or1k does not expect 64-bit arguments
to be aligned to "even" r...

de2b9c21d94e0b76b629fec0060d043f535eef01 authored over 10 years ago
fix uninitialized mode variable in openat function

this was introduced in commit 2da3ab1382ca8e39eb1e4428103764a81fba73d3
as an oversight while mak...

e146e6035fecea080fb17450db3c8bb44d36e07d authored over 10 years ago
fix rint.c and rintf.c when FLT_EVAL_METHOD!=0

The old code used the rounding idiom incorrectly:

y = (double)(x + 0x1p52) - 0x1p52;

the cas...

79ca86094d70f43252b683c3a3ccb572d462cf28 authored over 10 years ago
math: use the rounding idiom consistently

the idiomatic rounding of x is

n = x + toint - toint;

where toint is either 1/EPSILON (x is ...

0ce946cf808274c2d6e5419b139e130c8ad4bd30 authored over 10 years ago
fix invalid access by openat to possibly-missing variadic mode argument

the mode argument is only required to be present when the O_CREAT or
O_TMPFILE flag is used.

2da3ab1382ca8e39eb1e4428103764a81fba73d3 authored over 10 years ago
fix failure of open to read variadic mode argument for O_TMPFILE

9d836ea7a69a6441fcdca815328d274e4ed6b707 authored over 10 years ago
manually "shrink wrap" fast path in pthread_once

this change is a workaround for the inability of current compilers to
perform "shrink wrapping" ...

dc95322e18615392eea69de355edd735a15a8f36 authored over 10 years ago
release 1.1.5

60a4783ed4bd0496f7eb31f9b7eb2ad10df46677 authored over 10 years ago
suppress macro definitions of ctype functions under C++

based on patch by Sergey Dmitrouk.

a60457c84a4b59ab564d7f4abb660a70283ba98d authored over 10 years ago
implement uchar.h (C11 UTF-16/32 conversion) interfaces

ab9672ae73248f51e30f4553c4b8878525e46383 authored over 10 years ago
eliminate global waiters count in pthread_once

00548408398ced546c540dab773ea66cea4fe1c2 authored over 10 years ago
fix missing barrier in pthread_once/call_once shortcut path

these functions need to be fast when the init routine has already run,
since they may be called ...

df37d3960abec482e17fad2274a99b790f6cc08b authored over 10 years ago
add explicit barrier operation to internal atomic.h API

867b1822f30a76cb9c8342da29eb28ed75908fa9 authored over 10 years ago
fix handling of negative offsets in timezone spec strings

previously, the hours were considered as a signed quantity while
minutes and seconds were always...

08b996d180323775d5457944eefbb8a51ea72539 authored over 10 years ago
add new linux file sealing api to fcntl.h

new in linux v3.17 commit 40e041a2c858b3caefc757e26cb85bfceae5062b
sealing allows some operation...

a3763d64e0d65ed1902b36c521c57cd252b9c3be authored over 10 years ago
add new IPV6_AUTOFLOWLABEL socket option in netinet/in.h

added in linux v3.17 commit 753a2ad54ef45e3417a9d49537c2b42b04a2e1be
enables automatic flow labe...

a0c90b9773bd9b5b6faa7a657e22794c1e643989 authored over 10 years ago
add new syscall numbers for seccomp, getrandom, memfd_create

these syscalls are new in linux v3.17 and present on all supported
archs except sh.

seccomp was...

4ffc39c65448b04685946dffa68745cf0f6bf9f7 authored over 10 years ago
always provide __fpclassifyl and __signbitl definitions

previously the external definitions of these functions were omitted on
archs where long double i...

0539e6dad39c1b3b204a14c403da68b587b1b3da authored over 10 years ago
ignore access mode bits of flags in mkostemps and functions that use it

per the text accepted for inclusion in POSIX, behavior is unspecified
when any of the access mod...

6f1c1fe90c5b23ddf1ee8cce0ee7d77d392301a7 authored over 10 years ago
fix handling of odd lengths in swab function

this function is specified to leave the last byte with "unspecified
disposition" when the length...

dccbf4c809efc311aa37da71de70d04dfd8b0db3 authored over 10 years ago
fix incorrect sequence generation in *rand48 prng functions

patch by Jens Gustedt. this fixes a bug reported by Nadav Har'El. the
underlying issue was that ...

05cef96d9e63a00b319f88343cf9869c8e612843 authored over 10 years ago
fix linked list corruption in flockfile lists

commit 5345c9b884e7c4e73eb2c8bb83b8d0df20f95afb added a linked list to
track the FILE streams cu...

3e936ce81bbbcc968f576aedbd5203621839f152 authored over 10 years ago
math: fix exp10 not to raise invalid exception on NaN

This was not caught earlier because gcc incorrectly generates quiet
relational operators that ne...

18daae313531ed597d0f6227d15af00b04b104c8 authored over 10 years ago
fix overflow corner case in strtoul-family functions

incorrect behavior occurred only in cases where the input overflows
unsigned long long, not just...

e2e1bb81485a37321d928a8d8b63f40b9d8fa228 authored over 10 years ago
rewrite the regex pattern parser in regcomp

The new code is a bit simpler and the generated code is about 1KB
smaller (on i386). The basic d...

ec1aed0a144b3e00e16eeb142c9d13362d6048e7 authored over 10 years ago
fix C++ incompatibility in i386 definition of max_align_t

the C11 _Alignas keyword is not present in C++, and despite it being
in the reserved namespace a...

bd082916b110c0c49e71bc83ff68dfd88bb8313a authored over 10 years ago
add _DEFAULT_SOURCE feature profile as an alias for _BSD_SOURCE

as a result of commit ab8f6a6e42ff893041f7545a23e6d6a0edde07fb, this
definition is now equivalen...

5edbc6fe13e1e0f27e3d3a20f2582da476f74c4b authored over 10 years ago
fix _ALL_SOURCE logic to avoid possible redefinition of _GNU_SOURCE

this could be an error if _GNU_SOURCE was already defined differently
by the application.

f929493c49bbb304832b27e1e2b919aa19ddf470 authored over 10 years ago
fix places where _BSD_SOURCE failed to yield a superset of _XOPEN_SOURCE

the vast majority of these failures seem to have been oversights at
the time _BSD_SOURCE was add...

ab8f6a6e42ff893041f7545a23e6d6a0edde07fb authored over 10 years ago
fix exp10l.c to include float.h

the previous commit was a no op in exp10l because LDBL_* macros
were implicitly 0 (the preproces...

e6403887ccf172974d2da5304c3e4043ebad41d2 authored over 10 years ago
prune math code on archs with binary64 long double

__polevll, __p1evll and exp10l were provided on archs when long double
is the same as double. Th...

0c32c2635eedfcd6af3606735ac38197f8705734 authored over 10 years ago
add new F_OFD_* macros to fcntl.h (open file description locks)

open file description locks are inherited across fork and only auto
dropped after the last fd of...

976bb28fa0f5b6d82055502c27444ac5c9bf34ed authored over 10 years ago
add C11 thread creation and related thread functions

based on patch by Jens Gustedt.

the main difficulty here is handling the difference between sta...

23614b0fcb4cd4d7b2e4148d3b1887b642169765 authored over 10 years ago
add C11 condition variable functions

Because of the clear separation for private pthread_cond_t these
interfaces are quite simple and...

14397cec2c8429b504b17aaf92509b48da3681b9 authored over 10 years ago
add C11 mutex functions

8b0472932c1cb8cb2cc46322b21c0c4e21848522 authored over 10 years ago
add C11 thread functions operating on tss_t and once_flag

These all have POSIX equivalents, but aside from tss_get, they all
have minor changes to the sig...

e16f70f45210294321a88f23c85ac45046577adc authored over 10 years ago
add threads.h and needed per-arch types for mtx_t and cnd_t

based on patch by Jens Gustedt.

mtx_t and cnd_t are defined in such a way that they are formall...

b7cf71a190813590860af25b32532b6c360ac502 authored over 10 years ago
use weak symbols for the POSIX functions that will be used by C threads

The intent of this is to avoid name space pollution of the C threads
implementation.

This has t...

df7d0dfb9c686df31149d09008ba92834bed9803 authored over 10 years ago
add C11 timespec_get function, with associated time.h changes for C11

based on patch by Jens Gustedt for inclusion with C11 threads
implementation, but committed sepa...

6eb19505bc10eb7964c4863e53ef1028944044f2 authored over 10 years ago
fix non-static dummy function that slipped in with locale implementation

86876dbec55d9416859bbbbc9850b1ec81b6dbea authored over 10 years ago
fix macros for LFS *64_t types in sys/stat.h, sys/types.h, glob.h

there is no blksize64_t (blksize_t is always long) but there are
fsblkcnt64_t and fsfilcnt64_t t...

7ff804269bb0594431308ad328239aeeb5ceb057 authored over 10 years ago
add missing legacy LFS *64 symbol aliases

versionsort64, aio*64 and lio*64 symbols were missing, they are
only needed for glibc ABI compat...

36c30c4ddd92ec3a058d54aac31a5734be6380f8 authored over 10 years ago
fix memory leak in regexec when input contains illegal sequence

546f6b322bcafa2452925c19f9607d9689c75f95 authored over 10 years ago
fix off-by-one in bounds check in fpathconf

this error resulted in an out-of-bounds read, as opposed to a reported
error, when calling the f...

3bed89aa7456d9fe30e550cb5e21f8911036695b authored over 10 years ago
fix potential read past end of buffer in getnameinfo service name lookup

if the loop stopped due to reaching the end of the string, the
subsequent increment could possib...

633183b5d1c298e4335da841926efe96252057b3 authored over 10 years ago
remove incorrect and useless check in network service name lookup code

the condition was probably intended to be !*p rather than !p, but
neither is needed here. the su...

4ec2d25a6aba30781640b84160002ed3e7fee051 authored over 10 years ago
fix case mapping for U+00DF (ß)

U+00DF ('ß') has had an uppercase form (U+1E9E) available since
Unicode 5.1, but Unicode lacks t...

4674809bdf7a46041ac0152eea0a6363ceeca548 authored over 10 years ago
make non-waiting paths of sem_[timed]wait and pthread_join cancelable

per POSIX these functions are both cancellation points, so they must
act on any cancellation req...

fff546930347d99729f1c0a9d911e7f24a094531 authored over 10 years ago
remove an extra layer of buffer copying in getnameinfo reverse dns

the outer getnameinfo function already has a properly-sized temporary
buffer for storing the rev...

80e6485455a9c75c029d0e976d2dd9c8e441dd72 authored over 10 years ago
fix multiple stdio functions' behavior on zero-length operations

previously, fgets, fputs, fread, and fwrite completely omitted locking
and access to the FILE ob...

6e2bb7acf42589fb7130b039d0623e2ca42503dd authored over 10 years ago
suppress null termination when fgets reads EOF with no data

the C standard requires that "the contents of the array remain
unchanged" in this case.

this pa...

402611c3ba3be5b3b0486835d98e22ac7ced2722 authored over 10 years ago
fix dn_expand empty name handling and offsets to 0

Empty name was rejected in dn_expand since commit
56b57f37a46dab432247bf29d96fcb11fbd02a6d
which...

49d2c8c6bcf8c926e52c7f510033b6adc31355f5 authored over 10 years ago
add static_assert and hide noreturn, alignas, alignof from C++

add static_assert and protect the other new C11 keyword macros
with #ifndef __cplusplus so they ...

70729de075bfe3138b05af91ecefcd5786bed5ac authored over 10 years ago
add C11 floating-point characteristic macros to float.h

C11 introduced *_DECIMAL_DIG and *_HAS_SUBNORM macros.

18dde0071334e2e7f71972b80df7779280c801cf authored over 10 years ago
add malloc_usable_size function and non-stub malloc.h

this function is needed for some important practical applications of
ABI compatibility, and may ...

8d998a7b3b741304df860b5dc843826257633237 authored over 10 years ago
refrain from spinning on locks when there is already a waiter

if there is already a waiter for a lock, spinning on the lock is
essentially an attempt to steal...

f5fb20b0e934770c37093105524ea644dcaba5e2 authored over 10 years ago
spin before waiting on futex in mutex and rwlock lock operations

97a7512b6819014d15c679c8998caa0006d13c29 authored over 10 years ago
spin in sem_[timed]wait before performing futex wait

empirically, this increases the maximum rate of wait/post operations
between two threads by 20-1...

2ff714c6138da8abb50fd532503fd8d68a18811a authored over 10 years ago
fix build error on arm due to new a_spin code

this was broken by commit ea818ea8340c13742a4f41e6077f732291aea4bc.

8b3d7d0d35f97051bc994800c928a7db53316dd2 authored over 10 years ago
sanitize number of spins in userspace before futex wait

the previous spin limit of 10000 was utterly unreasonable.
empirically, it could consume up to 2...

b8a9c90e4fe29821f2ef40796c07c48bd8fac8cc authored over 10 years ago
add working a_spin() atomic for non-x86 targets

conceptually, a_spin needs to be at least a compiler barrier, so the
compiler will not optimize ...

ea818ea8340c13742a4f41e6077f732291aea4bc authored over 10 years ago
fix false ownership of stdio FILEs due to tid reuse

this is analogous commit fffc5cda10e0c5c910b40f7be0d4fa4e15bb3f48
which fixed the corresponding ...

5345c9b884e7c4e73eb2c8bb83b8d0df20f95afb authored over 10 years ago
fix fallback checks for kernels without private futex support

for unknown syscall commands, the kernel produces ENOSYS, not EINVAL.

b8ca9eb5301580dcf101753451eee196edceefbd authored over 10 years ago
fix use of uninitialized memory with application-provided thread stacks

the subsequent code in pthread_create and the code which copies TLS
initialization images to the...

a6293285e930dbdb0eff47e29b513ca22537b1a2 authored over 10 years ago
add max_align_t definition for C11 and C++11

unfortunately this needs to be able to vary by arch, because of a huge
mess GCC made: the GCC de...

321f4fa9067185aa6bb47403dfba46e8cfe917d3 authored over 10 years ago
further simplify and optimize new cond var

the main idea of the changes made is to have waiters wait directly on
the "barrier" lock that wa...

4992ace94232a116bdca25481ccc3d6841b83432 authored over 10 years ago