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

mitigate performance regression in libc-internal locks on x86_64

commit 3c43c0761e1725fd5f89a9c028cbf43250abb913 fixed missing
synchronization in the atomic stor...

5a9c8c05a5a0cdced4122589184fd795b761bb4a authored over 9 years ago
match historical behavior for tm_gmtoff member of struct tm

tm_gmtoff is a nonstandard field, but on historical systems which have
this field, it stores the...

c13f2af1fe1856e36dd1b2773cac05d5d72641dc authored over 9 years ago
aarch64: fix 64-bit syscall argument passing

On 32bit systems long long arguments are passed in a special way
to some syscalls; this accident...

e5b086e1d5fe52bf1553357ee790de86eda27bf1 authored over 9 years ago
fix failure of tempnam to null-terminate result

tempnam uses an uninitialized buffer which is filled using memcpy and
__randname. It is therefor...

062bb737de06c3906b4b4a07c7fc0fb286287efe authored over 9 years ago
mitigate blow-up of heap size under malloc/free contention

during calls to free, any free chunks adjacent to the chunk being
freed are momentarily held in ...

c3761622e8168b0c6453637ac82e70b09af3e8e9 authored over 9 years ago
fix missing synchronization in atomic store on i386 and x86_64

despite being strongly ordered, the x86 memory model does not preclude
reordering of loads acros...

3c43c0761e1725fd5f89a9c028cbf43250abb913 authored over 9 years ago
fix undefined left-shift of negative values in utf-8 state table

fe7582f4f92152ab60e9523bf146fe28ceae51f6 authored over 9 years ago
fix atexit when it is called from an atexit handler

The old code accepted atexit handlers after exit, but did not run them
reliably. C11 seems to ex...

57243b30214656e7dd9fff509a1b6370b712f863 authored over 9 years ago
socket.h: cleanup/reorder mips and powerpc bits/socket.h

....to be somewhat consistent and easily comparable with asm/socket.h

Signed-off-by: Roman Yery...

3975577922aedab7d60788dd320a2c8e4e94bc6e authored over 9 years ago
socket.h: fix SO_* for mips

Signed-off-by: Roman Yeryomin <[email protected]>

29ec7677a73a5227badbb1064205be09e707e466 authored over 9 years ago
mips: fix mcontext_t register array field name

glibc and uclibc use gregs instead of regs

Signed-off-by: Felix Fietkau <[email protected]>

3fffa7a658aa925b8f95d36aef7531c1827dbf28 authored over 9 years ago
handle loss of syslog socket connection

when traditional syslogd implementations are restarted, the old server
socket ceases to exist an...

0f9c2666aca95eb98eb0ef4f4d8d1473c8ce3fa0 authored over 9 years ago
fix incorrect void return type for syncfs function

being nonstandard, the closest thing to a specification for this
function is its man page, which...

11894f6d3a80be950a490dc7dfab349f057a545f authored over 9 years ago
fix negated return value of ns_skiprr, breakage in related functions

due to a reversed pointer difference computation, ns_skiprr always
returned a negative value, wh...

e8cbe0bad4284906230a53af4c91ad2b9713d03b authored over 9 years ago
add musl-clang, a wrapper for system clang installs

musl-clang allows the user to compile musl-powered programs using their
already existent clang i...

fb58545f8d1c5fa32122244caeaf3625c12ddc01 authored over 9 years ago
build: fix musl-targeting toolchain test

the old test was broken in that it would never fail on a toolchains built
without dynamic linkin...

f8db6f74b2c74a50c4dec7e30be5215f0e2c37a6 authored over 9 years ago
build: overhaul wrapper script system for multiple wrapper support

this overhauls part of the build system in order to support multiple
toolchain wrapper scripts, ...

b3cd7d13fe630ba1847326242525298e361018c1 authored over 9 years ago
treat empty TZ environment variable as GMT rather than default

this improves compatibility with the behavior of other systems and
with some applications which ...

2a780aa3050b86d888489361f04220bfb58890a1 authored over 9 years ago
dynlink.c: pass gnu-hash table pointer to gnu_lookup

The callers need to check the value of the pointer anyway, so make
them pass the pointer to gnu_...

8f08a58c635bea5cdfae6bc0e323c80aa9ff82a7 authored over 9 years ago
dynlink.c: slim down gnu_lookup

Do not reference dso->syms and dso->strings until point of use.
Check 'h1 == (h2|1)', the simple...

5b4286e12cd6baac343b10a41dc17ac578832089 authored over 9 years ago
dynlink.c: use bloom filter in gnu hash lookup

Introduce gnu_lookup_filtered and use it to speed up symbol lookups in
find_sym (do_dlsym is lef...

84389c64562e2b2ba43225b5b7a9df7d974479b1 authored over 9 years ago
dynlink.c: use a faster expression in gnu_hash

With -Os, GCC uses a multiply rather than a shift and addition for 'h*33'.
Use a more efficient ...

66d45787c865a1807ae397a89a14699394ed4fa4 authored over 9 years ago
fix local-dynamic model TLS on mips and powerpc

the TLS ABI spec for mips, powerpc, and some other (presently
unsupported) RISC archs has the re...

6ba5517a460c6c438f64d69464fdfc3269a4c91a authored over 9 years ago
make dynamic linker work around MAP_FAILED mmap failure on nommu kernels

previously, loading of additional libraries beyond libc/ldso did not
work on nommu kernels, nor ...

ce337daa00e42d4f2d9a4d9ae0ed51b20249d924 authored over 9 years ago
reimplement strverscmp to fix corner cases

this interface is non-standardized and is a GNU invention, and as
such, our implementation shoul...

a59341420fdedb288d9ff80e73609ae44e9cf258 authored over 9 years ago
fix regression/typo that disabled __simple_malloc when calloc is used

commit ba819787ee93ceae94efd274f7849e317c1bff58 introduced this
regression. since the __malloc0 ...

153e952e1a688859d7095345b17e6c1df74a295c authored over 9 years ago
fix calloc when __simple_malloc implementation is used

previously, calloc's implementation encoded assumptions about the
implementation of malloc, acce...

ba819787ee93ceae94efd274f7849e317c1bff58 authored over 9 years ago
provide __stack_chk_fail_local in libc.a

this symbol is needed only on archs where the PLT call ABI is klunky,
and only for position-inde...

55d061f031085f24d138664c897791aebe9a2fab authored over 9 years ago
work around mips detached thread exit breakage due to kernel regression

linux kernel commit 46e12c07b3b9603c60fc1d421ff18618241cb081 caused
the mips syscall mechanism t...

ce3688eca920aa77549323f84e21f33522397115 authored over 9 years ago
ignore ENOSYS error from mprotect in pthread_create and dynamic linker

this error simply indicated a system without memory protection (NOMMU)
and should not cause fail...

75eceb3ae824d54e865686c0c538551aeebf3372 authored over 9 years ago
switch to using trap number 31 for syscalls on sh

nominally the low bits of the trap number on sh are the number of
syscall arguments, but they ha...

10d0268ccfab9152250eeeed3952ce3fed44131a authored over 9 years ago
switch sh port's __unmapself to generic version when running on sh2/nommu

due to the way the interrupt and syscall trap mechanism works,
userspace on sh2 must never set t...

3366a99b17847b58f2d8cc52cbb5d65deb824f8a authored over 9 years ago
add support for sh2 interrupt-masking-based atomics to sh port

the sh2 target is being considered an ISA subset of sh3/sh4, in the
sense that binaries built fo...

f9d84554bae0fa17c9a1d724549c4408022228a5 authored over 9 years ago
refactor stdio open file list handling, move it out of global libc struct

functions which open in-memory FILE stream variants all shared a tail
with __fdopen, adding the ...

1b0cdc8700d29ef018bf226d74b2b58b23bce91c authored over 9 years ago
byte-based C locale, phase 3: make MB_CUR_MAX variable to activate code

this patch activates the new byte-based C locale (high bytes treated
as abstract code unit "char...

f22a9edaf8a6f2ca1d314d18b3785558279a5c03 authored over 9 years ago
byte-based C locale, phase 2: stdio and iconv (multibyte callers)

this patch adjusts libc components which use the multibyte functions
internally, and which depen...

16f18d036d9a7bf590ee6eb86785c0a9658220b6 authored over 9 years ago
byte-based C locale, phase 1: multibyte character handling functions

this patch makes the functions which work directly on multibyte
characters treat the high bytes ...

1507ebf837334e9e07cfab1ca1c2e88449069a80 authored over 9 years ago
fix btowc corner case

btowc is required to interpret its argument by conversion to unsigned
char, unless the argument ...

38e2f727237230300fea6aff68802db04625fd23 authored over 9 years ago
arm: add vdso support

vdso will be available on arm in linux v4.2, the user-space code
for it is in kernel commit 8512...

ee59c296d56bf26f49f354d6eb32b4b6d4190188 authored over 9 years ago
refactor malloc's expand_heap to share with __simple_malloc

this extends the brk/stack collision protection added to full malloc
in commit 276904c2f6bde3a31...

e3bc22f1eff87b8f029a6ab31f1a269d69e4b053 authored over 9 years ago
remove cancellation points in stdio

commit 58165923890865a6ac042fafce13f440ee986fd9 added these optional
cancellation points on the ...

4ef9b828c1f39553a69e0635ac91f0fcadd6e8c6 authored over 9 years ago
fix idiom for setting stdio stream orientation to wide

the old idiom, f->mode |= f->mode+1, was adapted from the idiom for
setting byte orientation, f-...

536c6d5a4205e2a3f161f2983ce1e0ac3082187d authored over 9 years ago
add printing of null %s arguments as "(null)" in wide printf

this is undefined, but supported in our implementation of the normal
printf, so for consistency ...

f8f565df467c13248104223f99abf7f37cef7584 authored over 9 years ago
add %m support to wide printf

f9e25d813860d53cd1e9b6145cc63375d2fe2529 authored over 9 years ago
add sh asm for vfork

ec634aad91f57479ef17525e33ed446c780a61f4 authored over 9 years ago
implement arch-generic version of __unmapself

this can be used to put off writing an asm version of __unmapself for
new archs, or as a permane...

c30cbcb0a646b1f13a22c645616dce624465b883 authored over 9 years ago
in malloc, refuse to use brk if it grows into stack

the linux/nommu fdpic ELF loader sets up the brk range to overlap
entirely with the main thread'...

276904c2f6bde3a31a24ebfa201482601d18b4f9 authored over 9 years ago
fix spurious errors from pwd/grp functions when nscd backend is absent

for several pwd/grp functions, the only way the caller can distinguish
between a successful nega...

bd1eaceaa3975bd2a2a34e211cff896affaecadf authored over 9 years ago
fix regression in pre-v7 arm on kernels with kuser helper removed

the arm atomics/TLS runtime selection code is called from
__set_thread_area and depends on havin...

75ce4503950621b11fcc7f1fd1187dbcf3cde312 authored over 9 years ago
add multiple inclusion guard to locale_impl.h

32f3c4f70633488550c29a2444f819aafdf345ff authored over 9 years ago
remove redefinition of MB_CUR_MAX in locale_impl.h

unless/until the byte-based C locale is implemented, defining
MB_CUR_MAX to 1 in the C locale is...

04b8360adbb6487f61aa0c00e53ec3a90a5a0d29 authored over 9 years ago
make static C and C.UTF-8 locales available outside of newlocale

16bf466532d7328e971012b0731ad493b017ad29 authored over 9 years ago
remove another invalid skip of locking in ungetwc

312eea2ea4f4363fb01b73660c08bfcf43dd3bb4 authored over 9 years ago
add macro version of ctype.h isascii function

presumably internal code (ungetwc and fputwc) was written assuming a
macro implementation existe...

3d7e32d28dc9962e9efc1c317c5b44b5b2df3008 authored over 9 years ago
remove invalid skip of locking in ungetwc

aside from being invalid, the early check only optimized the error
case, and likely pessimized t...

7e816a6487932cbb3cb71d94b609e50e81f4e5bf authored over 9 years ago
fix uselocale((locale_t)0) not to modify locale

commit 68630b55c0c7219fe9df70dc28ffbf9efc8021d8 made the new locale to
be assigned unconditonall...

63f4b9f18f3674124d8bcb119739fec85e6da005 authored over 9 years ago
release 1.1.10

e6f09004af4d3ffc4e4ad5b5d33cf45891c25f25 authored over 9 years ago
fix dynamic linker regression processing R_*_NONE type relocations

commit f3ddd173806fd5c60b3f034528ca24542aecc5b9 inadvertently removed
the early check for "none"...

b6a6cd703ffefa6352249fb01f4da28d85d17306 authored over 9 years ago
add additional Makefile dependency rules for rcrt1.o PIE start file

585ba14df4799d50ec9682ce75825d2eafec2a6a authored over 9 years ago
fix failure of ungetc and ungetwc to work on files in eof status

these functions were written to handle clearing eof status, but failed
to account for the __tore...

2b4fcfdacf93c3dfd6ac15e31790a9e154374679 authored over 9 years ago
add missing legacy LFS64 macros in sys/resource.h

based on patch by Felix Janda, with RLIM64_SAVED_CUR and
RLIM64_SAVED_MAX added for completeness.

b6e7c664677ab7c77f183b8c41105f2be519800c authored over 9 years ago
configure: work around compilers that merely warn for unknown options

some compilers (such as clang) accept unknown options without error,
but then print warnings on ...

fc431d3f76bb9bde34a89e4a3e4d0c27de959855 authored over 9 years ago
implement fail-safe static locales for newlocale

this frees applications which need to make temporary use of the C
locale (via uselocale) from th...

aeeac9ca5490d7d90fe061ab72da446c01ddf746 authored over 9 years ago
rename internal locale file handling locale maps

since the __setlocalecat function was removed, the filename
__setlocalecat.c no longer made sense.

11858d31aa020df3e7e7dedf49f9870ce12f31cc authored over 9 years ago
overhaul locale internals to treat categories roughly uniformly

previously, LC_MESSAGES was treated specially as the only category
which could be set to a local...

61a3364d246e72b903da8b76c2e27a225a51351e authored over 9 years ago
replace atomics with locks in locale-setting code

this is part of a general program of removing direct use of atomics
where they are not necessary...

63c188ec42e76ff768e81f6b65b11c68fc43351e authored over 9 years ago
add rcrt1 start file for fully static-linked PIE

static-linked PIE files need startup code to relocate themselves, much
like the dynamic linker d...

dc031ee0b1ba11baa00cd7f0769e461a5f396c71 authored over 9 years ago
fix incorrect application of visibility to Scrt1.o

commit de2b67f8d41e08caa56bf6540277f6561edb647f attempted to avoid
having vis.h affect crt files...

ed0c8249825161036356a3616e8c5247c15d0927 authored over 9 years ago
reprocess all libc/ldso symbolic relocations in dynamic linking stage 3

commit f3ddd173806fd5c60b3f034528ca24542aecc5b9 introduced early
relocations and subsequent repr...

9bbddf730f7837cf87f4c789fbb41a312e295d6c authored over 9 years ago
move call to dynamic linker stage-3 into stage-2 function

this move eliminates a duplicate "by-hand" symbol lookup loop from the
stage-1 code and replaces...

768b82c6de24e480267c4c251c440edfc71800e3 authored over 9 years ago
mark mips crt code as code

otherwise disassemblers treat it as data.

967bcbf67c3ffac587de4d79abc1e5e072d83e3e authored over 9 years ago
mark mips cancellable syscall code as code

otherwise disassemblers treat it as data.

7b75c4877ddf22f219f944c61d939df1dee4f6d3 authored over 9 years ago
simplify/shrink relocation processing in dynamic linker stage 1

the outer-loop approach made sense when we were also processing
DT_JMPREL, which might be in REL...

0e0e49421f08cfd670975ecd3604f7f9015e1833 authored over 9 years ago
remove processing of DT_JMPREL from dynamic linker stage 1 bootstrap

the DT_JMPREL relocation table necessarily consists entirely of
JMP_SLOT (REL_PLT in internal no...

09db855b35709aa627d7055c57a98e1e471920ab authored over 9 years ago
fix stack alignment code in mips crt_arch.h

the instruction used to align the stack, "and $sp, $sp, -8", does not
actually exist; it's expan...

9f26ebded188ed78c3571a4ca1477dd6351bc647 authored over 9 years ago
add .text section directive to all crt_arch.h files missing it

i386 and x86_64 versions already had the .text directive; other archs
did not. normally, top-lev...

63caf1d207d143fe405bbe0cda9aac8deca1171a authored over 9 years ago
remove outdated and misleading comment in iconv.c

the comment claimed that EUC/GBK/Big5 are not implemented, which has
been incorrect since commit...

3b0e83264d156f9e496ab32badd89e4447b807aa authored over 9 years ago
in iconv_open, accept "CHAR" and "" as aliases for "UTF-8"

while not a requirement, it's common convention in other iconv
implementations to accept "CHAR" ...

39b8ce66f2ed9c17427ec3a48be9bda29b93b9d7 authored over 9 years ago
fix inconsistency in a_and and a_or argument types on x86[_64]

conceptually, and on other archs, these functions take a pointer to
int, but in the i386, x86_64...

c648cefb27984db60474ec1747cbfde83c2856d0 authored over 9 years ago
inline llsc atomics when building for sh4a

If we're building for sh4a, the compiler is already free to use
instructions only available on s...

390f93ef69153bf2087fcf3baa1776ad9a6765ab authored over 9 years ago
reprocess libc/ldso RELA relocations in stage 3 of dynamic linking

this fixes a regression on powerpc that was introduced in commit
f3ddd173806fd5c60b3f034528ca245...

c093e2e8201524db0d638920e76bcb6b1d925f3a authored over 9 years ago
fix null pointer dereference in dcngettext under specific conditions

if setlocale has not been called, the current locale's messages_name
may be a null pointer. the ...

43e9f652bf4b2195b04fc14c93db591b30a7b790 authored over 9 years ago
eliminate costly tricks to avoid TLS access for current locale state

the code being removed used atomics to track whether any threads might
be using a locale other t...

68630b55c0c7219fe9df70dc28ffbf9efc8021d8 authored over 9 years ago
in i386 __set_thread_area, don't assume %gs register is initially zero

commit f630df09b1fd954eda16e2f779da0b5ecc9d80d3 added logic to handle
the case where __set_threa...

707d7c30f3379441de9b320536ddfd354f4c2143 authored over 9 years ago
make arm reloc.h CRTJMP macro compatible with thumb

compilers targeting armv7 may be configured to produce thumb2 code
instead of arm code by defaul...

c0f10cf06725bd0de37f3ced7954a653bf9f1049 authored over 9 years ago
make arm crt_arch.h compatible with thumb code generation

compilers targeting armv7 may be configured to produce thumb2 code
instead of arm code by defaul...

83340c7a580e91b22f58321b7cf6d976af61084c authored over 9 years ago
release 1.1.9

dbf74a98be1e5c7564566c2ad30ce85dcf768df6 authored over 9 years ago
fix netinet/ether.h for c++

20de36cc89a4d5d44ff12511eae36eb15df982fb authored over 9 years ago
fix futimes legacy function with null tv pointer

a null pointer is valid here and indicates that the current time
should be used. based on patch ...

ece0c48a603a58b26672ee2eeea7554991fcafa1 authored over 9 years ago
fix stack protector crashes on x32 & powerpc due to misplaced TLS canary

i386, x86_64, x32, and powerpc all use TLS for stack protector canary
values in the default stac...

484194dbf41758eec0ef62fef5fe9350c21b9241 authored over 9 years ago
improve iswdigit macro to diagnose errors

this is analogous to commit 2ca55a93f2a11185d72dcb69006fd2c30b5c3144
for the macros in ctype.h.

d0040e239e8d3048a7fb38f0bacaad4838fac605 authored over 9 years ago
fix broken cancellation on x32 due to incorrect saved-PC offset

7fe273b2c163e4594221375120c6ce209a783262 authored over 9 years ago
fix crash in x32 sigsetjmp

the 64-bit push reads not only the 32-bit return address but also the
first 32 signal mask bits....

551c1d7a5718667da2ee56434c18f0a9b9612ed2 authored over 9 years ago
fix x32 __set_thread_area failure due to junk in upper bits

the kernel does not properly clear the upper bits of the syscall
argument, so we have to do it b...

2d5c74c21e0483128624c43d4399ef49e057e264 authored over 9 years ago
fix dangling pointers in x32 syscall timespec fixup code

the lifetime of compound literals is the block in which they appear.
the temporary struct __time...

4f69594689992d76088f2b0af79cd91c40579f64 authored over 9 years ago
add IPTOS_CLASS_* macros to netinet/ip.h

These macros were introduced in glibc 2.12 to follow RFC 2474 which
deprecates "IP Precedence" i...

7561ac45ed94743c259c636cd15c048f492ffec1 authored over 9 years ago
complex: fix ctanh(+-0+i*nan) and ctanh(+-0+-i*inf)

These cases were incorrect in C11 as described by
http://www.open-std.org/jtc1/sc22/wg14/www/doc...

b02eed9c4841913d690a2d0029737d72615384fe authored over 9 years ago
fix integer overflow in elf.h macro SHF_EXCLUDE

e98a54643ee95032baab883673628314e520012e authored over 9 years ago
fix mishandling of ENOMEM return case in internal getgrent_a function

due to an incorrect return statement in this error case, the
previously blocked cancellation sta...

58fa856960d3073bcf84adac8e8bd6c555674271 authored over 9 years ago
fix __syscall declaration with wrong visibility in syscall_arch.h

remove __syscall declaration where it is not needed (aarch64, arm,
microblaze, or1k) and add the...

18f75b80fd67fd7348fcfb807216f654597b592f authored almost 10 years ago