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

omit pthread tsd dtor code if tsd is not used

fd80cfa00b34ec81b3049b98c66f6a45301ca6c4 authored almost 14 years ago
don't disable seeking after first seek failure

this could cause problems if the application uses dup2(fd,fileno(f))
to redirect, and the old fd...

8de03e1a90e60f62806c488cfa4985f99e869f87 authored almost 14 years ago
apparently fseek should not set the error flag on failed seek

9a909fcd915c65628931dcf6e7b34f261e39e3a3 authored almost 14 years ago
update release notes

d1c24ac4ec721ea49c15b277eaebed30f8df1e4c authored almost 14 years ago
avoid over-allocation of brk on first malloc

if init_malloc returns positive (successful first init), malloc will
retry getting a chunk from ...

bf8785825ac57371c268f54866923d6f89231639 authored almost 14 years ago
reorganize the __libc structure for threaded performance issues

we want to keep atomically updated fields (locks and thread count) and
really anything writable ...

952987a0cb9b1973fdf23e05f8ddc6fe3c98fd68 authored almost 14 years ago
simplify setting result on thread cancellation

4ae5e811f8d291a0df1418e1aae583161c142952 authored almost 14 years ago
use bss instead of mmap for main thread's pthread thread-specific data

this simplifies code and removes a failure case

6c16d3e98ab2e466bb12ded12dfad1f8f272b1f8 authored almost 14 years ago
remove obsolete and useless useconds_t type

5243e5f1606a9c6fcf01414ed5561616588bc0b9 authored almost 14 years ago
somehow timespec tv_nsec had the wrong type on x86_64... fixed

3bb00f45799ae6df48c2a00496ee57b42f7d2621 authored almost 14 years ago
fix misspelled PTHREAD_CANCELED constant

3df3d4f5127a15c1237006d22f948b430f9dbe7e authored almost 14 years ago
document more changes

c1f15004337f855eb681098a4f3fdc77f105577d authored almost 14 years ago
document changes for upcoming 0.7.5 release

78eb0879cd031be62a6905bcf5de0db4b7cf30cf authored almost 14 years ago
use a_store to set cancel flag in pthread_cancel, to ensure a barrier

ded6cb5f719464649bcb61624d52327ae444bfca authored almost 14 years ago
simplify pthread_key_delete

calling this function on an uninitialized key value is UB, so there is
no need to check that the...

c1b39b203dc3614469f2581fa4d6146cf0ac2af0 authored almost 14 years ago
greatly simplify pthread_key_create (~20% size reduction)

c9806fc2f9b68be8942740da508eaaf0695d020e authored almost 14 years ago
add some missing prototypes for nonstandard functions (strsep, clearenv)

a5323c57686340d3a8a6b0d6b3e6faab2a22ce8d authored almost 14 years ago
avoid all malloc/free in timer creation/destruction

instead of allocating a userspace structure for signal-based timers,
simply use the kernel timer...

3990c5c6a40440cdb14746ac080d0ecf8d5d6733 authored almost 14 years ago
optimize timer creation and possibly protect against some minor races

the major idea of this patch is not to depend on having the timer
pointer delivered to the signa...

b8be64c43da207a2f497c1c5b5720e4a2027348a authored almost 14 years ago
avoid crash on stupid but allowable usage of pthread_mutex_unlock

unlocking an unlocked mutex is not UB for robust or error-checking
mutexes, so we must avoid cal...

a1eb8cb5dab06dd23c256d03d82ef6b0efc4b6c6 authored almost 14 years ago
rename __simple_malloc.c to lite_malloc.c - yes this affects behavior!

why does this affect behavior? well, the linker seems to traverse
archive files starting from it...

620a1346382f9e10b516bc168f86d499b6716769 authored almost 14 years ago
streamline mutex unlock to remove a useless branch, use a_store to unlock

this roughly halves the cost of pthread_mutex_unlock, at least for
non-robust, normal-type mutex...

02084109f0f0d6e0a7fe4a8cb3a90a422725e264 authored almost 14 years ago
cheap special-case optimization for normal mutexes

cycle-level benchmark on atom cpu showed typical pthread_mutex_lock
call dropping from ~120 cycl...

124b4ebc8a293e616cc0a7eaba3587c9b7ff13ec authored almost 14 years ago
reorder timer initialization so that timer_create does not depend on free

this allows small programs which only create times, but never delete
them, to use simple_malloc ...

680630011d38eb9f96f92b2f080cc60f38f6df21 authored almost 14 years ago
missing prototype for wcscoll (stub)

1c1aa32eea467b2ed43b457b5528713933b32e95 authored almost 14 years ago
revert mutex "optimization" that turned out to be worse

8524d6536c7bcb893115c0c48982c7311906c1db authored almost 14 years ago
implement POSIX timers

this implementation is superior to the glibc/nptl implementation, in
that it gives true realtime...

80c4dcd2535a2d7f01eb539b0358dc51b0c0e122 authored almost 14 years ago
major improvements to cancellation handling

- there is no longer any risk of spoofing cancellation requests, since
the cancel flag is set ...

bf619d82c82052741323aa63c107fbd346c8aaba authored almost 14 years ago
some preliminaries for adding POSIX timers

70c31c7bd779400d2eb56dcb4075bb37227081db authored almost 14 years ago
fix tempnam name generation, and a small bug in tmpnam on retry limit

8250742b90b8b54e642fa9201bf0cf8b7c27bbb8 authored almost 14 years ago
make tmpfile fail after exceeding max tries.

a88edbec15abe3c8e08d5065d8bea399898e757c authored almost 14 years ago
fix tmpnam to generate better names, not depend on non-ISO-C symbols

507a9fa6ff9948eb7d858467b7be2cb1dcf15d03 authored almost 14 years ago
fix messed-up errno if remove fails for a non-EISDIR reason

9646e4d024c05332c9653419abd6c41fdd48a33b authored almost 14 years ago
learned something new - remove is supposed to support directories on POSIX

0b240ccf523b9af23dd1efa78274f397fcc90cdd authored almost 14 years ago
revert some more spin optimizations that turned out to be pessimizations

4106cdcd2de34bf3b9839e042344d92eae887ecb authored almost 14 years ago
fix bug from syscall overhaul: extra __syscall_ret call for 0-arg syscalls

this mainly just caused bloat, but could corrupt errno if a 0-arg
syscall ever failed.

4cc78719dd22a685ddd89b92ac3bfc308c4c19b3 authored almost 14 years ago
fix broken spinlock due to miscompilation

actually this trick also seems to have made the uncontended case slower.

117581ca69ec2a9c341390eed353646b47a512df authored almost 14 years ago
prototype for getpass

ef839c73d7ad51249550675defdcb24349e6ffd0 authored almost 14 years ago
remove useless field in pthread struct (wasted a good bit of space)

83b6c9e052ed8c813c03a5517943b61caef6b065 authored almost 14 years ago
fix getc - the classic error of trying to store EOF+0-255 in a char type..

05b694028e0537954ea2d5e69774e0c24bf9ab47 authored almost 14 years ago
major stdio overhaul, using readv/writev, plus other changes

the biggest change in this commit is that stdio now uses readv to fill
the caller's buffer and t...

e3cd6c5c265cd481db6e0c5b529855d99f0bda30 authored almost 14 years ago
match glibc/lsb cancellation abi on i386

glibc made the ridiculous choice to use pass-by-register calling
convention for these functions,...

ea343364a719add2cd8adf8a50c15bb5f9400dd8 authored almost 14 years ago
remove -Wno-pointer-sign example from dist/config.mak

92b52b70e8c0786c95cb73a691e1f6e89a73be46 authored almost 14 years ago
fix all implicit conversion between signed/unsigned pointers

sadly the C language does not specify any such implicit conversion, so
this is not a matter of j...

9ae8d5fc71a4b61ec826d58f03f7b543755fb1d4 authored almost 14 years ago
simplify and optimize FILE lock handling

a37452430f93700aeb122d693959ad79d8e43ada authored almost 14 years ago
prepare pthread_spin_unlock for archs that need memory barriers

d8dc2faf1033e134e3a8f39bdf15c065f4d234be authored almost 14 years ago
optimize contended case for pthread_spin_trylock

b8b85a42729dc96e43d51848823fbe28ad92b5c0 authored almost 14 years ago
optimize spinlock spin

c322fe4e1a9bcc20f7a2ded1ac0e1674ea282bc0 authored almost 14 years ago
fix non-atomicity of puts

8ae2fa65636b732e04e19b2521edc335867ba53b authored almost 14 years ago
overhaul cancellation to fix resource leaks and dangerous behavior with signals

this commit addresses two issues:

1. a race condition, whereby a cancellation request occurring...

b470030f839a375e5030ec9d44903ef7581c15a2 authored almost 14 years ago
very cheap double-free checks in malloc

095820016689dfdc9141f477a86de22054c86078 authored almost 14 years ago
global cleanup to use the new syscall interface

aa398f56fa398f2202b04e82c67f822f3233786f authored almost 14 years ago
if returning errno value directly from a syscall, we need to negate it.

be82e122bf37fdcd1766d1ed220f0300b30ab6a3 authored almost 14 years ago
honor namespace for i386 syscall.h, even though it's not a standard header

bae862ab18186aba5cd80f1443492f7730dff5f3 authored almost 14 years ago
fix typo in x86_64 part of syscall overhaul

7877db6b2f2deeceaac027579c661610655127f5 authored almost 14 years ago
syscall overhaul part two - unify public and internal syscall interface

with this patch, the syscallN() functions are no longer needed; a
variadic syscall() macro allow...

685e40bb09f5f24a2af54ea09c97328808f76990 authored almost 14 years ago
remove comment cruft that got left behind in x86_64 syscall.s

462dbfc20788a6c9dd1ea4bb1cef086aa189615a authored almost 14 years ago
add some ioctl stuff to sys/mount.h

b0e83133e2e9242c60e83d25b1c5425ffc6d6d6f authored almost 14 years ago
overhaul syscall interface

this commit shuffles around the location of syscall definitions so
that we can make a syscall() ...

d00ff2950eacc375d57e44d65c7697f636c67625 authored almost 14 years ago
some linux headers useful from user apps.

i'm still not sure whether it's a good idea to include or use any of
these, but i'll add them fo...

56fd65e861e0ad0ea7677211f8258a8f64233f26 authored almost 14 years ago
various legacy and linux-specific stuff

this commit is part of an effort to make more of busybox work
out-of-the-box.

f5ba2bc9ca84d67f03f2542bfff0525f2f478e4c authored almost 14 years ago
document changes for 0.7.1

fc27b96c7d9b2c82679508a57ac998d773f14f08 authored almost 14 years ago
implement [v]swprintf

e18b56382154fe1c5803f6b9ee36e2991174c037 authored almost 14 years ago
implement wprintf family of functions

this implementation is extremely ugly and inefficient, but it avoids a
good deal of code duplica...

c35bb6645f32bc684dc3da99d4d71c4ead2d4717 authored almost 14 years ago
fix broken wmemchr (unbounded search)

a012aa879fb790c8e0446638b206b7f34e92c51e authored almost 14 years ago
implement robust mutexes

some of this code should be cleaned up, e.g. using macros for some of
the bit flags, masks, etc....

047e434ef5fd5437a74f98f63c40a77a683f7f3f authored almost 14 years ago
avoid function call to pthread_self in mutex unlock

if the mutex was previously locked, we can assume pthread_self was
already called at the time of...

18c7ea8055cf733f168d2c74d7cc8523a360f5f1 authored almost 14 years ago
reorder mutex struct fields to make room for pointers (upcoming robust mutexes)

the layout has been chosen so that pointer slots 3 and 4 fit between
the integer slots on 32-bit...

93cc986ab37b14f8c6b624439ce2a2beca7b3cf7 authored almost 14 years ago
unify lock and owner fields of mutex structure

this change is necessary to free up one slot in the mutex structure so
that we can use doubly-li...

b1c43161c2b37e35eae60fa61621a24a5d820d83 authored almost 14 years ago
optimize contended normal mutex case; add int compare-and-swap atomic

e914f8b7ec79f622fa3b017af434642f61d45ce8 authored almost 14 years ago
simplify logic, slightly optimize contended case for non-default mutex types

1d59f1eddbcca03063cf080ded6df13170adcb23 authored almost 14 years ago
correct error returns for error-checking mutexes

d4f9e0b3642a81d07c95302cd9aa0dcaf7de1a05 authored almost 14 years ago
cut out a syscall on thread creation in the case where guard size is 0

29fae65780f4c5ccda3758828da7a83073297ccc authored almost 14 years ago
don't expose EAGAIN, etc. from timed futex wait to caller

cc832d8a31e674c3d8ee7168e4a613b5bf8124e0 authored almost 14 years ago
optimize file locking: avoid cache-polluting writes to global storage

4d9cc0b399b1d6a146cb45e64c74b7ee562de7a6 authored almost 14 years ago
partially-written draft of fmemopen, still in #if 0

9dd7d7e3f6a90ae00e83fd98f30c48389c4f5ab2 authored almost 14 years ago
remove some old cruft from sys/types.h

b446c55b6f2c692c58f32e5777a8976534a03274 authored almost 14 years ago
misplaced & in times() made it fail to work, and clobber the stack

eff62b8a96dbbffa16648048ac684c9042751fe2 authored almost 14 years ago
implement flockfile api, rework stdio locking

5eb0d33ec0f08b123c5c10877d6258d05fa9453a authored almost 14 years ago
pthread.h needs clockid_t

actually it gets this from time.h if _POSIX_C_SOURCE or any other
feature test macros are define...

d8d19f4d46284d5b6124710a5235b6fe090c013f authored almost 14 years ago
document some additional important changes

9f50b77d2ba154ba0d8cbccea94af1f7b902fd1a authored almost 14 years ago
update whatsnew file for release of 0.7.0

6f05b6bbd5c6de6477baac63a23edc44283e1b1b authored almost 14 years ago
match dimensions so we can use all slots without invoking OOB-array-access

8bb0e48889807a1421c15ab0eeaac198df27c7e5 authored almost 14 years ago
implement dummy pthread_attr_[gs]etschedparam functions

for some reason these functions are not shaded by the PS/TPS option in
POSIX, so presumably they...

243b542382990d8c2d0e5469ae68dfd622551a3e authored almost 14 years ago
fix pthread_attr_* implementations to match corrected prototypes

1659aa0e62cf23f3007e01ad8ca7123d8e2b061e authored almost 14 years ago
fix missing ENOTSUP error code

cabf2ff349183eca9ebc0a7b16d0223c193a013a authored almost 14 years ago
missing const in some pthread_attr_* prototypes

f1821fce81bffa61a78639527bde2a34db45244f authored almost 14 years ago
formatting whatsnew file

26761987333743be7900a9eca512fa335025a8d3 authored almost 14 years ago
list major changes in preparation for release

8d07a0350ef2cfa209db05980ffa0b916744f3d4 authored almost 14 years ago
fix failure behavior of sem_open when sem does not exist

682a0f271f8b9a5842679a0f7070139a1f456c0d authored almost 14 years ago
fix some semaphore wait semantics (race condition deadlock and error checking)

cfe581b6bc795e3f00ac30791314ec0f9be4b4ad authored almost 14 years ago
fix sem_open and sem_close to obey posix semantics

multiple opens of the same named semaphore must return the same
pointer, and only the last close...

81af503610761a69476a3adbe8341fa8b6d078aa authored almost 14 years ago
optimize pthread termination in the non-detached case

we can avoid blocking signals by simply using a flag to mark that the
thread has exited and prev...

5fcebcde6aeba6ae4a339790beba5331fbcd3b6e authored almost 14 years ago
fix errors in sigqueue (potential information leak, wrong behavior)

1. any padding in the siginfo struct was not necessarily zero-filled,
so it might have contained...

dc54a7cbb9f0aad6f614131ecc683fbb0b717115 authored almost 14 years ago
security fix: check that cancel/rsyscall signal was sent by the process itself

52213f734134055968ef14bf54b71f0dd370763a authored almost 14 years ago
more cancellation points: tcdrain, clock_nanosleep

11dbbe9fbac33ede053803ebf7193550ec5cfb48 authored almost 14 years ago
remove useless return value checks for functions that cannot fail

c8c4ef7d4404b94483c68b7479eb98b9b09f996c authored almost 14 years ago
make sigsuspend a cancellation point

0f8cc94d68a54893fc2aee90503735045618d8ae authored almost 14 years ago
make sigtimedwait a cancellation point

5b9429adb78aeb5e98fa26bd9b2b3eef981e4c52 authored almost 14 years ago
don't fail with EINTR in sigtimedwait

POSIX allows either behavior, but sigwait is not allowed to fail with
EINTR, so the retry loop w...

0a949ebdf0b9fc054ea868bd049c8f2c7aed973e authored almost 14 years ago