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
this avoids assuming the presence of C11 macro definitions in the
public complex.h, which need c...
efa9d396f9d3af6c6f85ec86302b48206c574a38 authored about 10 years ago
based on patch by Timo Teräs, with some corrections to bounds checking
code and other minor chan...
previously, write errors neither stopped further output attempts nor
caused the function to retu...
da16224fc5fea45b307d9f0565c2adc92f9e1da0 authored about 10 years ago
if argv permutation is used, the option terminator "--" should be
moved before any skipped non-o...
this is an undocumented feature of GNU getopt_long that the BSD
version also mimics, and is repo...
in the case where an initial '+' was passed in optstring (a
getopt_long feature to suppress argv...
cfd7b4acd55420deedd41e0614c9b614c73c743e authored about 10 years ago
59f6232f85240f448da0d1fc77b3e09fe36eeed9 authored about 10 years ago
C++ programmers typically expect something like "::function(x,y)" to work
and may be surprised t...
the write function is a cancellation point and accesses thread-local
state belonging to the call...
the resolution of austin group issue #370 removes the requirement that
posix_spawn fail when the...
the previous hard-coded offsets of +1 and +2 contained a hidden
assumption that the option chara...
it is part of kernel uapi, and some programs (e.g. nodejs) do use them
be1f67ab6fde1989af7b2e2946804e9009931a8a authored about 10 years ago
these functions are expected to return an error code rather than
setting errno and returning -1.
the sched_getaffinity syscall only fills a cpu set up to the set size
used/supported by the kern...
this is a GNU extension, activated by including '-' as the first
character of the options string...
the new DT_RUNPATH semantics for search order are always used, and
since binutils had always set...
this file had been a mess that went unnoticed ever since it was
imported. some lines used spaces...
921c26e0e7058502e317fe0c93f6d59f982a21f1 authored about 10 years ago
commit 27828f7e9adb6b4f93ca56f6f98ef4c44bb5ed4e fixed compatibility
with clang's internal assemb...
27828f7e9adb6b4f93ca56f6f98ef4c44bb5ed4e authored about 10 years ago
except powerpc, which still lacks inline syscalls simply because
nobody has written the code, th...
0e971b0e3f4b9c99a7ce67b10d851fc885c188d5 authored about 10 years ago
the register constraints in the non-clang case were tested to work on
clang back to 3.2, and ear...
calls to __aeabi_read_tp may be generated by the compiler to access
TLS on pre-v6 targets. previ...
previously, builds for pre-armv6 targets hard-coded use of the "kuser
helper" system for atomics...
this allows most code to assume it has already been saved, and is a
prerequisite for upcoming ch...
Processing an option character with optional argument fails if the
option is last on the command...
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
in this case there are two conflicting rules in play: that an explicit
precision of zero with th...
fnstsw does not wait for pending unmasked x87 floating-point exceptions
and it is the same as fs...
Some early x86_64 cpus (released before 2006) did not support sahf/lahf
instructions so they sho...
the kernel syscall interface for or1k does not expect 64-bit arguments
to be aligned to "even" r...
this was introduced in commit 2da3ab1382ca8e39eb1e4428103764a81fba73d3
as an oversight while mak...
The old code used the rounding idiom incorrectly:
y = (double)(x + 0x1p52) - 0x1p52;
the cas...
79ca86094d70f43252b683c3a3ccb572d462cf28 authored over 10 years agothe idiomatic rounding of x is
n = x + toint - toint;
where toint is either 1/EPSILON (x is ...
0ce946cf808274c2d6e5419b139e130c8ad4bd30 authored over 10 years ago
the mode argument is only required to be present when the O_CREAT or
O_TMPFILE flag is used.
9d836ea7a69a6441fcdca815328d274e4ed6b707 authored over 10 years ago
this change is a workaround for the inability of current compilers to
perform "shrink wrapping" ...
60a4783ed4bd0496f7eb31f9b7eb2ad10df46677 authored over 10 years ago
based on patch by Sergey Dmitrouk.
a60457c84a4b59ab564d7f4abb660a70283ba98d authored over 10 years agoab9672ae73248f51e30f4553c4b8878525e46383 authored over 10 years ago
00548408398ced546c540dab773ea66cea4fe1c2 authored over 10 years ago
these functions need to be fast when the init routine has already run,
since they may be called ...
867b1822f30a76cb9c8342da29eb28ed75908fa9 authored over 10 years ago
previously, the hours were considered as a signed quantity while
minutes and seconds were always...
new in linux v3.17 commit 40e041a2c858b3caefc757e26cb85bfceae5062b
sealing allows some operation...
added in linux v3.17 commit 753a2ad54ef45e3417a9d49537c2b42b04a2e1be
enables automatic flow labe...
these syscalls are new in linux v3.17 and present on all supported
archs except sh.
seccomp was...
4ffc39c65448b04685946dffa68745cf0f6bf9f7 authored over 10 years ago
previously the external definitions of these functions were omitted on
archs where long double i...
per the text accepted for inclusion in POSIX, behavior is unspecified
when any of the access mod...
this function is specified to leave the last byte with "unspecified
disposition" when the length...
patch by Jens Gustedt. this fixes a bug reported by Nadav Har'El. the
underlying issue was that ...
commit 5345c9b884e7c4e73eb2c8bb83b8d0df20f95afb added a linked list to
track the FILE streams cu...
This was not caught earlier because gcc incorrectly generates quiet
relational operators that ne...
incorrect behavior occurred only in cases where the input overflows
unsigned long long, not just...
The new code is a bit simpler and the generated code is about 1KB
smaller (on i386). The basic d...
the C11 _Alignas keyword is not present in C++, and despite it being
in the reserved namespace a...
as a result of commit ab8f6a6e42ff893041f7545a23e6d6a0edde07fb, this
definition is now equivalen...
this could be an error if _GNU_SOURCE was already defined differently
by the application.
the vast majority of these failures seem to have been oversights at
the time _BSD_SOURCE was add...
the previous commit was a no op in exp10l because LDBL_* macros
were implicitly 0 (the preproces...
__polevll, __p1evll and exp10l were provided on archs when long double
is the same as double. Th...
open file description locks are inherited across fork and only auto
dropped after the last fd of...
based on patch by Jens Gustedt.
the main difficulty here is handling the difference between sta...
23614b0fcb4cd4d7b2e4148d3b1887b642169765 authored over 10 years ago
Because of the clear separation for private pthread_cond_t these
interfaces are quite simple and...
8b0472932c1cb8cb2cc46322b21c0c4e21848522 authored over 10 years ago
These all have POSIX equivalents, but aside from tss_get, they all
have minor changes to the sig...
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
The intent of this is to avoid name space pollution of the C threads
implementation.
This has t...
df7d0dfb9c686df31149d09008ba92834bed9803 authored over 10 years ago
based on patch by Jens Gustedt for inclusion with C11 threads
implementation, but committed sepa...
86876dbec55d9416859bbbbc9850b1ec81b6dbea authored over 10 years ago
there is no blksize64_t (blksize_t is always long) but there are
fsblkcnt64_t and fsfilcnt64_t t...
versionsort64, aio*64 and lio*64 symbols were missing, they are
only needed for glibc ABI compat...
546f6b322bcafa2452925c19f9607d9689c75f95 authored over 10 years ago
this error resulted in an out-of-bounds read, as opposed to a reported
error, when calling the f...
if the loop stopped due to reaching the end of the string, the
subsequent increment could possib...
the condition was probably intended to be !*p rather than !p, but
neither is needed here. the su...
U+00DF ('ß') has had an uppercase form (U+1E9E) available since
Unicode 5.1, but Unicode lacks t...
per POSIX these functions are both cancellation points, so they must
act on any cancellation req...
the outer getnameinfo function already has a properly-sized temporary
buffer for storing the rev...
previously, fgets, fputs, fread, and fwrite completely omitted locking
and access to the FILE ob...
the C standard requires that "the contents of the array remain
unchanged" in this case.
this pa...
402611c3ba3be5b3b0486835d98e22ac7ced2722 authored over 10 years ago
Empty name was rejected in dn_expand since commit
56b57f37a46dab432247bf29d96fcb11fbd02a6d
which...
add static_assert and protect the other new C11 keyword macros
with #ifndef __cplusplus so they ...
C11 introduced *_DECIMAL_DIG and *_HAS_SUBNORM macros.
18dde0071334e2e7f71972b80df7779280c801cf authored over 10 years ago
this function is needed for some important practical applications of
ABI compatibility, and may ...
if there is already a waiter for a lock, spinning on the lock is
essentially an attempt to steal...
97a7512b6819014d15c679c8998caa0006d13c29 authored over 10 years ago
empirically, this increases the maximum rate of wait/post operations
between two threads by 20-1...
this was broken by commit ea818ea8340c13742a4f41e6077f732291aea4bc.
8b3d7d0d35f97051bc994800c928a7db53316dd2 authored over 10 years ago
the previous spin limit of 10000 was utterly unreasonable.
empirically, it could consume up to 2...
conceptually, a_spin needs to be at least a compiler barrier, so the
compiler will not optimize ...
this is analogous commit fffc5cda10e0c5c910b40f7be0d4fa4e15bb3f48
which fixed the corresponding ...
for unknown syscall commands, the kernel produces ENOSYS, not EINVAL.
b8ca9eb5301580dcf101753451eee196edceefbd authored over 10 years ago
the subsequent code in pthread_create and the code which copies TLS
initialization images to the...
unfortunately this needs to be able to vary by arch, because of a huge
mess GCC made: the GCC de...
the main idea of the changes made is to have waiters wait directly on
the "barrier" lock that wa...