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

aarch64: add struct _aarch64_ctx to signal.h

The unwind code in libgcc uses this type for unwinding across signal
handlers. On aarch64 the ke...

38bf2d7cc3e5eb47d63882a64c8471699c1e7eeb authored almost 10 years ago
align x32 pthread type sizes to be common with 32-bit archs

previously, commit e7b9887e8b65253087ab0b209dc8dd85c9f09614 aligned
the sizes with the glibc ABI...

673cab5c56f6b6a8afb01c4b5341963ff259e996 authored almost 10 years ago
add aarch64 port

This adds complete aarch64 target support including bigendian subarch.

Some of the long double ...

01ef3dd9c5fa7a56aa370f244dd08e05c73010f5 authored almost 10 years ago
math: add dummy implementations of 128 bit long double functions

This is in preparation for the aarch64 port only to have the long
double math symbols available ...

f4e4632abfa8297db1485e132bb15b9ef6c32a1b authored almost 10 years ago
math: add ld128 exp2l based on the freebsd implementation

Changed the special case handling and bit manipulation to better
match the double version.

53cfe0c61a136c12376a8f32d616de1d68227181 authored almost 10 years ago
copy the dtv pointer to the end of the pthread struct for TLS_ABOVE_TP archs

There are two main abi variants for thread local storage layout:

(1) TLS is above the thread p...

204a69d2d917f413eacb086020b63d6dc6da0672 authored almost 10 years ago
fix regression in pthread_cond_wait with cancellation disabled

due to a logic error in the use of masked cancellation mode,
pthread_cond_wait did not honor PTH...

a46677af1863f3d050f216a43dfdf4818210c266 authored almost 10 years ago
fix FLT_ROUNDS to reflect the current rounding mode

Implemented as a wrapper around fegetround introducing a new function
to the ABI: __flt_rounds. ...

559de8f5f06da9022cbba70e22e14a710eb74513 authored almost 10 years ago
fix over-alignment of TLS, insufficient builtin TLS on 64-bit archs

a conservative estimate of 4*sizeof(size_t) was used as the minimum
alignment for thread-local s...

bd67959f3ad5049c35af0a0e2f8f1a1e60577a49 authored almost 10 years ago
add legacy functions from sysinfo.h duplicating sysconf functionality

2b42c8cb37a3ef115bd04de8637078e43cd72f37 authored almost 10 years ago
fix signed left-shift overflow in pthread_condattr_setpshared

380857bf21bcffbbee2fe8ab52feadf39366d7ec authored almost 10 years ago
add new si_lower and si_upper siginfo_t members

new in linux v3.19 commit ee1b58d36aa1b5a79eaba11f5c3633c88231da83
used to report intel mpx boun...

ad85fcb568c7374901f0122ad695b37a9167c55e authored almost 10 years ago
declare incomplete type struct itimerspec in timerfd.h

normally time.h would provide a definition for this struct, but
depending on the feature test ma...

9c3da8968d5c811452c575b3918fceaf561e5089 authored almost 10 years ago
fix preprocessor error introduced in poll.h in last commit

91a3bd743e91604bde83e9ce1ad3a2e2d4ff0f0f authored almost 10 years ago
fix POLLWRNORM and POLLWRBAND on mips

these macros have the same distinct definition on blackfin, frv, m68k,
mips, sparc and xtensa ke...

f5011c62c3329f15652a60b6b2300d7e3f570977 authored almost 10 years ago
fix x32 pthread type definitions

the previous definitions were copied from x86_64. not only did they
fail to match the ABI sizes;...

e7b9887e8b65253087ab0b209dc8dd85c9f09614 authored almost 10 years ago
remove useless check of bin match in malloc

this re-check idiom seems to have been copied from the alloc_fwd and
alloc_rev functions, which ...

064898cfe2233526e7639c21e780695be5ece257 authored almost 10 years ago
eliminate atomics in syslog setlogmask function

6de071a0be00ec2ff08af3c89c7caaa20f1044d7 authored almost 10 years ago
fix init race that could lead to deadlock in malloc init code

the malloc init code provided its own version of pthread_once type
logic, including the exact sa...

7a81fe3710be0128d29071e76c5acbea3d84277b authored almost 10 years ago
make all objects used with atomic operations volatile

the memory model we use internally for atomics permits plain loads of
values which may be subjec...

56fbaa3bbe73f12af2bfbbcf2adb196e6f9fe264 authored almost 10 years ago
suppress masked cancellation in pthread_join

like close, pthread_join is a resource-deallocation function which is
also a cancellation point....

eb4bd8d8bb5c9f535ee8250edd4efbd3d4f84c5a authored almost 10 years ago
fix namespace issue in pthread_join affecting thrd_join

pthread_testcancel is not in the ISO C reserved namespace and thus
cannot be used here. use the ...

a3de8f7fbc5a2cc838b96e8702363ef7682da5ae authored almost 10 years ago
make aio_suspend a cancellation point and properly handle cancellation

5451d95715e3b4b37a32b54695fd1efa2cf3d9da authored almost 10 years ago
factor cancellation cleanup push/pop out of futex __timedwait function

previously, the __timedwait function was optionally a cancellation
point depending on whether it...

0fc317d83c1167393bf276a8bfbdd9a4e02e8258 authored almost 10 years ago
fix failure of internal futex __timedwait to report ECANCELED

as part of abstracting the futex wait, this function suppresses all
futex error values which cal...

76ca7a5446a8aec2b671a401d5e1878c4704754e authored almost 10 years ago
overhaul optimized x86_64 memset asm

on most cpu models, "rep stosq" has high overhead that makes it
undesirable for small memset siz...

e346ff86c8faee901a7c2d502b5beb983b99f972 authored almost 10 years ago
overhaul optimized i386 memset asm

on most cpu models, "rep stosl" has high overhead that makes it
undesirable for small memset siz...

69858fa93107aa7485b143c54137e745a7b7ad72 authored almost 10 years ago
getloadavg: use sysinfo() instead of /proc/loadavg

Based on a patch by Szabolcs Nagy.

20cbd607759038dca57f84ef7e7b5d44a3088574 authored almost 10 years ago
fix possible isatty false positives and unwanted device state changes

the equivalent checks for newly opened stdio output streams, used to
determine buffering mode, a...

2de85a985654d2c944931267645d9a0686242dfe authored almost 10 years ago
fix breakage in pthread_cond_wait due to typo

due to accidental use of = instead of ==, the error code was always
set to zero in the signaled ...

e487c203db36750388228a2db75f96040cbfae58 authored almost 10 years ago
support alternate backends for the passwd and group dbs

when we fail to find the entry in the commonly accepted files, we
query a server over a Unix do...

34b423d2077a4c799d2089068d3bec91fb800256 authored almost 10 years ago
fix spurious errors in refactored passwd/group code

errno was treated as the error status when the return value of getline
was negative, but this co...

0afef1aa24b784c86ae6121ca39e999824086c7c authored almost 10 years ago
fix crashes in refactored passwd/group code

the wrong condition was used in determining the presence of a result
that needs space/copying fo...

fc5a96c9c8aa186effad7520d5df6b616bbfd29d authored almost 10 years ago
simplify cond var code now that cleanup handler is not needed

d9da1fb8c592469431c764732d09f7756340190e authored almost 10 years ago
fix pthread_cond_wait cancellation race

it's possible that signaling a waiter races with cancellation of that
same waiter. previously, c...

8741ffe625363a553e8f509dc3ca7b071bdbab47 authored almost 10 years ago
add new masked cancellation mode

this is a new extension which is presently intended only for
experimental and internal libc use....

102f6a01e249ce4495f1119ae6d963a2a4a53ce5 authored almost 10 years ago
prepare cancellation syscall asm for possibility of __cancel returning

f409338a9e808a09001669377c608fd2803d808d authored almost 10 years ago
map interruption of close by signal to success rather than EINPROGRESS

commit 82dc1e2e783815e00a90cd3f681436a80d54a314 addressed the
resolution of Austin Group issue 5...

6bea5dc69892cd9ff0c222474e7dd468c29dfa75 authored almost 10 years ago
make pthread_exit responsible for disabling cancellation

this requirement is tucked away in XSH 2.9.5 Thread Cancellation under
the heading Thread Cancel...

36d8e972231c397194e513691d09f7d489de0a62 authored almost 10 years ago
fix type error (arch-dependent) in new aio code

a_store is only valid for int, but ssize_t may be defined as long or
another type. since there i...

fd850de7524d8b62cd1d340417b665ed9427adae authored almost 10 years ago
refactor group file access code

this allows getgrnam and getgrgid to share code with the _r versions
in preparation for alternat...

7c5f0a5212127b70486159af80e24fd96262ec88 authored almost 10 years ago
overhaul aio implementation for correctness

previously, aio operations were not tracked by file descriptor; each
operation was completely in...

4e8a3561652ebcda6a126b3162fc545573889dc4 authored almost 10 years ago
fix bad character checking in wordexp

the character sequence '$((' was incorrectly interpreted as the
opening of arithmetic even withi...

594ffed82f4e6ee7da85e9c5da35e32946ae32c9 authored almost 10 years ago
refactor passwd file access code

this allows getpwnam and getpwuid to share code with the _r versions
in preparation for alternat...

700e08993c3f6a808773d56424aa7e633da13e2e authored almost 10 years ago
x86_64/memset: avoid performing final store twice

The code does a potentially misaligned 8-byte store to fill the tail
of the buffer. Then it fill...

74e334dcd177b585c64ddafa732a3dc9e3f6b5ec authored almost 10 years ago
x86_64/memset: simple optimizations

"and $0xff,%esi" is a six-byte insn (81 e6 ff 00 00 00), can use
4-byte "movzbl %sil,%esi" (40 0...

bf2071eda32528ee8b0bb89544152646684a2cf3 authored almost 10 years ago
make protocol table zero byte separated and add ipv6 protocols

6a5242e4cb2f9c695f613dc312ed5e1bb8008912 authored almost 10 years ago
add syscall numbers for the new execveat syscall

this syscall allows fexecve to be implemented without /proc, it is new
in linux v3.19, added in ...

f54c28cba2707c280f8285c247550358c44b5984 authored almost 10 years ago
add new socket options SO_INCOMING_CPU, SO_ATTACH_BPF, SO_DETACH_BPF

these socket options are new in linux v3.19, introduced in commit
2c8c56e15df3d4c2af3d656e44feb1...

70572dce07a631e2f818b34f5679c57eeebc9779 authored almost 10 years ago
use the internal macro name FUTEX_PRIVATE in __wait

the name was recently added for the setxid/synccall rework,
so use the name now that we have it.

339cc250f6dda06e7a26fcbcc66e3a1bbec2b494 authored almost 10 years ago
add IEEE binary128 long double support to floatscan

just defining the necessary constants:

LD_B1B_MAX is 2^113 - 1 in base 10^9
KMAX is 2048 so t...

f3f29795da461905a5e9f0314dc0d7840bd75c3f authored almost 10 years ago
math: fix fmodl for IEEE binary128

This trivial copy-paste bug went unnoticed due to lack of testing.
No currently supported target...

018f9df4440e1d5640f9d50dc08bee9bbc40b3b6 authored almost 10 years ago
simplify armhf fesetenv

armhf fesetenv implementation did a useless read of the fpscr.

04d522cba6f54dc8c4df9dd963d254de257bf74c authored almost 10 years ago
fix fesetenv(FE_DFL_ENV) on mips

mips fesetenv did not handle FE_DFL_ENV, now fcsr is cleared in that
case.

5fc1487832e16aa2119e735a388d5f36c8c139e2 authored almost 10 years ago
math: fix __fpclassifyl(-0.0) for IEEE binary128

The sign bit was not cleared before checking for 0 so -0.0
was misclassified as FP_SUBNORMAL ins...

3f92f92cb9c448ba82da5ff2cbbea692c7701c0c authored almost 10 years ago
add parenthesis in fma.c to clarify intent and silence warnings

6e76e1540fc58a418494bf5eb832b556f9c5763e authored almost 10 years ago
make getaddrinfo support SOCK_RAW and other socket types

all socket types are accepted at this point, but that may be changed
at a later time if the beha...

c63c98a6067030a25a42703db1209ccbcc74803a authored almost 10 years ago
remove cruft from x86_64 syscall.h

x86_64 syscall.h defined some musl internal syscall names and made
them public. These defines we...

e63833cd43a778f639e4fdf5d86cd5c526cc5db2 authored almost 10 years ago
fix failure of fchmodat to report EOPNOTSUPP in the race path

in the case where a non-symlink file was replaced by a symlink during
the fchmodat operation wit...

61b1d102129990f6e903c6ddcf46c7d79d1a1e99 authored about 10 years ago
fix fd leak race (missing O_CLOEXEC) in fchmodat

2736eb6caa70bb6e909d7d8ebbe145c2071435e0 authored about 10 years ago
make execvp continue PATH search on EACCES rather than issuing an errror

the specification for execvp itself is unclear as to whether
encountering a file that cannot be ...

14a0117117beed9d54d17819d9a9c3d4200c46ed authored about 10 years ago
fix missing memory barrier in cancellation signal handler

in practice this was probably a non-issue, because the necessary
barrier almost certainly exists...

3559f0b894e4369955f8467b94cb8fda537d2f36 authored about 10 years ago
fix typo in x86_64/x32 user_fpregs_struct

mxcs_mask should be mxcr_mask

4758f0565df83beb8f9b24857ec40ca3a40d2281 authored about 10 years ago
make fsync, fdatasync, and msync cancellation points

these are mandatory cancellation points per POSIX, so their omission
was a conformance bug.

0b21a07c783d18051d86b1d6ddc04a8ea716a12f authored about 10 years ago
move MREMAP_MAYMOVE and MREMAP_FIXED out of bits

the definitions are generic for all kernel archs. exposure of these
macros now only occurs on th...

2d67ae923d11d766d9a6cea714fa487b52579f6a authored about 10 years ago
fix missing comma in sh setjmp asm

this typo did not result in an erroneous setjmp with at least binutils
2.22 but fix it for clari...

c7b05bc81732e9471e8f61e2dc48ff590572724e authored about 10 years ago
remove mips-only EINIT and EREMDEV errnos

the errno values are unused by the kernel and the macro definitions were
never exposed by glibc.

02d8770dcfe47c3bea143cb725f93f3b74b6d667 authored about 10 years ago
fix failure of configure to detect gcc due to message translations

based on patch by Vadim Ushakov. in general overriding LC_ALL rather
than specific categories (h...

b553dc4fe68c02bb1ddbb4db906d43124b6be70a authored about 10 years ago
fix erroneous return of partial username matches by getspnam[_r]

when using /etc/shadow (rather than tcb) as its backend, getspnam_r
matched any username startin...

ecb608192a48d3688e1a0a21027bfd968d3301a1 authored about 10 years ago
simplify part of getopt_long

as a result of commit e8e4e56a8ce1f3d7e4a027ff5478f2f8ea70c46b,
the later code path for setting ...

63cac4e29a61487423f63bed9150aa9aec906823 authored about 10 years ago
always set optarg in getopt_long

the standard getopt does not touch optarg unless processing an option
with an argument. however,...

e8e4e56a8ce1f3d7e4a027ff5478f2f8ea70c46b authored about 10 years ago
overhaul __synccall and fix AS-safety and other issues in set*id

multi-threaded set*id and setrlimit use the internal __synccall
function to work around the kern...

78a8ef47c4d92b7680c52a85f80a81e29da86bb9 authored about 10 years ago
add FUTEX_PRIVATE macro to internal futex.h

7152a61a3ab16eacd8ecb94b81641d76c78958b0 authored about 10 years ago
suppress EINTR in sem_wait and sem_timedwait

per POSIX, the EINTR condition is an optional error for these
functions, not a mandatory one. si...

c0ed5a201b2bdb6d1896064bec0020c9973db0a1 authored about 10 years ago
for multithreaded set*id/setrlimit, handle case where callback does not run

in the current version of __synccall, the callback is always run, so
failure to handle this case...

472e8b71f7a90ab23f1499fd721b872541f52de9 authored about 10 years ago
release 1.1.6

996d148bf14b477b07fa3691bffeb930c67b2b62 authored about 10 years ago
increase syslog message limit from 256 to 1024

this addresses alpine linux issue #3692 and brings the syslog message
length limit in alignment ...

3f65494a4cb2544eb16af3fa64a161bd8142f487 authored about 10 years ago
remove rlimit hacks from multi-threaded set*id() code

the code being removed was introduced to work around "partial failure"
of multi-threaded set*id(...

84b5c5479e8eae48c81295b55f4fa8dd342c97a9 authored about 10 years ago
simplify ctermid

opening /dev/tty then using ttyname_r on it does not produce a
canonical terminal name; it simpl...

9772eadba8f8b32a1744c4df5048d70c567f6082 authored about 10 years ago
fix regression in getopt_long support for non-option arguments

commit b72cd07f176b876aa51864d93aa8101477b1d732 added support for a
this feature in getopt, but ...

699d4532f6a8f792271c7f46608e2505ca3afc21 authored about 10 years ago
check for connect failure in syslog log opening

based on patch by Dima Krasner, with minor improvements for code size.
connect can fail if there...

c574321d75f035ff6d2c18dfb7e3f70db60ba7bd authored about 10 years ago
add new prctl command PR_SET_MM_MAP to sys/prctl.h

PR_SET_MM_MAP was introduced as a subcommand for PR_SET_MM in
linux v3.18 commit f606b77f1a9e362...

11ac2a6e811ff0860c7d3b3daf035dc6748fb4d4 authored about 10 years ago
add new syscall numbers for bpf and kexec_file_load

these syscalls are new in linux v3.18, bpf is present on all
supported archs except sh, kexec_fi...

f90fafea3c5f1acd7b9bc8e720b417e2dba1d92d authored about 10 years ago
move wint_t definition to the shared part of alltypes.h.in

91f15e2d0d7621a3ce7b4ff8f3dbc61119b44cc7 authored about 10 years ago
fix signedness of UINT32_MAX and UINT64_MAX at the preprocessor level

per the rules for hexadecimal integer constants, the previous
definitions were correctly treated...

dac4fc49ae3ccb40bae4ef00fb2d93027f4ee9e1 authored about 10 years ago
overhaul forkpty function using new login_tty

based on discussion with and patches by Felix Janda. these changes
started as an effort to facto...

814aae20093879dec36df0302febbafae2a66778 authored about 10 years ago
block pthread cancellation in openpty function

being a nonstandard function, this isn't strictly necessary, but it's
inexpensive and avoids unp...

1227e418eafbbe55e74eee5d2b1e6e53a60102cd authored about 10 years ago
don't write openpty results until success is determined

not only is this semantically more correct; it also reduces code size
slightly by eliminating th...

3b26a32df42092af6d0cdac655e52635b91d36b2 authored about 10 years ago
add login_tty function

4b2cb37770e56835b261660535cea77474154ba0 authored about 10 years ago
set optopt in getopt_long

this is undocumented but possibly expected behavior of GNU
getopt_long, and useful when error me...

0217ed72f986d78b177f1a014e93f2150105bb44 authored about 10 years ago
add error message printing to getopt_long and make related improvements

some related changes are also made to getopt, and the return value of
getopt_long in the case of...

91184c4f16b143107fa9935edebe5d2b20bd70d8 authored about 10 years ago
support translation for getopt error messages

d3357268791f5279b64665a9a5b5629c962c8a15 authored about 10 years ago
fix stderr locking and ferror semantics in getopt message printing

if writing the error message fails, POSIX requires that ferror(stderr)
be set. and as a function...

1d8d86aeb54c0c5439eb07a4bc1b03983fb9d6e8 authored about 10 years ago
use tkill instead of tgkill in implementing raise

this shaves off a useless syscall for getting the caller's pid and
brings raise into alignment w...

7d3512126db7044525cf402255e0a85ac68dc2e9 authored about 10 years ago
don't suppress sign output for NANs in printf

formally, it seems a sign is only required when the '+' modifier
appears in the format specifier...

0f859fc99325bbb25d506b28565e4a7385ffe0e6 authored about 10 years ago
fix return value computation in one code path of wcsnrtombs

the affected code was wrongly counting characters instead of bytes.

2e1ae3b6b9331383ba5eaa7cb47373a8bea073d1 authored about 10 years ago
fix signedness of WINT_MIN expression

since wint_t is unsigned, WINT_MIN needs to expand to an unsigned zero.

aee9b1526247f74e9b755b50e102b3b4ce2aac1d authored about 10 years ago
make the definition of _Complex_I explicitly complex

it's unclear whether compilers which provide pure imaginary types
might produce a pure imaginary...

a9c2294eef0b4d7e7bcf6155ecb46b25703a80eb authored about 10 years ago
make the result of the cimag macro a non-lvalue

this change is not necessary but helps diagnose invalid code. based on
patch by Jens Gustedt.

4075af4318676ebbe5949eb9cee3fec7008de4d7 authored about 10 years ago
fix definition of CMPLX macros in complex.h to work in constant expressions

based on patches by Jens Gustedt. these macros need to be usable in
static initializers, and the...

5ff2a118c64224789b7286830912425e58831b2b authored about 10 years ago