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
The unwind code in libgcc uses this type for unwinding across signal
handlers. On aarch64 the ke...
previously, commit e7b9887e8b65253087ab0b209dc8dd85c9f09614 aligned
the sizes with the glibc ABI...
This adds complete aarch64 target support including bigendian subarch.
Some of the long double ...
01ef3dd9c5fa7a56aa370f244dd08e05c73010f5 authored almost 10 years ago
This is in preparation for the aarch64 port only to have the long
double math symbols available ...
Changed the special case handling and bit manipulation to better
match the double version.
There are two main abi variants for thread local storage layout:
(1) TLS is above the thread p...
204a69d2d917f413eacb086020b63d6dc6da0672 authored almost 10 years ago
due to a logic error in the use of masked cancellation mode,
pthread_cond_wait did not honor PTH...
Implemented as a wrapper around fegetround introducing a new function
to the ABI: __flt_rounds. ...
a conservative estimate of 4*sizeof(size_t) was used as the minimum
alignment for thread-local s...
2b42c8cb37a3ef115bd04de8637078e43cd72f37 authored almost 10 years ago
380857bf21bcffbbee2fe8ab52feadf39366d7ec authored almost 10 years ago
new in linux v3.19 commit ee1b58d36aa1b5a79eaba11f5c3633c88231da83
used to report intel mpx boun...
normally time.h would provide a definition for this struct, but
depending on the feature test ma...
91a3bd743e91604bde83e9ce1ad3a2e2d4ff0f0f authored almost 10 years ago
these macros have the same distinct definition on blackfin, frv, m68k,
mips, sparc and xtensa ke...
the previous definitions were copied from x86_64. not only did they
fail to match the ABI sizes;...
this re-check idiom seems to have been copied from the alloc_fwd and
alloc_rev functions, which ...
6de071a0be00ec2ff08af3c89c7caaa20f1044d7 authored almost 10 years ago
the malloc init code provided its own version of pthread_once type
logic, including the exact sa...
the memory model we use internally for atomics permits plain loads of
values which may be subjec...
like close, pthread_join is a resource-deallocation function which is
also a cancellation point....
pthread_testcancel is not in the ISO C reserved namespace and thus
cannot be used here. use the ...
5451d95715e3b4b37a32b54695fd1efa2cf3d9da authored almost 10 years ago
previously, the __timedwait function was optionally a cancellation
point depending on whether it...
as part of abstracting the futex wait, this function suppresses all
futex error values which cal...
on most cpu models, "rep stosq" has high overhead that makes it
undesirable for small memset siz...
on most cpu models, "rep stosl" has high overhead that makes it
undesirable for small memset siz...
Based on a patch by Szabolcs Nagy.
20cbd607759038dca57f84ef7e7b5d44a3088574 authored almost 10 years ago
the equivalent checks for newly opened stdio output streams, used to
determine buffering mode, a...
due to accidental use of = instead of ==, the error code was always
set to zero in the signaled ...
when we fail to find the entry in the commonly accepted files, we
query a server over a Unix do...
errno was treated as the error status when the return value of getline
was negative, but this co...
the wrong condition was used in determining the presence of a result
that needs space/copying fo...
d9da1fb8c592469431c764732d09f7756340190e authored almost 10 years ago
it's possible that signaling a waiter races with cancellation of that
same waiter. previously, c...
this is a new extension which is presently intended only for
experimental and internal libc use....
f409338a9e808a09001669377c608fd2803d808d authored almost 10 years ago
commit 82dc1e2e783815e00a90cd3f681436a80d54a314 addressed the
resolution of Austin Group issue 5...
this requirement is tucked away in XSH 2.9.5 Thread Cancellation under
the heading Thread Cancel...
a_store is only valid for int, but ssize_t may be defined as long or
another type. since there i...
this allows getgrnam and getgrgid to share code with the _r versions
in preparation for alternat...
previously, aio operations were not tracked by file descriptor; each
operation was completely in...
the character sequence '$((' was incorrectly interpreted as the
opening of arithmetic even withi...
this allows getpwnam and getpwuid to share code with the _r versions
in preparation for alternat...
The code does a potentially misaligned 8-byte store to fill the tail
of the buffer. Then it fill...
"and $0xff,%esi" is a six-byte insn (81 e6 ff 00 00 00), can use
4-byte "movzbl %sil,%esi" (40 0...
6a5242e4cb2f9c695f613dc312ed5e1bb8008912 authored almost 10 years ago
this syscall allows fexecve to be implemented without /proc, it is new
in linux v3.19, added in ...
these socket options are new in linux v3.19, introduced in commit
2c8c56e15df3d4c2af3d656e44feb1...
the name was recently added for the setxid/synccall rework,
so use the name now that we have it.
just defining the necessary constants:
LD_B1B_MAX is 2^113 - 1 in base 10^9
KMAX is 2048 so t...
This trivial copy-paste bug went unnoticed due to lack of testing.
No currently supported target...
armhf fesetenv implementation did a useless read of the fpscr.
04d522cba6f54dc8c4df9dd963d254de257bf74c authored almost 10 years ago
mips fesetenv did not handle FE_DFL_ENV, now fcsr is cleared in that
case.
The sign bit was not cleared before checking for 0 so -0.0
was misclassified as FP_SUBNORMAL ins...
6e76e1540fc58a418494bf5eb832b556f9c5763e authored almost 10 years ago
all socket types are accepted at this point, but that may be changed
at a later time if the beha...
x86_64 syscall.h defined some musl internal syscall names and made
them public. These defines we...
in the case where a non-symlink file was replaced by a symlink during
the fchmodat operation wit...
2736eb6caa70bb6e909d7d8ebbe145c2071435e0 authored about 10 years ago
the specification for execvp itself is unclear as to whether
encountering a file that cannot be ...
in practice this was probably a non-issue, because the necessary
barrier almost certainly exists...
mxcs_mask should be mxcr_mask
4758f0565df83beb8f9b24857ec40ca3a40d2281 authored about 10 years ago
these are mandatory cancellation points per POSIX, so their omission
was a conformance bug.
the definitions are generic for all kernel archs. exposure of these
macros now only occurs on th...
this typo did not result in an erroneous setjmp with at least binutils
2.22 but fix it for clari...
the errno values are unused by the kernel and the macro definitions were
never exposed by glibc.
based on patch by Vadim Ushakov. in general overriding LC_ALL rather
than specific categories (h...
when using /etc/shadow (rather than tcb) as its backend, getspnam_r
matched any username startin...
as a result of commit e8e4e56a8ce1f3d7e4a027ff5478f2f8ea70c46b,
the later code path for setting ...
the standard getopt does not touch optarg unless processing an option
with an argument. however,...
multi-threaded set*id and setrlimit use the internal __synccall
function to work around the kern...
7152a61a3ab16eacd8ecb94b81641d76c78958b0 authored about 10 years ago
per POSIX, the EINTR condition is an optional error for these
functions, not a mandatory one. si...
in the current version of __synccall, the callback is always run, so
failure to handle this case...
996d148bf14b477b07fa3691bffeb930c67b2b62 authored about 10 years ago
this addresses alpine linux issue #3692 and brings the syslog message
length limit in alignment ...
the code being removed was introduced to work around "partial failure"
of multi-threaded set*id(...
opening /dev/tty then using ttyname_r on it does not produce a
canonical terminal name; it simpl...
commit b72cd07f176b876aa51864d93aa8101477b1d732 added support for a
this feature in getopt, but ...
based on patch by Dima Krasner, with minor improvements for code size.
connect can fail if there...
PR_SET_MM_MAP was introduced as a subcommand for PR_SET_MM in
linux v3.18 commit f606b77f1a9e362...
these syscalls are new in linux v3.18, bpf is present on all
supported archs except sh, kexec_fi...
91f15e2d0d7621a3ce7b4ff8f3dbc61119b44cc7 authored about 10 years ago
per the rules for hexadecimal integer constants, the previous
definitions were correctly treated...
based on discussion with and patches by Felix Janda. these changes
started as an effort to facto...
being a nonstandard function, this isn't strictly necessary, but it's
inexpensive and avoids unp...
not only is this semantically more correct; it also reduces code size
slightly by eliminating th...
4b2cb37770e56835b261660535cea77474154ba0 authored about 10 years ago
this is undocumented but possibly expected behavior of GNU
getopt_long, and useful when error me...
some related changes are also made to getopt, and the return value of
getopt_long in the case of...
d3357268791f5279b64665a9a5b5629c962c8a15 authored about 10 years ago
if writing the error message fails, POSIX requires that ferror(stderr)
be set. and as a function...
this shaves off a useless syscall for getting the caller's pid and
brings raise into alignment w...
formally, it seems a sign is only required when the '+' modifier
appears in the format specifier...
the affected code was wrongly counting characters instead of bytes.
2e1ae3b6b9331383ba5eaa7cb47373a8bea073d1 authored about 10 years agosince wint_t is unsigned, WINT_MIN needs to expand to an unsigned zero.
aee9b1526247f74e9b755b50e102b3b4ce2aac1d authored about 10 years ago
it's unclear whether compilers which provide pure imaginary types
might produce a pure imaginary...
this change is not necessary but helps diagnose invalid code. based on
patch by Jens Gustedt.
based on patches by Jens Gustedt. these macros need to be usable in
static initializers, and the...