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
801b311a5b6f00a9490ae9933439d1e62451fbd3 authored over 13 years ago
28af39fe427ffec8b836f4f30450ffc30b03e5c4 authored over 13 years ago
fb80e047cc7d0b900445ca6ce38f10199dafd98b authored over 13 years ago
actually these are just weak aliases for the normal locking versions
right now, and they will pr...
programs that use this tend to horribly botch international text
support, so it's questionable w...
d4045a1683d402dd4e53b3ae388d8794d7238c7e authored over 13 years ago
on spurious wakeups/returns from __timedwait, pthread_join would
"succeed" and unmap the thread'...
this seeme to be the bug that prevented enabling of private futex
support. i'm going to hold off...
some features are not yet supported, and only minimal testing has been
performed. should be cons...
96cea94ad258be262ecf15b33d13cf775e59720d authored over 13 years ago
5989dde3459b2ccd304f89e3e875136e5608b8ff authored over 13 years ago
null termination is only added when current size grows.
in update modes, null termination is not...
read should not be allowed past "current size".
append mode should write at "current size", not ...
this is not strictly required by the standard, but without it, there
is a race condition where c...
22e4542348352235614b57948025bdd0cc30dc32 authored over 13 years ago
disallow seek past end of buffer (per posix)
fix position accounting to include data buffered fo...
the addition is safe and cannot overflow because both operands are
positive when considered as s...
c88f36f55623124d09f48631974ca38aaec00057 authored over 13 years ago
the expression -off is not safe in case off is the most-negative
value. instead apply - to base ...
testing so far has been minimal. may need further work.
d4fa6f0e08ff5a292d2aeeeeda80670a1a082cae authored over 13 years ago1e6937643577e1fb5ea8696c2f583e20bcd29279 authored over 13 years ago
not heavily tested, but it seems to be correct, including the odd
behavior that seeking is in te...
the return address was being truncated to 32 bits, preventing the
dlsym code from determining wh...
this is the first attempt, and may have bugs. only minimal testing has
been performed.
adb7093caae451348371d2299f6113b788439602 authored over 13 years ago
1 is too small if int is 32-bit but unsigned long is 64-bit. be
explicit and use 1UL.
its existence doesn't hurt anything, and dynamic-linked binaries using
previous versions of musl...
gcc generates extremely bad code (7 byte immediate mov) for the old
null pointer write approach....
this behavior (opening fds 0-2 for a suid program) is explicitly
allowed (but not required) by P...
c0f344160d22d889460573d003cf349626a38184 authored over 13 years ago
3e082df3cc4c287f659e9067b2b23c7db0855695 authored over 13 years ago
it's missing at least:
- derived fields
- week numbers
- short year (without century) support
- ...
this does not change behavior, but the idea is to avoid letting other
code build up between thes...
a045883365ccb404a63b7c56a42daf0851e579fa authored over 13 years ago
the asm wrapper is needed to get the return address without
compiler-specific extensions.
2719cc86285d85df42f13ba0ae5b07b262c39686 authored over 13 years ago
a valid mmapped block will have an even (actually aligned) "extra"
field, whereas a freed chunk ...
6cb277d75e07557dd8442202722d280c1bf93c08 authored over 13 years ago
no sense bloating apps with a function call for an equality comparison...
9205e486091c3901d0e5aa9a0384dc07dae6114d authored over 13 years agoef9dd035344de750ed9420bd3e4bc5c2b7475dba authored over 13 years ago
it previously was returning the pseudo-monotonic-realtime clock
returned by times() rather than ...
this is a "nonstandard" function that was "rejected" by POSIX, but
nonetheless had its behavior ...
fix up clone signature to match the actual behavior. the new
__syncall_wait function allows a __...
due to the barrier, it's safe just to block signals in the new thread,
rather than blocking and ...
8b625e45ff27ae6604ced1039d6c28293b60380a authored over 13 years ago
if a timer thread leaves signals unblocked, any future attempt by the
main thread to prevent the...
140778582487fb082716eec74324d7b16beb2daf authored over 13 years ago
this works around pcc's lack of working support for weak references,
and in principle is nice be...
the new absolute-time-based wait kernelside was hard to get right and
basically just code duplic...
b2b95a58b4326c8a8aa87fdf6e8b0f6421dbaf99 authored over 13 years ago
normally we allow cancellation to be acted upon when a syscall fails
with EINTR, since there is ...
if gcc decided to move this across a conditional that checks validity
of the thread register, an...
357876052b125dcd74882f61afec19d8f519074c authored over 13 years ago
98acf04fc00cbded6169056f2cd541d31725c091 authored over 13 years ago
if saved, signal mask would not be restored unless some low signals
were masked. if not saved, s...
cleanup push and pop are also no-ops if pthread_exit is not reachable.
this can make a big diffe...
56385dd5feb4292183c48f62355e1ce4d796957e authored over 13 years ago
previously, pthread_cleanup_push/pop were pulling in all of
pthread_create due to dependency on ...
fc0ecd35d8e0041c81bbe08c10c7fcb946da85e0 authored over 13 years ago
like mutexes and semaphores, rwlocks suffered from a race condition
where the unlock operation c...
it's unclear whether EINVAL or ENOSYS is used when the operation is
not supported, so check for ...
4f5ba9211e2b8e176ff9dfee3bdb0453cbc4d59b authored over 13 years ago
futex returns EINVAL, not ENOSYS, when op is not supported.
unfortunately this looks just like E...
this dec used to be performed by the cancellation handler, which was
called when popped.
new features:
- FUTEX_WAIT_BITSET op will be used for timed waits if available. this
saves a ...
this change is needed to fix a race condition and ensure that it's
possible to unlock and destro...
sigaddset was not accepting SIGCANCEL as a valid signal number.
344ea148852ed02f280cb92f8fc1611529d60448 authored over 13 years ago
the race condition these changes address is described in glibc bug
report number 12674:
http://...
88c4e720317845a8e01aee03f142ba82674cd23d authored over 13 years agoi had missed the fact that a couple values were unassigned...
88798393cab009ce78fe498051072db71ba9d035 authored over 13 years agoper POSIX and RFC 3493:
If the specified address family is AF_INET, AF_INET6, or AF_UNSPEC,
the...
e95b0a9d1077b3d20d1b6efebe5135eb99a8b7ef authored over 13 years ago
this is necessary to avoid build errors if feature test macros are not
properly defined when inc...
this race is fundamentally due to linux's bogus requirement that
userspace, rather than kernelsp...
it's nicer for the function that doesn't use errno to be independent,
and have the other one cal...
setrlimit is supposed to be per-process, not per-thread, but again
linux gets it wrong. work aro...
previously, stdio used spinlocks, which would be unacceptable if we
ever add support for thread ...
7683fceedebd98dda19b1a379b92406b64ce7f92 authored over 13 years ago
7dd60b80f965af451f952b9f45bd9b6aec0fae74 authored over 13 years ago
afade2356ea148e715307be8f7334b790282341e authored over 13 years ago
changing credentials in a multi-threaded program is extremely
difficult on linux because it requ...
aed707f679cce80afd929f0efaf080f1e8481330 authored over 13 years ago
this helps some tiny programs be even more tiny, and barly increases
code size even if both are ...
thanks to mikachu
per POSIX:
The setenv() function shall fail if:
[EINVAL] The name argument ...
649af9f73a84aa45742324d44384a873c8709915 authored over 13 years agoe01ac67599dea1fd78a1bd1a0339a1da07dc9578 authored over 13 years ago
dd92a09ecac74760823b047c074e4b21a8cb531f authored over 13 years ago
427173b9325d604d30650c16f1774942130aec52 authored over 13 years ago
e91c375fd027a485bd7415afbaf059d429e11e11 authored over 13 years ago
6ab444d97a00fd8d04264cefef0291d3c7b5b701 authored over 13 years ago
f7adc39e3793114e989f0a830af966230cd2c83d authored over 13 years ago
instead of creating temp dso objects on the stack and moving them to
the heap if dlopen/dlsym ar...
these changes also make it so clock_gettime(CLOCK_REALTIME, &ts) works
even on pre-2.6 kernels, ...
we cannot report failure after forking, so the idea is to ensure prior
to fork that fd 0,1,2 exi...
-1, not 0, indicates failure
d40e344f7b311980dfe3c165d8cbecfe04c12bd2 authored over 13 years agosome program was undefining AF_NETLINK and thereby breaking AF_ROUTE...
63d447e2a3bb7faf69e0befb123e6ffff0ce47ea authored over 13 years agothis resolves an issue reported by Vasiliy Kulikov
fa845669ce03c26c069fc34e7377b47fac23edd8 authored over 13 years ago4ec07e1f60128cdac63bd98e7091240d6e5d888c authored over 13 years ago
fread was calling f->read without checking that the file was in
reading mode. this could:
1. cra...
1. my interpretation of subject sequence definition was wrong. adjust
parser to conform to the s...
stopping without letting the parser see a stop character prevented
getting a result. so treat al...
this fixes a number of bugs in integer parsing due to lazy haphazard
wrapping, as well as some m...