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

fix failure of getdelim to set stream orientation on error

if EINVAL or ENOMEM happened before the first getc_unlocked, it was
possible that the stream ori...

5cd309f0cc3c92f3fabbaa499652a8329137c4de authored over 6 years ago by Rich Felker <[email protected]>
check for kernel support before allowing robust mutex creation

on some archs, linux support for futex operations (including
robust_list processing) that depend...

5994de4e02a05c19a6bddadcfb687ab2e7511bd6 authored over 6 years ago by Rich Felker <[email protected]>
always reset DST rules during tzset

do_tzset() did't always reset the DST transition rules r0 and r1. That
means the rules from olde...

dbcfb16e43af28ba919f651c51d7a2f15af656a1 authored over 6 years ago by Benjamin Peterson <[email protected]>
fix undefined behavior in strto* via FILE buffer pointer abuse

in order to produce FILE objects to pass to the intscan/floatscan
backends without any (prohibit...

d6c855caa88ddb1ab6e24e23a14b1e7baf4ba9c7 authored over 6 years ago by Rich Felker <[email protected]>
improve error handling of ttyname_r and isatty

POSIX allows ttyname(_r) and isatty to return EBADF if passed file
descriptor is invalid.

maint...

c84971995b3a6d5118f9357c040572f4c78bcd55 authored over 6 years ago by Benjamin Peterson <[email protected]>
add hidden version of &errno accessor function

this significantly improves codegen in functions that need to access
errno but otherwise have no...

e13063aad7aee341d278d2a879a76ec7b59b2ad8 authored over 6 years ago by Rich Felker <[email protected]>
fix build regression in sysconf for archs with variable page size

commit 5ce3737931bb411a8d167356d4d0287b53b0cbdc removed the inclusion
of libc.h from this file a...

da55d4884bf26ce31cd6a64ed176019c2ba9839a authored over 6 years ago by Rich Felker <[email protected]>
drop lazy plural forms init in dcngettext

there is no good reason to wait to find and process the plural rules
for a translated message fi...

017e67ddde79fa2b6187a5e56b1e92bafc7c4cd2 authored over 6 years ago by Rich Felker <[email protected]>
fix broken atomic store on powerpc[64]

in our memory model, all atomics are supposed to be full barriers;
stores are not release-only. ...

12817793301398241b6cb00c740f0d3ca41076e9 authored over 6 years ago by Rich Felker <[email protected]>
define MAX_HANDLE_SZ for use with name_to_handle_at

MAX_HANDLE_SZ is described in name_to_handle_at() to contain maximum
expected size for a file ha...

7d7f44253f2d8cfd0a7adf9f918d88aa24d4e012 authored over 6 years ago by Khem Raj <[email protected]>
fix regression with compilers not incorporating C99 DR#289 resolution

as originally published, the C99 syntax only allowed static index
parameter declarators when a g...

036df43d2a1d327370af005f861598d814c55121 authored over 6 years ago by Rich Felker <[email protected]>
configure: only try -Qunused-arguments for clang

other compilers don't need this option, but gcc 3 and perhaps others
accept it despite not under...

7634101069db26b003adeec09c6aa14646363557 authored over 6 years ago by Rich Felker <[email protected]>
wireup linux/name_to_handle_at and name_to_handle_at syscalls

3e14bbcd1979376b188bfabb816ff828608fb5d7 authored over 6 years ago by Khem Raj <[email protected]>
remove vis.h protected-visibility hack

since commit dc2f368e565c37728b0d620380b849c3a1ddd78f this has been
disabled by default, but was...

5e46e8d4b0fee11a5d2ea12d0d21ed0bff6db855 authored over 6 years ago by Rich Felker <[email protected]>
split internal lock API out of libc.h, creating lock.h

this further reduces the number of source files which need to include
libc.h and thereby be pote...

5f12ffe1239a5e4f8d4e98e2dff4e191a71f4693 authored over 6 years ago by Rich Felker <[email protected]>
move misplaced __fork_handler declaration

pthread_atfork.c does not actually include pthread_impl.h and has no
reason to, so it wasn't get...

09e87db555045bf3bcef69c692df24d13b2856fe authored over 6 years ago by Rich Felker <[email protected]>
remove spurious inclusion of libc.h for LFS64 ABI aliases

the LFS64 macro was not self-documenting and barely saved any
characters. simply use weak_alias ...

63a4c9adf227a6f6a5f7f70f6dc3f8863f846927 authored over 6 years ago by Rich Felker <[email protected]>
remove __vfork alias

this was added so that posix_spawn and possibly other functionality
could be implemented in term...

ced75472d7e3d73d5b057e36ccbc7b7fcba95104 authored over 6 years ago by Rich Felker <[email protected]>
reduce spurious inclusion of libc.h

libc.h was intended to be a header for access to global libc state and
related interfaces, but e...

5ce3737931bb411a8d167356d4d0287b53b0cbdc authored over 6 years ago by Rich Felker <[email protected]>
use wrapper headers to hide most namespaced/internally-public symbols

not all prefixed symbols can be made hidden. some are part of
ABI-compat (e.g. __nl_langinfo_l) ...

0676c3a34c7bf12b33f8f5efb92476f4ffc7f20e authored over 6 years ago by Rich Felker <[email protected]>
declare __env_rm_add in wrapper stdlib.h

this is perhaps not the ideal place, but no better alternatives stand
out.

c04c6993dc87d596e47f2d8a66ef9252890b7468 authored over 6 years ago by Rich Felker <[email protected]>
hide purely dependency-triggering functions in stdio __toread & __towrite

6d47488e8616dfc24e58aeb56db520ac7c80421e authored over 6 years ago by Rich Felker <[email protected]>
declare and make hidden additional internal stdio symbols

a3944d3f0cfc63ebfcd9dad4dd7f2b2cd8860968 authored over 6 years ago by Rich Felker <[email protected]>
hide dependency-triggering pointer object in malloc_usable_size.c

239c15565fe174a77cdd0a8226863a1da1880857 authored over 6 years ago by Rich Felker <[email protected]>
declare and make hidden additional internal init/exit symbols

a2f0eb1a0704c608bb9e0b94b7420201a70ce233 authored over 6 years ago by Rich Felker <[email protected]>
hide __pthread_once_full symbol

this is a special case that does not need a declaration, because it's
not even a libc-internal i...

a60d579f5edf3d2e6cc8b5e5f33cbf34bd8914c9 authored over 6 years ago by Rich Felker <[email protected]>
remove unused __futex function and source file

the direct syscall or various thin and mostly-inline wrappers around
it are used instead interna...

055dfbb7f71a67151898a8c4bf82ba930ba35a11 authored over 6 years ago by Rich Felker <[email protected]>
rework malloc_usable_size to use malloc_impl.h

ef8d45d6c9036b23087461550e95683804ed0084 authored over 6 years ago by Rich Felker <[email protected]>
remove or make static various unused __-prefixed symbols

3fe595de83e398dbc3cdbe303cacaf8485c9ae08 authored over 6 years ago by Rich Felker <[email protected]>
move declaration and apply hidden visibility to __utc string

c52ae69844c2e56f84bc159af4cc6bf0fd107d84 authored over 6 years ago by Rich Felker <[email protected]>
remove unused __getdents, rename and move file

the __-prefixed filename does not make sense when the only purpose of
this file is implementing ...

ebb6afde680fc420f85a124d548831d59650b611 authored over 6 years ago by Rich Felker <[email protected]>
declare and make hidden more internal locale functions

81e19341d8bb2f2a9f908ed9a633666207d5207e authored over 6 years ago by Rich Felker <[email protected]>
move additional pthread internal declarations to pthread_impl.h, hide

these were overlooked for various reasons in earlier stages.

49722a8ed4c8fd056ac8aebd6bec9d998b700f80 authored over 6 years ago by Rich Felker <[email protected]>
apply hidden visibility to sigreturn code fragments

these were overlooked in the declarations overhaul work because they
are not properly declared, ...

b6e59cd925cbe6c0f23cf46828d47e6e7edd17c9 authored over 6 years ago by Rich Felker <[email protected]>
apply hidden visibility to various remaining internal interfaces

7e399fabd3db2c528b5982803eeba2841f547695 authored over 6 years ago by Rich Felker <[email protected]>
apply hidden visibility to stdio internals

d06fdd7f272bff626509341426f96ccb1828d4ac authored over 6 years ago by Rich Felker <[email protected]>
apply hidden visibility to pthread internals

50fea6c75f7bb610eb33bc676224e8fbd2329338 authored over 6 years ago by Rich Felker <[email protected]>
apply hidden visibility to internal time[zone] implementation functions

444a1b21a1bd12b76f93155ea7db3f155710b37b authored over 6 years ago by Rich Felker <[email protected]>
apply hidden visibility to internal math functions

this makes significant differences to codegen on archs with an
expensive PLT-calling ABI; on i38...

46e3895b6c986857b5759c5cb307e7fcb3fad39f authored over 6 years ago by Rich Felker <[email protected]>
overhaul internally-public declarations using wrapper headers

commits leading up to this one have moved the vast majority of
libc-internal interface declarati...

13d1afa46f8098df290008c681816c9eb89ffbdb authored over 6 years ago by Rich Felker <[email protected]>
make mkostemps source file include the header for its declaration

4de46b5ab51fd74552fa58a6721c78e10c9de975 authored over 6 years ago by Rich Felker <[email protected]>
add crypt_des header for declarations shared with encrypt function

7ab1578d05f5d6790e218867158a28d9147419ec authored over 6 years ago by Rich Felker <[email protected]>
use lighter internal stdio lock in getopt error printing

the public flockfile interface is significantly heavier because it has
to handle the possibility...

cf7db2427f99d784f3d27a4036c1abf41c61db87 authored over 6 years ago by Rich Felker <[email protected]>
declare __getopt_msg in stdio_impl.h

it's not ideal, but the function is essentially an extended stdio
function specialized to getopt...

8c1ac426e15b27d2879afa26a500fd80010b33b9 authored over 6 years ago by Rich Felker <[email protected]>
make arch __fesetround backends hidden

these are not public interfaces and do not match the public function,
but delegate argument chec...

039f1b3c564667ab6fc9955bd892c2e527eb80b0 authored over 6 years ago by Rich Felker <[email protected]>
rework mechanism for posix_spawnp calling posix_spawn

previously, a common __posix_spawnx backend was used that accepted an
additional argument for th...

fe61a7aa53e68e8a17b5eb8d502e6fa314139ced authored over 6 years ago by Rich Felker <[email protected]>
use hidden visibility for sh __unmapself backends

762cf6cdb36ec4403d833c85371a4df686e0e58d authored over 6 years ago by Rich Felker <[email protected]>
move __memalign declaration to malloc_impl.h

the malloc-implementation-private header is the only right place for
this, because, being in the...

b07a5d66988344616d8dc61c6930be134086e99c authored over 6 years ago by Rich Felker <[email protected]>
make arch __set_thread_area backends hidden

this is not a public interface, and does not even necessarily match
the syscall on all archs tha...

5e1019b01c968707accc85c99e63a18af665cf27 authored over 6 years ago by Rich Felker <[email protected]>
move tlsdesc and internal dl function declarations to dynlink.h

1bbe166e15e2c005c49c0aa53b8d106315d95ad0 authored over 6 years ago by Rich Felker <[email protected]>
make arch __clone backends hidden

these are not a public interface and are not intended to be callable
from anywhere but the publi...

f5f7673d71f843b423e60bbdd7de49fd1bbcc8c1 authored over 6 years ago by Rich Felker <[email protected]>
move __loc_is_allocated declaration to locale_impl.h

7dc8df56c16f0fd9d791511e54d4590fb5a2dbf3 authored over 6 years ago by Rich Felker <[email protected]>
move __stdio_exit_needed to stdio_impl.h

this functions is glue for linking dependency logic.

50a298ea3b122efbb31e7674a20e6c7dc30ca1dc authored over 6 years ago by Rich Felker <[email protected]>
move declarations of tls setup/access functions to pthread_impl.h

it's already included in all places where these are needed, and aside
from __tls_get_addr, they'...

91c6a187b89cb1ea9afc6a963106fbccca218dde authored over 6 years ago by Rich Felker <[email protected]>
add internal header for declaring __pleval function (used by gettext)

locale_impl.h could have been used, but this function is completely
independent of anything else...

15230afc8dd5e6493da7cb5fcf0153672dab79d6 authored over 6 years ago by Rich Felker <[email protected]>
move __strftime_fmt_1 declaration to time_impl.h

this is a helper function from strftime that's also used by wcsftime.

01294da7f71958ed0d3aa5bdc8d625c405c8926a authored over 6 years ago by Rich Felker <[email protected]>
move __res_msend_rc declaration to lookup.h

unlike the other res/dn functions, this one is tied to struct
resolvconf which is not a public i...

432f9f0e315a7df8e0c5dc820f0f77279b908bb1 authored over 6 years ago by Rich Felker <[email protected]>
remove unused code from strcpy.c

8dafb84e667e81f04b0dace310161d33a37f8f50 authored over 6 years ago by Rich Felker <[email protected]>
fix type-mismatched declarations of __nl_langinfo_l in source files

obviously the type "should be" const, but it inherited non-const from
the standard nl_langinfo_l.

405102dc5034967f228e8a0a2f25a142caa55400 authored over 6 years ago by Rich Felker <[email protected]>
move __tm_to_tzname declaration to time_impl.h with related functions

this function was added later for strftime use and the existence of
time_impl.h as the appropria...

72bc6cbfed34f9787cc740e55c793ebbf3a2fe67 authored over 6 years ago by Rich Felker <[email protected]>
add and use internal header for *rand48 lcg

f9db9eca40fdc78fae258b8e12eb689fc2d5e0e5 authored over 6 years ago by Rich Felker <[email protected]>
move and deduplicate declarations of __dns_parse to make it checkable

the source file for this function is completely standalone, but it
doesn't seem worth adding a h...

c98bf5b8691b21373ff8d9698e89a75acdefdc75 authored over 6 years ago by Rich Felker <[email protected]>
for c11 mtx and cnd functions, use externally consistent type names

despite looking like undefined behavior, the affected code is correct
both before and after this...

60056a8010c3dbaabd713f7a3e4f2963bb921a1b authored over 6 years ago by Rich Felker <[email protected]>
add arm asm for vfork

a8c53794a00f7a432a846cb649b4908ceba322b9 authored over 6 years ago by Patrick Oppenlander <[email protected]>
declare __syscall_ret as hidden in vfork asm

without this, it's plausible that assembler or linker could complain
about an unsatisfiable relo...

aee11e5acc2a8e56a9c8d841ac4470d9511b5008 authored over 6 years ago by Rich Felker <[email protected]>
move lgamma-related internal declarations to libm.h

59d88940d20b40495c9d63560469b3a1ee5c8bc6 authored over 6 years ago by Rich Felker <[email protected]>
make inadvertently exposed __pthread_{timed,try}join_np functions static

these exist for the sake of defining the corresponding weak public
aliases (for C11 and POSIX na...

10bbbbf5c63085b84d683c2d597ba482d6dd07d9 authored over 6 years ago by Rich Felker <[email protected]>
make inadvertently exposed __h{create,delete,search}_r functions static

736a950b3d4f476018d2909302be6d150530df50 authored over 6 years ago by Rich Felker <[email protected]>
use idiomatic weak alias approach for defining asctime_r

get rid of a gratuitous translation unit and call frame between
asctime_r and the actual impleme...

b5dbf4d424efdbe54daa939aae80d69c4244c023 authored over 6 years ago by Rich Felker <[email protected]>
make internal declarations for flockfile tracking functions checkable

logically these belong to the intersection of the stdio and pthread
subsystems, and either place...

3b028c28314a43e6fb65f3281149aecae8250f11 authored over 6 years ago by Rich Felker <[email protected]>
improve machinery for ldso to report libc version

eliminate gratuitous glue function for reporting the version, which
was probably leftover from t...

18bf0829a7545b14de3fe241a65298c5f36e8bbc authored over 6 years ago by Rich Felker <[email protected]>
move declarations for malloc internals to malloc_impl.h

55a1c9c89028f8930e5f65fe5484fa7ba0e18853 authored over 6 years ago by Rich Felker <[email protected]>
move and deduplicate declarations of __vdsosym to make it checkable

cb229f614f937515b78e40701f36c26c7def01b7 authored over 6 years ago by Rich Felker <[email protected]>
move and deduplicate declarations of __procfdname to make it checkable

syscall.h was chosen as the header to declare it, since its intended
usage is alongside syscalls...

6fcd60ddd903df13402704fe6026cb1f8e780fd7 authored over 6 years ago by Rich Felker <[email protected]>
fix issues from public functions defined without declaration visible

policy is that all public functions which have a public declaration
should be defined in a conte...

c221d3e5862e249b03aa7569d5fec6389294fb22 authored over 6 years ago by Rich Felker <[email protected]>
remove leftover declarations for removed functions from pthread_impl.h

eeb6f7742506b08692f745c7f588d046f1aa8214 authored over 6 years ago by Rich Felker <[email protected]>
define and use internal macros for hidden visibility, weak refs

this cleans up what had become widespread direct inline use of "GNU C"
style attributes directly...

9b95fd0944e4206949e90633c3fed088202810ec authored over 6 years ago by Rich Felker <[email protected]>
fix namespace violation for c11 mutex functions

__pthread_mutex_timedlock is used to implement c11 mutex functions,
and therefore cannot call pt...

2de29bc994029b903a366b8a4a9f8c3c3ee2be90 authored over 6 years ago by Rich Felker <[email protected]>
in pthread_mutex_timedlock, avoid repeatedly reading mutex type field

compiler cannot cache immutable fields of the mutex object across
external calls it can't see, m...

d1fa28860634af4f0efd70d533a756b51a45f83e authored over 6 years ago by Rich Felker <[email protected]>
in pthread_mutex_trylock, EBUSY out more directly when possible

avoid gratuitously setting up and tearing down the robust list pending
slot.

4e4a162d9af283cf71f7310c497672e0c2b8ca3b authored over 6 years ago by Rich Felker <[email protected]>
fix mistake/cruft in 1.1.20 release notes

this fix was intended to be amended in before release, but somehow got
missed.

4fb273bd4002b37d7e149e077974bc22e2bc4e26 authored over 6 years ago by Rich Felker <[email protected]>
implement fexecve in terms of execveat when it exists

This lets fexecve work even when /proc isn't mounted.

e36f80cba6d5eefcc1ee664f16c2c72054b83134 authored over 6 years ago by Joseph C. Sible <[email protected]>
release 1.1.20

0fa1e638e87cf257e9f96b4019b2076afd674a19 authored over 6 years ago by Rich Felker <[email protected]>
fix stack-based oob memory clobber in resolver's result sorting

commit 4f35eb7591031a1e5ef9828f9304361f282f28b9 introduced this bug.
it is not present in any re...

64466094ede4162ddd4049cea5da09feb9abfaa6 authored over 6 years ago by Rich Felker <[email protected]>
consistently use _NSIG/8 idiom for kernel sigset size in sigaction

this code in sigaction was the only place where sizeof was being
applied to the kernel sigaction...

d0d212525ec7d08a4770fba97aa913ea34cafdb2 authored over 6 years ago by Rich Felker <[email protected]>
always terminate by SIGABRT when abort is called

Linux makes this surprisingly difficult, but it can be done. the trick
here is using the fact th...

9b14ad541068d4f7d0be9bcd1ff4c70090d868d3 authored over 6 years ago by Rich Felker <[email protected]>
optimize raise not to make a syscall for getting tid

assuming signals are blocked, which they are here, the tid in the
thread structure is always val...

0b4c92b7acf63529858e7f8a3bb6505cd2b6e962 authored over 6 years ago by Rich Felker <[email protected]>
prevent perror from clobbering stderr's orientation

this requirement is specified by POSIX.

cff4b910ab210e5c35f768c75c4562b3ae3e86f2 authored over 6 years ago by Rich Felker <[email protected]>
prevent psignal/psiginfo from clobbering stderr orientation, errno

these functions are specified to write to stderr but not set its
orientation, presumably so that...

cd8d8309975893736fe03e10b72de9678c5784fb authored over 6 years ago by Rich Felker <[email protected]>
make vfprintf set stream orientation even for zero-length output

if no output is produced, no underlying fwrite will ever be called,
but byte-oriented printf fun...

a43a7b215cf7b71d1371c63927c17bae7177aa95 authored over 6 years ago by Rich Felker <[email protected]>
re-fix vfprintf temporary buffer logic

commit b5a8b28915aad17b6f49ccacd6d3fef3890844d1 setup the write buffer
bound pointers for the te...

f1791f42ef6d22e68dfc1ee45c0a478b156ce46d authored over 6 years ago by Rich Felker <[email protected]>
fix missing flush of stderr at exit if it was put in buffered mode

commit 0b80a7b0404b6e49b0b724e3e3fe0ed5af3b08ef added the ability to
set application-provided st...

ddc947eda311331959c73dbc4491afcfe2326346 authored over 6 years ago by Rich Felker <[email protected]>
fix async thread cancellation on sh-fdpic

if __cp_cancel was reached via __syscall_cp, r12 will necessarily
still contain a GOT pointer (f...

35cd7c0950b1cb98b62e6dfb2be87e345dac75dd authored over 6 years ago by Rich Felker <[email protected]>
fix async thread cancellation on powerpc64

entering the local entry point for __cancel from __cp_cancel is valid
if __cp_cancel was reached...

0ec49dab6794166d67fae4764ce7fdea42ea6103 authored over 6 years ago by Rich Felker <[email protected]>
vfwprintf: honor field width with 'c' format type

9cdaf1a86bf7790c8dec749118392ee78101ee37 authored over 6 years ago by A. Wilcox <[email protected]>
fix several values reported by sysconf

- REALTIME_SIGNALS is supposed to be version-valued
- DELAYTIMER_MAX was wrongly using the min a...

d41cdef9198e635270d30e82be939d4ea0cbce82 authored over 6 years ago by Rich Felker <[email protected]>
fix return value of system on failure to spawn child process

the value 0x7f00 (as if by _exit(127)) is specified only for the case
where the child is created...

1d297a2821f8c5c5bc13b0bad88c966603ef46dc authored over 6 years ago by Rich Felker <[email protected]>
set stream orientations in open_[w]memstream

fundamentally there is no good reason these functions need to set an
orientation (morally it sho...

b152d575fdde1b4173afb4cade55f35b6b2e9128 authored over 6 years ago by Rich Felker <[email protected]>
make fmemopen's w+ mode truncate the buffer

the w+ mode is specified to "truncate the buffer contents". like most
of fmemopen, exactly what ...

f66022dda8d18e6732626c7806f6c4d32023d574 authored over 6 years ago by Rich Felker <[email protected]>
set errno when fileno is called on a FILE with no underlying fd

this is a POSIX requirement.

also remove the gratuitous locking shenanigans and simply access f...

b39b47bac8ee5505cfc595000a140c35460e1cac authored over 6 years ago by Rich Felker <[email protected]>