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
mildly tested; may have bugs. the locking should be updated not to use
spinlocks but that's outs...
f753049a50132a23849ef89a8af5ff86ad595c25 authored over 13 years ago
the fcntl syscall can return a negative value when the command is
F_GETOWN, and this is not an e...
2b89e56c94c1ce4369a3c7a17304df17df1fa822 authored over 13 years ago
no idea why these 4 are permuted and the rest are standard/generic
e6d765a8b1278e9e5f507638ccdec9fe40e52364 authored over 13 years ago...and still be valid in #if directives.
73f5ff4e8646a5fddbeae5070a53f05870e51dd1 authored over 13 years ago5e977e8b48c6862767ea0a1255233600957c05db authored over 13 years ago
right now it's questionable whether this change is an improvement or
not, but if we later want t...
this is valid for error-checking mutexes; otherwise it invokes UB and
would be justified in cras...
this simplifies the code paths slightly, but perhaps what's nicer is
that it makes recursive mut...
b3b00d11e87926b553429d341b020a8a070e4ea1 authored over 13 years ago
5a2e18093725c3965486641f0ad0b61a44f7ed68 authored over 13 years ago
a reader unlocking the lock need only wake one waiter (necessarily a
writer, but a writer unlock...
8b98c09f8c6a0c366f06b7e6a4b3555a07e5244d authored over 13 years ago
mildly tested, seems to work
fcaf7065698bce12a444803587421ae88446f6c0 authored over 13 years ago74cc7c69f951ad90d1b56b3dde3fddb3fa9516fe authored over 13 years ago
cd319d73c77a4c6c8996b65f61e3bdc59a47d0c3 authored over 13 years ago
12ace5bf76040e928df1abd57e9b5134ca4647c6 authored over 13 years ago
4b87736998e8d8c0610c3c31b6862c77248a98df authored over 13 years ago
passing null pointer for %s is UB but lots of broken programs do it anyway
5f814682b48c59f07568d349f979eed4cf306703 authored over 13 years ago
there is no need to send a wake when the lock count does not hit zero,
but when it does, all wai...
seeking back can be performed by the caller, but if the caller doesn't
expect it, it will result...
eliminate the sequence number field and instead use the counter as the
futex because of the way ...
i think this works, but it can be simplified. (next step)
95b147967216a057d51a1b970da777486be716e3 authored over 13 years ago
the vm lock only waits for threads in the same process exiting.
actually this fix is not enough,...
f0a8d60d32b7d6a093596abdbb9711e64eff2594 authored over 13 years ago
067bdc2c180885af831f55f971f5eb17d2c9dc27 authored over 13 years ago
it was assuming the result of the condition it was supposed to be
checking for, i.e. that the th...
823813e3f4d7a8d3848e092bcdf975c8b94b6194 authored over 13 years ago
we're not required to check this except for error-checking mutexes,
but it doesn't hurt. the new...
when used with error-checking mutexes, pthread_cond_wait is required
to fail with EPERM if the m...
i set the return value but then never used it... oops!
d8dc1df1c2aa461d094d3cfe97e2cc68dd331e6e authored over 13 years ago5e9e78ecd7ec5178483af8f1130cb6a958982b73 authored over 13 years ago
not sure if this is correct/ideal. it needs further attention.
7e76095180a5d64821e21900b85dbd8829e2d90d authored over 13 years agof135ef3f343b824c5039e3dbbc31b5545fbe7a12 authored over 13 years ago
aef84ca7ec87ed21c2a2d5eecf3b4bbd6cbe3db9 authored over 13 years ago
this implementation is rather heavy-weight, but it's the first
solution i've found that's actual...
mmap returns MAP_FAILED not 0 because some idiot thought the ability
to mmap the null pointer pa...
issue reported by nsz, but it's actually not just pedantic. the
functions can take input of any ...
lock out new waiters during the broadcast. otherwise the wait count
added to the mutex might be ...
due to moving waiters from the cond var to the mutex in bcast, these
waiters upon wakeup would s...
the changes to syscall_ret are mostly no-ops in the generated code,
just cleanup of type issues ...
testing revealed that the old implementation, while correct, was
giving way too many spurious wa...
using swap has a race condition: the waiters must be added to the
mutex waiter count *before* th...
cf940165d4caf132405a3fe3df58b57eb735ac04 authored over 13 years ago
somehow i forgot that normal-type mutexes don't store the owner tid.
09ec0f3aab4df2993f4a2a992529655f6c4f7a70 authored over 13 years ago
this avoids the "stampede effect" where pthread_cond_broadcast would
result in all waiters wakin...
previously, a waiter could miss the 1->0 transition of block if
another thread set block to 1 ag...
casting to int would not be correct because high bits could be lost.
mapping the high bits down ...
1587224ed60aa38b7a26c5eaf692f1f1ab525afd authored over 13 years ago
actually this is just to avoid gcc being stupid and refusing to inline
the function version, eve...
it's amazing none of the conformance tests i've run even bothered to
check whether something so ...
2eff02e4a032323a45541c79967638d8c77d79e4 authored over 13 years ago
c651c473e5b5ba005e476d8ead7954c881950f92 authored over 13 years ago
ee6fc9a0931e881fb00fc9ae307f921c5527e55e authored over 13 years ago
0d4d94efd5dfe9348582c92a2de6923bb66492ac authored over 13 years ago
12d547b262c2c8c4e23d0a62eb59581929c2da89 authored over 13 years ago
if the file descriptor resource limit has been increased past
FD_SETSIZE, this is actually a sec...
81a5577a860b1d320239a84c84266e4d7045f450 authored over 13 years ago
for now this is just a tiny optimization, but later if we support
cancellation from __stdio_read...
319df20bc9c20231d8efd810780c012cbdcfb109 authored over 13 years ago
4a08c85111835c00a4c007aa3a198d9474932a97 authored over 13 years ago
the arm syscall abi requires 64-bit arguments to be aligned on an even
register boundary. these ...
d30c331d1f3262223a99408ff2d49641a46ce409 authored over 13 years ago
7dd86ec16852cf189e88fb2829caee4e114087e7 authored over 13 years ago
fd9e01e92a5d665e5b6c3221cd67970038cf7a6c authored over 13 years ago
d23a543d8acfedb7c0284888d72c4aa347b8c46e authored over 13 years ago
2318207adcad74283881ffcefbad92797a2495aa authored over 13 years ago
246e15c0dc4f2e0120f7e54445d621bd3b1afbd8 authored over 13 years ago
this is a case of poorly written man pages not matching the actual
implementation, and why i hat...
this bug was introduced in a recent patch. the problem we're working
around is that broken GNU s...
at the same time, make struct statfs match the traditional definition
and make it more useful, e...
8c07f6eac843c2acb217083d48c4cef95f2b891c authored over 13 years ago
f780ac5baf4f204b3980cd07655e1462ca8455c3 authored over 13 years ago
really wchar_t should never vary, but the ARM EABI defines it as an
unsigned 32-bit int instead ...
this was the cause of crashes in printf when attempting to print
floating point values.
53431b091b22a663a428c67f8c617740f5882706 authored over 13 years ago
this port assumes eabi calling conventions, eabi linux syscall
convention, and presence of the k...
it does not work, but some configure scripts will falsely detect
support then generate programs ...
b0c088ee550634e07a6289a8ac98cb8009f81c66 authored over 13 years ago
ca8373dfcf03c808a32b3846f95d802fefc4c2e8 authored over 13 years ago
c8175666f22952d1b0ea280b217d8896f0c24bec authored over 13 years ago
several things are changed. first, i have removed the old __uniclone
function signature and repl...
455fc98389fac09d8cf7ec4cde310a5b7ca47485 authored over 13 years ago
eventually we may have a working "generic" implementation for archs
that don't need anything spe...
471c6067d9a0665809a125260a7dede8ee357f98 authored over 13 years ago
2b71a4d1dfb0487cc2558df646a262ffb8261585 authored over 13 years ago
813d37839b97960d38f10ea93d9c4a391c1c91a5 authored over 13 years ago
5b91c2233583ed2a9512269223221186d9a79fc6 authored over 13 years ago
i blame this one on posix for using hideous const-qualified double
pointers which are unusable w...
d431d4546e5f028646592533d2fa2a53284bc2e4 authored over 13 years ago
71f7a3c2ce7377a6c77f46524002505b9454861b authored over 13 years ago
d1d141c5f128d2ea6efa0e5aad25c3f8af41cadc authored over 13 years ago
a94925740447b509c3639c9f8c6ca2d75bbb07ab authored over 13 years ago
7c131a310875fe4255b049b7e7394074d4104311 authored over 13 years ago
previous fix was backwards and propagated the wrong type rather than
the right one...
13cd969552409e05c941829f2aabb15e2f4d9a1f authored over 13 years ago
5e9deea0039204f3b29edb1ffe0e30325d456f84 authored over 13 years ago
fd408d27a079ad4ef1b283a0c77d781789c28763 authored over 13 years ago
0f1ef81462f3533c52a0b030b4bfe87f7f200dcc authored over 13 years ago