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
if EINVAL or ENOMEM happened before the first getc_unlocked, it was
possible that the stream ori...
on some archs, linux support for futex operations (including
robust_list processing) that depend...
do_tzset() did't always reset the DST transition rules r0 and r1. That
means the rules from olde...
in order to produce FILE objects to pass to the intscan/floatscan
backends without any (prohibit...
POSIX allows ttyname(_r) and isatty to return EBADF if passed file
descriptor is invalid.
maint...
c84971995b3a6d5118f9357c040572f4c78bcd55 authored over 6 years ago by Benjamin Peterson <[email protected]>
this significantly improves codegen in functions that need to access
errno but otherwise have no...
commit 5ce3737931bb411a8d167356d4d0287b53b0cbdc removed the inclusion
of libc.h from this file a...
there is no good reason to wait to find and process the plural rules
for a translated message fi...
in our memory model, all atomics are supposed to be full barriers;
stores are not release-only. ...
MAX_HANDLE_SZ is described in name_to_handle_at() to contain maximum
expected size for a file ha...
as originally published, the C99 syntax only allowed static index
parameter declarators when a g...
other compilers don't need this option, but gcc 3 and perhaps others
accept it despite not under...
3e14bbcd1979376b188bfabb816ff828608fb5d7 authored over 6 years ago by Khem Raj <[email protected]>
since commit dc2f368e565c37728b0d620380b849c3a1ddd78f this has been
disabled by default, but was...
this further reduces the number of source files which need to include
libc.h and thereby be pote...
pthread_atfork.c does not actually include pthread_impl.h and has no
reason to, so it wasn't get...
the LFS64 macro was not self-documenting and barely saved any
characters. simply use weak_alias ...
this was added so that posix_spawn and possibly other functionality
could be implemented in term...
libc.h was intended to be a header for access to global libc state and
related interfaces, but e...
not all prefixed symbols can be made hidden. some are part of
ABI-compat (e.g. __nl_langinfo_l) ...
this is perhaps not the ideal place, but no better alternatives stand
out.
6d47488e8616dfc24e58aeb56db520ac7c80421e authored over 6 years ago by Rich Felker <[email protected]>
a3944d3f0cfc63ebfcd9dad4dd7f2b2cd8860968 authored over 6 years ago by Rich Felker <[email protected]>
239c15565fe174a77cdd0a8226863a1da1880857 authored over 6 years ago by Rich Felker <[email protected]>
a2f0eb1a0704c608bb9e0b94b7420201a70ce233 authored over 6 years ago by Rich Felker <[email protected]>
this is a special case that does not need a declaration, because it's
not even a libc-internal i...
the direct syscall or various thin and mostly-inline wrappers around
it are used instead interna...
ef8d45d6c9036b23087461550e95683804ed0084 authored over 6 years ago by Rich Felker <[email protected]>
3fe595de83e398dbc3cdbe303cacaf8485c9ae08 authored over 6 years ago by Rich Felker <[email protected]>
c52ae69844c2e56f84bc159af4cc6bf0fd107d84 authored over 6 years ago by Rich Felker <[email protected]>
the __-prefixed filename does not make sense when the only purpose of
this file is implementing ...
81e19341d8bb2f2a9f908ed9a633666207d5207e authored over 6 years ago by Rich Felker <[email protected]>
these were overlooked for various reasons in earlier stages.
49722a8ed4c8fd056ac8aebd6bec9d998b700f80 authored over 6 years ago by Rich Felker <[email protected]>
these were overlooked in the declarations overhaul work because they
are not properly declared, ...
7e399fabd3db2c528b5982803eeba2841f547695 authored over 6 years ago by Rich Felker <[email protected]>
d06fdd7f272bff626509341426f96ccb1828d4ac authored over 6 years ago by Rich Felker <[email protected]>
50fea6c75f7bb610eb33bc676224e8fbd2329338 authored over 6 years ago by Rich Felker <[email protected]>
444a1b21a1bd12b76f93155ea7db3f155710b37b authored over 6 years ago by Rich Felker <[email protected]>
this makes significant differences to codegen on archs with an
expensive PLT-calling ABI; on i38...
commits leading up to this one have moved the vast majority of
libc-internal interface declarati...
4de46b5ab51fd74552fa58a6721c78e10c9de975 authored over 6 years ago by Rich Felker <[email protected]>
7ab1578d05f5d6790e218867158a28d9147419ec authored over 6 years ago by Rich Felker <[email protected]>
the public flockfile interface is significantly heavier because it has
to handle the possibility...
it's not ideal, but the function is essentially an extended stdio
function specialized to getopt...
these are not public interfaces and do not match the public function,
but delegate argument chec...
previously, a common __posix_spawnx backend was used that accepted an
additional argument for th...
762cf6cdb36ec4403d833c85371a4df686e0e58d authored over 6 years ago by Rich Felker <[email protected]>
the malloc-implementation-private header is the only right place for
this, because, being in the...
this is not a public interface, and does not even necessarily match
the syscall on all archs tha...
1bbe166e15e2c005c49c0aa53b8d106315d95ad0 authored over 6 years ago by Rich Felker <[email protected]>
these are not a public interface and are not intended to be callable
from anywhere but the publi...
7dc8df56c16f0fd9d791511e54d4590fb5a2dbf3 authored over 6 years ago by Rich Felker <[email protected]>
this functions is glue for linking dependency logic.
50a298ea3b122efbb31e7674a20e6c7dc30ca1dc authored over 6 years ago by Rich Felker <[email protected]>
it's already included in all places where these are needed, and aside
from __tls_get_addr, they'...
locale_impl.h could have been used, but this function is completely
independent of anything else...
this is a helper function from strftime that's also used by wcsftime.
01294da7f71958ed0d3aa5bdc8d625c405c8926a authored over 6 years ago by Rich Felker <[email protected]>
unlike the other res/dn functions, this one is tied to struct
resolvconf which is not a public i...
8dafb84e667e81f04b0dace310161d33a37f8f50 authored over 6 years ago by Rich Felker <[email protected]>
obviously the type "should be" const, but it inherited non-const from
the standard nl_langinfo_l.
this function was added later for strftime use and the existence of
time_impl.h as the appropria...
f9db9eca40fdc78fae258b8e12eb689fc2d5e0e5 authored over 6 years ago by Rich Felker <[email protected]>
the source file for this function is completely standalone, but it
doesn't seem worth adding a h...
despite looking like undefined behavior, the affected code is correct
both before and after this...
a8c53794a00f7a432a846cb649b4908ceba322b9 authored over 6 years ago by Patrick Oppenlander <[email protected]>
without this, it's plausible that assembler or linker could complain
about an unsatisfiable relo...
59d88940d20b40495c9d63560469b3a1ee5c8bc6 authored over 6 years ago by Rich Felker <[email protected]>
these exist for the sake of defining the corresponding weak public
aliases (for C11 and POSIX na...
736a950b3d4f476018d2909302be6d150530df50 authored over 6 years ago by Rich Felker <[email protected]>
get rid of a gratuitous translation unit and call frame between
asctime_r and the actual impleme...
logically these belong to the intersection of the stdio and pthread
subsystems, and either place...
eliminate gratuitous glue function for reporting the version, which
was probably leftover from t...
55a1c9c89028f8930e5f65fe5484fa7ba0e18853 authored over 6 years ago by Rich Felker <[email protected]>
cb229f614f937515b78e40701f36c26c7def01b7 authored over 6 years ago by Rich Felker <[email protected]>
syscall.h was chosen as the header to declare it, since its intended
usage is alongside syscalls...
policy is that all public functions which have a public declaration
should be defined in a conte...
eeb6f7742506b08692f745c7f588d046f1aa8214 authored over 6 years ago by Rich Felker <[email protected]>
this cleans up what had become widespread direct inline use of "GNU C"
style attributes directly...
__pthread_mutex_timedlock is used to implement c11 mutex functions,
and therefore cannot call pt...
compiler cannot cache immutable fields of the mutex object across
external calls it can't see, m...
avoid gratuitously setting up and tearing down the robust list pending
slot.
this fix was intended to be amended in before release, but somehow got
missed.
This lets fexecve work even when /proc isn't mounted.
e36f80cba6d5eefcc1ee664f16c2c72054b83134 authored over 6 years ago by Joseph C. Sible <[email protected]>0fa1e638e87cf257e9f96b4019b2076afd674a19 authored over 6 years ago by Rich Felker <[email protected]>
commit 4f35eb7591031a1e5ef9828f9304361f282f28b9 introduced this bug.
it is not present in any re...
this code in sigaction was the only place where sizeof was being
applied to the kernel sigaction...
Linux makes this surprisingly difficult, but it can be done. the trick
here is using the fact th...
assuming signals are blocked, which they are here, the tid in the
thread structure is always val...
this requirement is specified by POSIX.
cff4b910ab210e5c35f768c75c4562b3ae3e86f2 authored over 6 years ago by Rich Felker <[email protected]>
these functions are specified to write to stderr but not set its
orientation, presumably so that...
if no output is produced, no underlying fwrite will ever be called,
but byte-oriented printf fun...
commit b5a8b28915aad17b6f49ccacd6d3fef3890844d1 setup the write buffer
bound pointers for the te...
commit 0b80a7b0404b6e49b0b724e3e3fe0ed5af3b08ef added the ability to
set application-provided st...
if __cp_cancel was reached via __syscall_cp, r12 will necessarily
still contain a GOT pointer (f...
entering the local entry point for __cancel from __cp_cancel is valid
if __cp_cancel was reached...
9cdaf1a86bf7790c8dec749118392ee78101ee37 authored over 6 years ago by A. Wilcox <[email protected]>
- REALTIME_SIGNALS is supposed to be version-valued
- DELAYTIMER_MAX was wrongly using the min a...
the value 0x7f00 (as if by _exit(127)) is specified only for the case
where the child is created...
fundamentally there is no good reason these functions need to set an
orientation (morally it sho...
the w+ mode is specified to "truncate the buffer contents". like most
of fmemopen, exactly what ...
this is a POSIX requirement.
also remove the gratuitous locking shenanigans and simply access f...
b39b47bac8ee5505cfc595000a140c35460e1cac authored over 6 years ago by Rich Felker <[email protected]>