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
commit 3c43c0761e1725fd5f89a9c028cbf43250abb913 fixed missing
synchronization in the atomic stor...
tm_gmtoff is a nonstandard field, but on historical systems which have
this field, it stores the...
On 32bit systems long long arguments are passed in a special way
to some syscalls; this accident...
tempnam uses an uninitialized buffer which is filled using memcpy and
__randname. It is therefor...
during calls to free, any free chunks adjacent to the chunk being
freed are momentarily held in ...
despite being strongly ordered, the x86 memory model does not preclude
reordering of loads acros...
fe7582f4f92152ab60e9523bf146fe28ceae51f6 authored over 9 years ago
The old code accepted atexit handlers after exit, but did not run them
reliably. C11 seems to ex...
....to be somewhat consistent and easily comparable with asm/socket.h
Signed-off-by: Roman Yery...
3975577922aedab7d60788dd320a2c8e4e94bc6e authored over 9 years agoSigned-off-by: Roman Yeryomin <[email protected]>
29ec7677a73a5227badbb1064205be09e707e466 authored over 9 years agoglibc and uclibc use gregs instead of regs
Signed-off-by: Felix Fietkau <[email protected]>
3fffa7a658aa925b8f95d36aef7531c1827dbf28 authored over 9 years ago
when traditional syslogd implementations are restarted, the old server
socket ceases to exist an...
being nonstandard, the closest thing to a specification for this
function is its man page, which...
due to a reversed pointer difference computation, ns_skiprr always
returned a negative value, wh...
musl-clang allows the user to compile musl-powered programs using their
already existent clang i...
the old test was broken in that it would never fail on a toolchains built
without dynamic linkin...
this overhauls part of the build system in order to support multiple
toolchain wrapper scripts, ...
this improves compatibility with the behavior of other systems and
with some applications which ...
The callers need to check the value of the pointer anyway, so make
them pass the pointer to gnu_...
Do not reference dso->syms and dso->strings until point of use.
Check 'h1 == (h2|1)', the simple...
Introduce gnu_lookup_filtered and use it to speed up symbol lookups in
find_sym (do_dlsym is lef...
With -Os, GCC uses a multiply rather than a shift and addition for 'h*33'.
Use a more efficient ...
the TLS ABI spec for mips, powerpc, and some other (presently
unsupported) RISC archs has the re...
previously, loading of additional libraries beyond libc/ldso did not
work on nommu kernels, nor ...
this interface is non-standardized and is a GNU invention, and as
such, our implementation shoul...
commit ba819787ee93ceae94efd274f7849e317c1bff58 introduced this
regression. since the __malloc0 ...
previously, calloc's implementation encoded assumptions about the
implementation of malloc, acce...
this symbol is needed only on archs where the PLT call ABI is klunky,
and only for position-inde...
linux kernel commit 46e12c07b3b9603c60fc1d421ff18618241cb081 caused
the mips syscall mechanism t...
this error simply indicated a system without memory protection (NOMMU)
and should not cause fail...
nominally the low bits of the trap number on sh are the number of
syscall arguments, but they ha...
due to the way the interrupt and syscall trap mechanism works,
userspace on sh2 must never set t...
the sh2 target is being considered an ISA subset of sh3/sh4, in the
sense that binaries built fo...
functions which open in-memory FILE stream variants all shared a tail
with __fdopen, adding the ...
this patch activates the new byte-based C locale (high bytes treated
as abstract code unit "char...
this patch adjusts libc components which use the multibyte functions
internally, and which depen...
this patch makes the functions which work directly on multibyte
characters treat the high bytes ...
btowc is required to interpret its argument by conversion to unsigned
char, unless the argument ...
vdso will be available on arm in linux v4.2, the user-space code
for it is in kernel commit 8512...
this extends the brk/stack collision protection added to full malloc
in commit 276904c2f6bde3a31...
commit 58165923890865a6ac042fafce13f440ee986fd9 added these optional
cancellation points on the ...
the old idiom, f->mode |= f->mode+1, was adapted from the idiom for
setting byte orientation, f-...
this is undefined, but supported in our implementation of the normal
printf, so for consistency ...
f9e25d813860d53cd1e9b6145cc63375d2fe2529 authored over 9 years ago
ec634aad91f57479ef17525e33ed446c780a61f4 authored over 9 years ago
this can be used to put off writing an asm version of __unmapself for
new archs, or as a permane...
the linux/nommu fdpic ELF loader sets up the brk range to overlap
entirely with the main thread'...
for several pwd/grp functions, the only way the caller can distinguish
between a successful nega...
the arm atomics/TLS runtime selection code is called from
__set_thread_area and depends on havin...
32f3c4f70633488550c29a2444f819aafdf345ff authored over 9 years ago
unless/until the byte-based C locale is implemented, defining
MB_CUR_MAX to 1 in the C locale is...
16bf466532d7328e971012b0731ad493b017ad29 authored over 9 years ago
312eea2ea4f4363fb01b73660c08bfcf43dd3bb4 authored over 9 years ago
presumably internal code (ungetwc and fputwc) was written assuming a
macro implementation existe...
aside from being invalid, the early check only optimized the error
case, and likely pessimized t...
commit 68630b55c0c7219fe9df70dc28ffbf9efc8021d8 made the new locale to
be assigned unconditonall...
e6f09004af4d3ffc4e4ad5b5d33cf45891c25f25 authored over 9 years ago
commit f3ddd173806fd5c60b3f034528ca24542aecc5b9 inadvertently removed
the early check for "none"...
585ba14df4799d50ec9682ce75825d2eafec2a6a authored over 9 years ago
these functions were written to handle clearing eof status, but failed
to account for the __tore...
based on patch by Felix Janda, with RLIM64_SAVED_CUR and
RLIM64_SAVED_MAX added for completeness.
some compilers (such as clang) accept unknown options without error,
but then print warnings on ...
this frees applications which need to make temporary use of the C
locale (via uselocale) from th...
since the __setlocalecat function was removed, the filename
__setlocalecat.c no longer made sense.
previously, LC_MESSAGES was treated specially as the only category
which could be set to a local...
this is part of a general program of removing direct use of atomics
where they are not necessary...
static-linked PIE files need startup code to relocate themselves, much
like the dynamic linker d...
commit de2b67f8d41e08caa56bf6540277f6561edb647f attempted to avoid
having vis.h affect crt files...
commit f3ddd173806fd5c60b3f034528ca24542aecc5b9 introduced early
relocations and subsequent repr...
this move eliminates a duplicate "by-hand" symbol lookup loop from the
stage-1 code and replaces...
otherwise disassemblers treat it as data.
967bcbf67c3ffac587de4d79abc1e5e072d83e3e authored over 9 years agootherwise disassemblers treat it as data.
7b75c4877ddf22f219f944c61d939df1dee4f6d3 authored over 9 years ago
the outer-loop approach made sense when we were also processing
DT_JMPREL, which might be in REL...
the DT_JMPREL relocation table necessarily consists entirely of
JMP_SLOT (REL_PLT in internal no...
the instruction used to align the stack, "and $sp, $sp, -8", does not
actually exist; it's expan...
i386 and x86_64 versions already had the .text directive; other archs
did not. normally, top-lev...
the comment claimed that EUC/GBK/Big5 are not implemented, which has
been incorrect since commit...
while not a requirement, it's common convention in other iconv
implementations to accept "CHAR" ...
conceptually, and on other archs, these functions take a pointer to
int, but in the i386, x86_64...
If we're building for sh4a, the compiler is already free to use
instructions only available on s...
this fixes a regression on powerpc that was introduced in commit
f3ddd173806fd5c60b3f034528ca245...
if setlocale has not been called, the current locale's messages_name
may be a null pointer. the ...
the code being removed used atomics to track whether any threads might
be using a locale other t...
commit f630df09b1fd954eda16e2f779da0b5ecc9d80d3 added logic to handle
the case where __set_threa...
compilers targeting armv7 may be configured to produce thumb2 code
instead of arm code by defaul...
compilers targeting armv7 may be configured to produce thumb2 code
instead of arm code by defaul...
dbf74a98be1e5c7564566c2ad30ce85dcf768df6 authored over 9 years ago
20de36cc89a4d5d44ff12511eae36eb15df982fb authored over 9 years ago
a null pointer is valid here and indicates that the current time
should be used. based on patch ...
i386, x86_64, x32, and powerpc all use TLS for stack protector canary
values in the default stac...
this is analogous to commit 2ca55a93f2a11185d72dcb69006fd2c30b5c3144
for the macros in ctype.h.
7fe273b2c163e4594221375120c6ce209a783262 authored over 9 years ago
the 64-bit push reads not only the 32-bit return address but also the
first 32 signal mask bits....
the kernel does not properly clear the upper bits of the syscall
argument, so we have to do it b...
the lifetime of compound literals is the block in which they appear.
the temporary struct __time...
These macros were introduced in glibc 2.12 to follow RFC 2474 which
deprecates "IP Precedence" i...
These cases were incorrect in C11 as described by
http://www.open-std.org/jtc1/sc22/wg14/www/doc...
e98a54643ee95032baab883673628314e520012e authored over 9 years ago
due to an incorrect return statement in this error case, the
previously blocked cancellation sta...
remove __syscall declaration where it is not needed (aarch64, arm,
microblaze, or1k) and add the...