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
fd80cfa00b34ec81b3049b98c66f6a45301ca6c4 authored almost 14 years ago
this could cause problems if the application uses dup2(fd,fileno(f))
to redirect, and the old fd...
9a909fcd915c65628931dcf6e7b34f261e39e3a3 authored almost 14 years ago
d1c24ac4ec721ea49c15b277eaebed30f8df1e4c authored almost 14 years ago
if init_malloc returns positive (successful first init), malloc will
retry getting a chunk from ...
we want to keep atomically updated fields (locks and thread count) and
really anything writable ...
4ae5e811f8d291a0df1418e1aae583161c142952 authored almost 14 years ago
this simplifies code and removes a failure case
6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8 authored almost 14 years ago5243e5f1606a9c6fcf01414ed5561616588bc0b9 authored almost 14 years ago
3bb00f45799ae6df48c2a00496ee57b42f7d2621 authored almost 14 years ago
3df3d4f5127a15c1237006d22f948b430f9dbe7e authored almost 14 years ago
c1f15004337f855eb681098a4f3fdc77f105577d authored almost 14 years ago
78eb0879cd031be62a6905bcf5de0db4b7cf30cf authored almost 14 years ago
ded6cb5f719464649bcb61624d52327ae444bfca authored almost 14 years ago
calling this function on an uninitialized key value is UB, so there is
no need to check that the...
c9806fc2f9b68be8942740da508eaaf0695d020e authored almost 14 years ago
a5323c57686340d3a8a6b0d6b3e6faab2a22ce8d authored almost 14 years ago
instead of allocating a userspace structure for signal-based timers,
simply use the kernel timer...
the major idea of this patch is not to depend on having the timer
pointer delivered to the signa...
unlocking an unlocked mutex is not UB for robust or error-checking
mutexes, so we must avoid cal...
why does this affect behavior? well, the linker seems to traverse
archive files starting from it...
this roughly halves the cost of pthread_mutex_unlock, at least for
non-robust, normal-type mutex...
cycle-level benchmark on atom cpu showed typical pthread_mutex_lock
call dropping from ~120 cycl...
this allows small programs which only create times, but never delete
them, to use simple_malloc ...
1c1aa32eea467b2ed43b457b5528713933b32e95 authored almost 14 years ago
8524d6536c7bcb893115c0c48982c7311906c1db authored almost 14 years ago
this implementation is superior to the glibc/nptl implementation, in
that it gives true realtime...
- there is no longer any risk of spoofing cancellation requests, since
the cancel flag is set ...
70c31c7bd779400d2eb56dcb4075bb37227081db authored almost 14 years ago
8250742b90b8b54e642fa9201bf0cf8b7c27bbb8 authored almost 14 years ago
a88edbec15abe3c8e08d5065d8bea399898e757c authored almost 14 years ago
507a9fa6ff9948eb7d858467b7be2cb1dcf15d03 authored almost 14 years ago
9646e4d024c05332c9653419abd6c41fdd48a33b authored almost 14 years ago
0b240ccf523b9af23dd1efa78274f397fcc90cdd authored almost 14 years ago
4106cdcd2de34bf3b9839e042344d92eae887ecb authored almost 14 years ago
this mainly just caused bloat, but could corrupt errno if a 0-arg
syscall ever failed.
actually this trick also seems to have made the uncontended case slower.
117581ca69ec2a9c341390eed353646b47a512df authored almost 14 years agoef839c73d7ad51249550675defdcb24349e6ffd0 authored almost 14 years ago
83b6c9e052ed8c813c03a5517943b61caef6b065 authored almost 14 years ago
05b694028e0537954ea2d5e69774e0c24bf9ab47 authored almost 14 years ago
the biggest change in this commit is that stdio now uses readv to fill
the caller's buffer and t...
glibc made the ridiculous choice to use pass-by-register calling
convention for these functions,...
92b52b70e8c0786c95cb73a691e1f6e89a73be46 authored almost 14 years ago
sadly the C language does not specify any such implicit conversion, so
this is not a matter of j...
a37452430f93700aeb122d693959ad79d8e43ada authored almost 14 years ago
d8dc2faf1033e134e3a8f39bdf15c065f4d234be authored almost 14 years ago
b8b85a42729dc96e43d51848823fbe28ad92b5c0 authored almost 14 years ago
c322fe4e1a9bcc20f7a2ded1ac0e1674ea282bc0 authored almost 14 years ago
8ae2fa65636b732e04e19b2521edc335867ba53b authored almost 14 years ago
this commit addresses two issues:
1. a race condition, whereby a cancellation request occurring...
b470030f839a375e5030ec9d44903ef7581c15a2 authored almost 14 years ago095820016689dfdc9141f477a86de22054c86078 authored almost 14 years ago
aa398f56fa398f2202b04e82c67f822f3233786f authored almost 14 years ago
be82e122bf37fdcd1766d1ed220f0300b30ab6a3 authored almost 14 years ago
bae862ab18186aba5cd80f1443492f7730dff5f3 authored almost 14 years ago
7877db6b2f2deeceaac027579c661610655127f5 authored almost 14 years ago
with this patch, the syscallN() functions are no longer needed; a
variadic syscall() macro allow...
462dbfc20788a6c9dd1ea4bb1cef086aa189615a authored almost 14 years ago
b0e83133e2e9242c60e83d25b1c5425ffc6d6d6f authored almost 14 years ago
this commit shuffles around the location of syscall definitions so
that we can make a syscall() ...
i'm still not sure whether it's a good idea to include or use any of
these, but i'll add them fo...
this commit is part of an effort to make more of busybox work
out-of-the-box.
fc27b96c7d9b2c82679508a57ac998d773f14f08 authored almost 14 years ago
e18b56382154fe1c5803f6b9ee36e2991174c037 authored almost 14 years ago
this implementation is extremely ugly and inefficient, but it avoids a
good deal of code duplica...
a012aa879fb790c8e0446638b206b7f34e92c51e authored almost 14 years ago
some of this code should be cleaned up, e.g. using macros for some of
the bit flags, masks, etc....
if the mutex was previously locked, we can assume pthread_self was
already called at the time of...
the layout has been chosen so that pointer slots 3 and 4 fit between
the integer slots on 32-bit...
this change is necessary to free up one slot in the mutex structure so
that we can use doubly-li...
e914f8b7ec79f622fa3b017af434642f61d45ce8 authored almost 14 years ago
1d59f1eddbcca03063cf080ded6df13170adcb23 authored almost 14 years ago
d4f9e0b3642a81d07c95302cd9aa0dcaf7de1a05 authored almost 14 years ago
29fae65780f4c5ccda3758828da7a83073297ccc authored almost 14 years ago
cc832d8a31e674c3d8ee7168e4a613b5bf8124e0 authored almost 14 years ago
4d9cc0b399b1d6a146cb45e64c74b7ee562de7a6 authored almost 14 years ago
9dd7d7e3f6a90ae00e83fd98f30c48389c4f5ab2 authored almost 14 years ago
b446c55b6f2c692c58f32e5777a8976534a03274 authored almost 14 years ago
eff62b8a96dbbffa16648048ac684c9042751fe2 authored almost 14 years ago
5eb0d33ec0f08b123c5c10877d6258d05fa9453a authored almost 14 years ago
actually it gets this from time.h if _POSIX_C_SOURCE or any other
feature test macros are define...
9f50b77d2ba154ba0d8cbccea94af1f7b902fd1a authored almost 14 years ago
6f05b6bbd5c6de6477baac63a23edc44283e1b1b authored almost 14 years ago
8bb0e48889807a1421c15ab0eeaac198df27c7e5 authored almost 14 years ago
for some reason these functions are not shaded by the PS/TPS option in
POSIX, so presumably they...
1659aa0e62cf23f3007e01ad8ca7123d8e2b061e authored almost 14 years ago
cabf2ff349183eca9ebc0a7b16d0223c193a013a authored almost 14 years ago
f1821fce81bffa61a78639527bde2a34db45244f authored almost 14 years ago
26761987333743be7900a9eca512fa335025a8d3 authored almost 14 years ago
8d07a0350ef2cfa209db05980ffa0b916744f3d4 authored almost 14 years ago
682a0f271f8b9a5842679a0f7070139a1f456c0d authored almost 14 years ago
cfe581b6bc795e3f00ac30791314ec0f9be4b4ad authored almost 14 years ago
multiple opens of the same named semaphore must return the same
pointer, and only the last close...
we can avoid blocking signals by simply using a flag to mark that the
thread has exited and prev...
1. any padding in the siginfo struct was not necessarily zero-filled,
so it might have contained...
52213f734134055968ef14bf54b71f0dd370763a authored almost 14 years ago
11dbbe9fbac33ede053803ebf7193550ec5cfb48 authored almost 14 years ago
c8c4ef7d4404b94483c68b7479eb98b9b09f996c authored almost 14 years ago
0f8cc94d68a54893fc2aee90503735045618d8ae authored almost 14 years ago
5b9429adb78aeb5e98fa26bd9b2b3eef981e4c52 authored almost 14 years ago
POSIX allows either behavior, but sigwait is not allowed to fail with
EINTR, so the retry loop w...