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

0.8.0 release

801b311a5b6f00a9490ae9933439d1e62451fbd3 authored over 13 years ago
remove some stray trailing space characters

28af39fe427ffec8b836f4f30450ffc30b03e5c4 authored over 13 years ago
implement gnu sigisemptyset

fb80e047cc7d0b900445ca6ce38f10199dafd98b authored over 13 years ago
add prototypes for GNU *_unlocked stdio functions

actually these are just weak aliases for the normal locking versions
right now, and they will pr...

ce17ea6f2cae0c0c1c14dac5c7c7330f2503d069 authored over 13 years ago
add dummied strverscmp (obnoxious GNU function)

programs that use this tend to horribly botch international text
support, so it's questionable w...

a6540174be064806b6eb4dc6abff48a9b4facfdd authored over 13 years ago
declare alloca in stdlib.h when _GNU_SOURCE is defined

d4045a1683d402dd4e53b3ae388d8794d7238c7e authored over 13 years ago
fix serious bug in pthread_join

on spurious wakeups/returns from __timedwait, pthread_join would
"succeed" and unmap the thread'...

8fe5fa56eeade4fc19c5401861c179c2fdfeaf3d authored over 13 years ago
fix pthread_join wait call: thread termination tid futex is not private

this seeme to be the bug that prevented enabling of private futex
support. i'm going to hold off...

eb351a9e633e5893f0c3bb48808c3ed0280585b5 authored over 13 years ago
implement POSIX asynchronous io

some features are not yet supported, and only minimal testing has been
performed. should be cons...

b4de6f93aed733b8fc8d103e5ced69ebe7d659e6 authored over 13 years ago
fix incorrect overflow errors on strtoul, etc.

96cea94ad258be262ecf15b33d13cf775e59720d authored over 13 years ago
strptime: fix use of uninitialized dest field in converting integer

5989dde3459b2ccd304f89e3e875136e5608b8ff authored over 13 years ago
more fmemopen null termination fixes

null termination is only added when current size grows.
in update modes, null termination is not...

d2e061a2bd3f7674cfef2e2217e0695419041b5e authored over 13 years ago
fix some fmemopen behaviors

read should not be allowed past "current size".
append mode should write at "current size", not ...

e72ee5786b1f328da131b87388333c2e3a09b7b3 authored over 13 years ago
handle pending cancellation when enabling async cancellation

this is not strictly required by the standard, but without it, there
is a race condition where c...

a7778dae226fbae335383bc92b6cdfccc5ea9f2e authored over 13 years ago
fmemopen: fix eof handling, hopefully right this time

22e4542348352235614b57948025bdd0cc30dc32 authored over 13 years ago
fmemopen fixes

disallow seek past end of buffer (per posix)
fix position accounting to include data buffered fo...

f81279ff583ef81bc88a46dd1d0140fb6e0ed222 authored over 13 years ago
memstreams: fix incorrect handling of file pos > current size

the addition is safe and cannot overflow because both operands are
positive when considered as s...

7ee3dcb3c603b20fcd4547ffb00e11701c6d1cf4 authored over 13 years ago
optimize seek function for memory streams

c88f36f55623124d09f48631974ca38aaec00057 authored over 13 years ago
fix twos complement overflow bug in mem streams boundary check

the expression -off is not safe in case off is the most-negative
value. instead apply - to base ...

32d67e938e8da0f37c59247acee8b10eaf9a113c authored over 13 years ago
implement fmemopen

testing so far has been minimal. may need further work.

d4fa6f0e08ff5a292d2aeeeeda80670a1a082cae authored over 13 years ago
fix some length calculations in memory streams

1e6937643577e1fb5ea8696c2f583e20bcd29279 authored over 13 years ago
implement open_wmemstream

not heavily tested, but it seems to be correct, including the odd
behavior that seeking is in te...

1461e027579c16a6bd95a264d9a1db75a4c3fa74 authored over 13 years ago
fix RTLD_NEXT on x86_64

the return address was being truncated to 32 bits, preventing the
dlsym code from determining wh...

ad70ba774fe4fda8379b59b2b353cbd451d693cc authored over 13 years ago
implement open_memstream

this is the first attempt, and may have bugs. only minimal testing has
been performed.

b158b32a44d56ef20407d4285b58180447ffff1f authored over 13 years ago
fix missing prototypes/wrong signature for psiginfo, psignal

adb7093caae451348371d2299f6113b788439602 authored over 13 years ago
fix broken FD_* macros on 64-bit targets

1 is too small if int is 32-bit but unsigned long is 64-bit. be
explicit and use 1UL.

1f5ff26cd788d29c77e322e7584da46466723572 authored over 13 years ago
bring back ___environ symbol (3 underscores)

its existence doesn't hurt anything, and dynamic-linked binaries using
previous versions of musl...

291666a14a41fe46c1e302585de97b399ab631e7 authored over 13 years ago
use new a_crash() asm to optimize double-free handler.

gcc generates extremely bad code (7 byte immediate mov) for the old
null pointer write approach....

1c8bead345eca58ddc5177a121142b527937adee authored over 13 years ago
security hardening: ensure suid programs have valid stdin/out/err

this behavior (opening fds 0-2 for a suid program) is explicitly
allowed (but not required) by P...

df0b5a49406763aa4719dfad561a5de8924ecd59 authored over 13 years ago
in pathconf, -1, not 0, means unsupported.. syncio presumably works, too.

c0f344160d22d889460573d003cf349626a38184 authored over 13 years ago
fix bogus pathconf result for file size bits

3e082df3cc4c287f659e9067b2b23c7db0855695 authored over 13 years ago
partially working strptime

it's missing at least:
- derived fields
- week numbers
- short year (without century) support
- ...

47a8816ded18284d924387c918186935d2495c01 authored over 13 years ago
ldso: move the suid/secure check code closer to env/auxv processing

this does not change behavior, but the idea is to avoid letting other
code build up between thes...

cf8506ad94caa91fc1cd44b9134494dd6ecd6caf authored over 13 years ago
honor AT_SECURE aux vector flag

a045883365ccb404a63b7c56a42daf0851e579fa authored over 13 years ago
RTLD_NEXT support

the asm wrapper is needed to get the return address without
compiler-specific extensions.

623753ad64a3625b010c10c00c45262d2eec2495 authored over 13 years ago
LD_PRELOAD support

2719cc86285d85df42f13ba0ae5b07b262c39686 authored over 13 years ago
simplify and improve double-free check

a valid mmapped block will have an even (actually aligned) "extra"
field, whereas a freed chunk ...

ce7c6341d38ecd3af4d1e01032e9ea8b4078aa97 authored over 13 years ago
typo in macro definitions for x86_64

6cb277d75e07557dd8442202722d280c1bf93c08 authored over 13 years ago
macro for pthread_equal

no sense bloating apps with a function call for an equality comparison...

9205e486091c3901d0e5aa9a0384dc07dae6114d authored over 13 years ago
fix missing include in last commit

ef9dd035344de750ed9420bd3e4bc5c2b7475dba authored over 13 years ago
fix clock() function

it previously was returning the pseudo-monotonic-realtime clock
returned by times() rather than ...

ad5759821ced59bbb70eb36d396df2a787141089 authored over 13 years ago
implement forkall

this is a "nonstandard" function that was "rejected" by POSIX, but
nonetheless had its behavior ...

4054a135fc0e6c1b7c33f688dcddecee0b2b22d2 authored over 13 years ago
pthread and synccall cleanup, new __synccall_wait op

fix up clone signature to match the actual behavior. the new
__syncall_wait function allows a __...

407d933052c310ebc5541dae2ecd8c4bd8f55fb9 authored over 13 years ago
more efficient signal blocking for timer threads

due to the barrier, it's safe just to block signals in the new thread,
rather than blocking and ...

b1a7102d832220066e7352f40e5744da932f5a28 authored over 13 years ago
normal exit from timer thread should run dtors, restore cancel state

8b625e45ff27ae6604ced1039d6c28293b60380a authored over 13 years ago
block signals in timer threads

if a timer thread leaves signals unblocked, any future attempt by the
main thread to prevent the...

c5168071738467fb67e932976e56f364291cca60 authored over 13 years ago
condition variable signal/bcast need not wake unless there are waiters

140778582487fb082716eec74324d7b16beb2daf authored over 13 years ago
use weak aliase rather than weak reference for vdso clock_gettime

this works around pcc's lack of working support for weak references,
and in principle is nice be...

cdfb725ca3e20e14c64ca8695496e430b89b3b2c authored over 13 years ago
simplify unified timed wait code, drop support for newer method

the new absolute-time-based wait kernelside was hard to get right and
basically just code duplic...

b3c08a16c0a085e8de01cdc9de106aaa332d27d5 authored over 13 years ago
add fast path for normal mutexes back to pthread_mutex_lock

b2b95a58b4326c8a8aa87fdf6e8b0f6421dbaf99 authored over 13 years ago
close should not be cancellable after "failing" with EINTR

normally we allow cancellation to be acted upon when a syscall fails
with EINTR, since there is ...

188ebf51b4ef58aa0ce0a3a09ed1756d6db2e2dd authored over 13 years ago
ensure the compiler does not move around thread-register-based reads

if gcc decided to move this across a conditional that checks validity
of the thread register, an...

8426a99048261b998a27557cf34f81626ffe9f12 authored over 13 years ago
simplify multi-threaded errno, eliminate useless function pointer

357876052b125dcd74882f61afec19d8f519074c authored over 13 years ago
use weak aliases rather than function pointers to simplify some code

98acf04fc00cbded6169056f2cd541d31725c091 authored over 13 years ago
fix off-by-one bug in siglongjmp that caused unpredictable behavior

if saved, signal mask would not be restored unless some low signals
were masked. if not saved, s...

338b663ddb64ecf8a62ad0d1020a29587e0ca81b authored over 13 years ago
further debloat cancellation handlers

cleanup push and pop are also no-ops if pthread_exit is not reachable.
this can make a big diffe...

5f37fc132a8f41994f37b6712feb2d4fd34c2be0 authored over 13 years ago
missed detail in cancellation bloat fix

56385dd5feb4292183c48f62355e1ce4d796957e authored over 13 years ago
fix static linking dependency bloat with cancellation

previously, pthread_cleanup_push/pop were pulling in all of
pthread_create due to dependency on ...

730bee725a770b543181424b52203dd1634ab5d1 authored over 13 years ago
implement if_nameindex and if_freenameindex

fc0ecd35d8e0041c81bbe08c10c7fcb946da85e0 authored over 13 years ago
overhaul rwlocks to address several issues

like mutexes and semaphores, rwlocks suffered from a race condition
where the unlock operation c...

50304f2eefb4c79ceaf4605203f3825a35d831c0 authored over 13 years ago
timedwait: play it safe for now

it's unclear whether EINVAL or ENOSYS is used when the operation is
not supported, so check for ...

8aeee8db21858becb45a8e9f6b5bc23109638bcb authored over 13 years ago
fix stubbed-out reboot call

4f5ba9211e2b8e176ff9dfee3bdb0453cbc4d59b authored over 13 years ago
correctly handle old kernels without FUTEX_WAIT_BITSET

futex returns EINVAL, not ENOSYS, when op is not supported.
unfortunately this looks just like E...

4717bfec708d264111f70f37850ffc09238c4bd5 authored over 13 years ago
fix sem_timedwait bug introduced in timedwait unification

this dec used to be performed by the cancellation handler, which was
called when popped.

bdd893377fe65519fae90948cd8f3c635757eaba authored over 13 years ago
unify and overhaul timed futex waits

new features:

- FUTEX_WAIT_BITSET op will be used for timed waits if available. this
saves a ...

ec381af90208a5675183202cf05078eac208edfb authored over 13 years ago
avoid accessing mutex memory after atomic unlock

this change is needed to fix a race condition and ensure that it's
possible to unlock and destro...

c68de0be2fb649f91b31080224fb6e48084eaaee authored over 13 years ago
fix breakage in cancellation due to signal functions overhaul

sigaddset was not accepting SIGCANCEL as a valid signal number.

344ea148852ed02f280cb92f8fc1611529d60448 authored over 13 years ago
overhaul posix semaphores to fix destructability race

the race condition these changes address is described in glibc bug
report number 12674:

http://...

88c4e720317845a8e01aee03f142ba82674cd23d authored over 13 years ago
fix wrong messages in gai_strerror

i had missed the fact that a couple values were unassigned...

88798393cab009ce78fe498051072db71ba9d035 authored over 13 years ago
port numbers should always be interpreted as decimal

per POSIX and RFC 3493:

If the specified address family is AF_INET, AF_INET6, or AF_UNSPEC,
the...

f4e8e64b82a85158d9de884e1765474c0c317d19 authored over 13 years ago
fix crash in dns code with new stdio locking code

e95b0a9d1077b3d20d1b6efebe5135eb99a8b7ef authored over 13 years ago
consistency: use struct __ucontext instead of ucontext_t in prototypes

this is necessary to avoid build errors if feature test macros are not
properly defined when inc...

acfd06df17fd3940e4602af4b9132f61a6a3eb7f authored over 13 years ago
fix race condition in sigqueue

this race is fundamentally due to linux's bogus requirement that
userspace, rather than kernelsp...

07827d1a82fb33262f686eda959857f0d28cd8fa authored over 13 years ago
clean up pthread_sigmask/sigprocmask dependency order

it's nicer for the function that doesn't use errno to be independent,
and have the other one cal...

ad5881842eaa6a04fcb35b822b0a046a3f7e73a2 authored over 13 years ago
fix some bugs in setxid and update setrlimit to use __synccall

setrlimit is supposed to be per-process, not per-thread, but again
linux gets it wrong. work aro...

544ee752cd38febfa3aa3798b4dfb6fabd13846b authored over 13 years ago
add proper fuxed-based locking for stdio

previously, stdio used spinlocks, which would be unacceptable if we
ever add support for thread ...

dba68bf98fc708cea4c478278c889fc7ad802b00 authored over 13 years ago
eliminate dependence of perror on printf

7683fceedebd98dda19b1a379b92406b64ce7f92 authored over 13 years ago
fix bug in synccall with no threads: lock was taken but never released

7dd60b80f965af451f952b9f45bd9b6aec0fae74 authored over 13 years ago
add setxid.c for new set*id() framework. missed in last commit.

afade2356ea148e715307be8f7334b790282341e authored over 13 years ago
new attempt at making set*id() safe and robust

changing credentials in a multi-threaded program is extremely
difficult on linux because it requ...

acb04806628990ad2430e04261dd20f23babde5e authored over 13 years ago
remove ugly prng from mk*temp and just re-poll time on retry

aed707f679cce80afd929f0efaf080f1e8481330 authored over 13 years ago
eliminate mk*temp dependency on snprintf

this helps some tiny programs be even more tiny, and barly increases
code size even if both are ...

bbdcc403cae440c5f965f0f4c0de1f2d7fd256a7 authored over 13 years ago
fix for setenv bogus var argument handling

thanks to mikachu

per POSIX:

The setenv() function shall fail if:

[EINVAL] The name argument ...

649af9f73a84aa45742324d44384a873c8709915 authored over 13 years ago
when resolving symbols with only weak defs, use first def, not last def

e01ac67599dea1fd78a1bd1a0339a1da07dc9578 authored over 13 years ago
comment non-obvious de bruijn sequence code in int parser

dd92a09ecac74760823b047c074e4b21a8cb531f authored over 13 years ago
fix resolution of weak symbols (hopefully right now) and vdso

427173b9325d604d30650c16f1774942130aec52 authored over 13 years ago
workaround for gcc's optimizer breaking dynamic symbol resolution

e91c375fd027a485bd7415afbaf059d429e11e11 authored over 13 years ago
load vdso, if present, into the dso list

6ab444d97a00fd8d04264cefef0291d3c7b5b701 authored over 13 years ago
const correctness on function pointer

f7adc39e3793114e989f0a830af966230cd2c83d authored over 13 years ago
simplify dynamic linker startup

instead of creating temp dso objects on the stack and moving them to
the heap if dlopen/dlsym ar...

a53de812d258a7b0be44ce5dfc96e0f8ce137817 authored over 13 years ago
some preliminaries for vdso clock support

these changes also make it so clock_gettime(CLOCK_REALTIME, &ts) works
even on pre-2.6 kernels, ...

e3eb49321c85e43fcc6842f3f57ee097b32555e4 authored over 13 years ago
check for fd exhaustion in forkpty

we cannot report failure after forking, so the idea is to ensure prior
to fork that fd 0,1,2 exi...

c0fe5b9da9f98b83262717c0090817f1fbb3d8a0 authored over 13 years ago
incorrect check for open failure in openpty function

-1, not 0, indicates failure

d40e344f7b311980dfe3c165d8cbecfe04c12bd2 authored over 13 years ago
socket headers macro adjustment - workaround for buggy programs

some program was undefining AF_NETLINK and thereby breaking AF_ROUTE...

63d447e2a3bb7faf69e0befb123e6ffff0ce47ea authored over 13 years ago
fix errno value when fdopendir is given an invalid file descriptor

this resolves an issue reported by Vasiliy Kulikov

fa845669ce03c26c069fc34e7377b47fac23edd8 authored over 13 years ago
ensure in fork that child gets its own new robust mutex list

4ec07e1f60128cdac63bd98e7091240d6e5d888c authored over 13 years ago
fix logic error in fread

fread was calling f->read without checking that the file was in
reading mode. this could:
1. cra...

94a0171d807dc94302d6505041fc58879c27f3bd authored over 13 years ago
fix various bugs in new integer parser framework

1. my interpretation of subject sequence definition was wrong. adjust
parser to conform to the s...

47d027ee1a44829819c345287623fe75374893ab authored over 13 years ago
fix wcsto[iu]max with high characters

stopping without letting the parser see a stop character prevented
getting a result. so treat al...

d3fd192523db544e6005051f224a2d7bafabedd9 authored over 13 years ago
new restartable integer parsing framework.

this fixes a number of bugs in integer parsing due to lazy haphazard
wrapping, as well as some m...

ecc9c5fcfa4831b290cc1a63c0346cbb0c1fcf42 authored over 13 years ago