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 dlsym RTLD_NEXT support

previously this was being handled the same as a library-specific,
dependency-order lookup on the...

d93e028c6bbd491592313fc77e056f6424ea4668 authored over 12 years ago
putw is supposed to return 0 (not the value written) on success

this is not a standard but it's the traditional behavior and it's more
useful because the caller...

920baab81f98a3cae3436361cdd044afe21fe347 authored over 12 years ago
make sure getw/putw agree with prototypes by defining _GNU_SOURCE

98eddc677609c20796982f3171165700613e3cf2 authored over 12 years ago
add prototypes for getw/putw

25b88f081076a7beb2331ec219640d1a829cdcc4 authored over 12 years ago
configure: only use -ffloat-store on i386

this option is expensive and only used on old gcc's that lack
-fexcess-precision=standed, but it...

2121b8a44f086f6fb8aed98102379e7de9a4a5f1 authored over 12 years ago
jmp_buf overhaul fixing several issues

on arm, the location of the saved-signal-mask flag and mask were off
by one between sigsetjmp an...

d6c0efe106b1016108207fb6872820c06dcef4f8 authored over 12 years ago
fix sigsetjmp on arm (needs asm)

no idea why gcc refuses to compile the C code to use a tail call, but
it's best to use asm anywa...

e6129e6d836e5f4725d9b14ba7457b32e24adc61 authored over 12 years ago
fix missing function declarations for __stdio_exit

8e26a591d059382cd28b96e457ede2fe07c550c7 authored over 12 years ago
fix missing prototype and simplify sincosl on ld64 archs

007c03f84f5c4666d7260a53d67249ce4bccc140 authored over 12 years ago
fix invalid implicit pointer conversion in ld64 modfl

fe2df4ad3ea6080d01dea8d836cd4bbc896160fd authored over 12 years ago
replace old and ugly crypt implementation

the new version is largely the work of Solar Designer, with minor
changes for integration with m...

cdf51506ce895286011ff0abe5434557845108ee authored over 12 years ago
fix arm crti/crtn code

lr must be saved because init/fini-section code from the compiler
clobbers it. this was not a pr...

9abab94b211c5103e3f6baf97ad76523618a553c authored over 12 years ago
release notes for 0.9.2

ec820f1262a5d6331ad0fe9b56a8a84365766fd1 authored over 12 years ago
add process_vm_readv and process_vm_writev syscall wrappers

based on a patch submitted by Kristian L. <[email protected]>

9cf9c39e48342a5d4007824d49b88132d93d83e3 authored over 12 years ago
update syscall defs to latest kernel ones

patch submitted by Kristian L. <[email protected]>

213db3e3fa715288dea6a0d317b9c04b609dca7b authored over 12 years ago
proper error handling for fcntl F_GETOWN on modern kernels

on old kernels, there's no way to detect errors; we must assume
negative syscall return values a...

4e8b0938d90793d6e1e200d6b25e6581b72bd4d0 authored over 12 years ago
math: fix fma bug on x86 (found by Bruno Haible with gnulib)

The long double adjustment was wrong:
The usual check is
mant_bits & 0x7ff == 0x400
before doi...

e5fb6820a42a1f675ba09c15273953e1ace65777 authored over 12 years ago
fix broken wcwidth tables

unicode char data has both "W" and "F" wide types and the old table
only included the "W" ones. ...

ac4fb51dde2f1fe9371a4cb51ff309d4868245ec authored over 12 years ago
support ld80 pseudo-denormal invalid bit patterns; treat them as nan

this is silly, but it makes apps that read binary junk and interpret
it as ld80 "safer", and it ...

fad231b9609470e4c51b29b6bcb9abd23b7e9346 authored over 12 years ago
fix ptsname_r to conform to the upcoming posix requirements

it should return the error code rather than 0/-1 and setting errno.

c21a19d5a559cbd39963b89547900d24624f1fad authored over 12 years ago
fix fwrite return value when full write does not succeed

cea106fb8976d04b916953469439bc58fa111266 authored over 12 years ago
avoid cancellation in pclose

at the point pclose might receive and act on cancellation, it has
already invalidated the FILE p...

1af8c255040b3e1ba4913fd935d117490bfe8774 authored over 12 years ago
fix invalid memory access in pclose

9799560f79d37fb53d821b2f0b591a6ff260ebc3 authored over 12 years ago
make popen cancellation-safe

close was the only cancellation point called from popen, but it left
popen with major resource l...

9c21f4342c787e04a9e31ad8a1d87a65c89968ca authored over 12 years ago
popen: handle issues with fd0/1 being closed

also check for failure of dup2 and abort the child rather than
reading/writing the wrong file.

f305467aad4659e92fff84be6c89d4767b6f99d4 authored over 12 years ago
duplocale: don't crash when called with LC_GLOBAL_LOCALE

posix has resolved to add this usage; for now, we just avoid writing
anything to the new locale ...

b3d7d062af63d833b9a984770320534719252b61 authored over 12 years ago
make strerror_r behave nicer on failure

if the buffer is too short, at least return a partial string. this is
helpful if the caller is l...

f313a1622448de578ab0b11a881f44a02c9082e6 authored over 12 years ago
fix another oob pointer arithmetic issue in printf floating point

this one could never cause any problems unless the compiler/machine
goes to extra trouble to bre...

839bff64a17c1ecaed60feefd9b63554ca9cbad6 authored over 12 years ago
minor perror behavior fix

patch by nsz

82a4499e671db62fab1e3928de6e00bb109d4c8d authored over 12 years ago
fix localeconv values and implementation

dynamic-allocation of the structure is not valid; it can crash an
application if malloc fails. s...

85a3ba3a289aa1e0d6cb8ad95f6f358a245a9422 authored over 12 years ago
fix mistake in length test in getlogin_r

this was actually dangerously wrong, but presumably nobody uses this
broken function anymore any...

ee96c50d4bac709f02f7007ecf669952d56f1b2d authored over 12 years ago
fix dummied-out fsync

if we eventually have build options, it might be nice to make an
option to dummy this out again,...

ee1f69a3606987a973ccd0b378d26d0fb077364a authored over 12 years ago
fix dummied-out fdatasync

ca1773d8645672f6e67b10bc94aa5639b01a1ebe authored over 12 years ago
fix pointer overflow bug in floating point printf

large precision values could cause out-of-bounds pointer arithmetic in
computing the precision c...

914949d321448bd2189bdcbce794dbae2c8ed16e authored over 12 years ago
add vhangup syscall wrapper

request/patch by william haddonthethird, slightly modifed to add
_GNU_SOURCE feature test macro ...

25c8444919cc129264f7b7f31090d05403477719 authored over 12 years ago
include declarations for new stdio_ext functions (gnulib support)

5bc8e845bb4de2c472581136d2268c4bf103bcd4 authored over 12 years ago
add new stdio extension functions to make gnulib happy

this is mildly ugly, but less ugly than gnulib trying to poke at the
definition of the FILE stru...

e15171b8d8e80e8b5bcf4e95b1709697858f545a authored over 12 years ago
stdio: handle file position correctly at program exit

for seekable files, posix imposed requirements on the offset of the
underlying open file descrip...

a71e0af25544fd2486e57ea51c6d05abdbf44c3e authored over 12 years ago
minor cleanup in fflush

ca8a4e7fbdeeb05b58ac3d456bae696623b8e312 authored over 12 years ago
remove flush hook cruft that was never used from stdio

there is no need/use for a flush hook. the write function serves this
purpose already. i origina...

2499cd9d9be0ba74e16a6c3dd304e6d69070be35 authored over 12 years ago
fix multiple iconv bugs reading utf-16/32 and wchar_t

26710be7148d51a954c4fe4acedab90d161e609a authored over 12 years ago
fix iconv dest utf-16: unavailable chars must be replaced; EILSEQ is wrong

673633c689989c5cb7ba0b919f8ef82c4041e2ec authored over 12 years ago
fix erroneous utf-16 encoding with surrogates in iconv

apparently this was never tested before.

a2f149b5d183a842487cc7c76d63511b67db32f5 authored over 12 years ago
change stdio_ext __freading/__fwriting semantics slightly

the old behavior was to only consider a stream to be "reading" or
"writing" if it had buffered, ...

deb90c79e5c498fbb48de1423df034447f330e38 authored over 12 years ago
fdopen should set errno when it fails due to invalid mode string

3b43d10fafd64ac0a93fab463330a936b90ec15c authored over 12 years ago
header file fixes: multiple include guard consistency and correctness

one file was reusing another file's macro name, and many had
inconsistent underscores and applic...

57d5fff5f7dd9af27152c84ce041c18597a22766 authored over 12 years ago
direct syscall to open in __init_security needs O_LARGEFILE

it probably does not matter for /dev/null, but this should be done
consistently anyway.

1dd6eee692be09f04398f378446afec96bc112f2 authored over 12 years ago
reorder exit code to defer stdio flush until after dtors

this is required in case dtors use stdio.

also remove the old comments; one was cruft from when...

ad5a332c750550adbd45f474e5936cae65b4fd5e authored over 12 years ago
revert one change in time.h; no evidence BSD_SOURCE should expose these..

de05a2ac22d33bd7631f182143ecea6dd01d9406 authored over 12 years ago
fix feature test macros in time.h

stime is not _XOPEN_SOURCE, and some functions were missing with
_BSD_SOURCE..

cf254c32ec47df4975d14e97233918e42ee70cea authored over 12 years ago
add timegm function (inverse of gmtime), nonstandard

23be72ae4534c13a7fd03f580934cc251ada619f authored over 12 years ago
add init_module/delete_module syscall wrappers

these are not exposed publicly in any header, but the few programs
that use them (modutils/kmod,...

2169265ec6c902cd460bf96a1a0b5103657a4954 authored over 12 years ago
add (currently stubbed due to stubbed strverscmp) versionsort function

based on patch by Emil Renner Berthing, with minor changes to dirent.h
for LFS64 and organizatio...

fbffcee63dde1cba27021177d2ed9ba4f3792a57 authored over 12 years ago
add deprecated capabilities functions

these were left in glibc for binary compatibility after the public
part of the interface was rem...

e361019c24b4dc930aa9431b895b478e1eee04e0 authored over 12 years ago
fix char signedness bug (arm-specific) in dynamic linker

6343ac8f5ab41b993a1b07563f9fc3787528d3ef authored over 12 years ago
add pthread_attr_setstack interface (and get)

i originally omitted these (optional, per POSIX) interfaces because i
considered them backwards ...

819006a88b9473872fee91135b06f4e23231d97e authored over 12 years ago
fix scanning of "-0x" pseudo-hex float (must give negative zero)

f457b1cb0d49f1b47bc7baf4bb516f1860816f03 authored over 12 years ago
fix signedness errors in stdint.h constant macros

the types of these expressions must match the integer promotions.
unsigned 8- and 16-bit values ...

3d649468c7315d43aa99a44e882118d6872cb6ec authored over 12 years ago
fix %ls breakage in last printf fix

signedness issue kept %ls with no precision from working at all

63d40196b91df8937424cfa4495e8991c5a20827 authored over 12 years ago
fix printf %ls with precision limit over-read issue

printf was not printing too many characters, but it was reading one
too many wchar_t elements fr...

6e9ff6a4cf4c6ab8f18e35934e33579c4caf2c3e authored over 12 years ago
fix sysinfo, try 2. it seems to work this time.

1429ce9ba2425b8abeefc311d56db5efe801d9d2 authored over 12 years ago
sysinfo struct was utter nonsense; no idea where it came from.

this broke the busybox "free" utility (memory reporting) and possibly
other things like uptime.

e86b18a63eb6b65e18e761212f69a0abc16b50b1 authored over 12 years ago
fix scanf bug reading literals after width-limited field

the field width limit was not being cleared before reading the
literal, causing spurious failure...

31eaad4796b9da459b15da70097c2b619fb01ea9 authored over 12 years ago
check for ld support of -Bsymbolic-functions; disable shared if not avail

this issue affects the last gpl2 version of binutils, which some
people are still using out of a...

498a100d05666024fd0d409a27709a03e7e58dd3 authored over 12 years ago
use -nostdlib in linker tests to avoid possible missing crt/lib issues

f1fd7577ba7eb2a202833e89c63b8e01dedfca05 authored over 12 years ago
avoid linking main program in linker tests

it's possible that the user has provided a compiler that does not have
any libc to link to, so l...

67a0383d07987cc4adeee3a06b60c666d9f9d62e authored over 12 years ago
make configure try to disable stack protector

in theory we could support stack protector in the libc itself, and
users wanting to experiment w...

0c5efde8d06670e8709e3bff548921b05a7da692 authored over 12 years ago
add configure check for gnu linker hash style setting

some broken distro-provided toolchains have modified gcc to produce
only "gnu hash" dynamic hash...

08f70a30c00c587856a95d5951fb486269e4f651 authored over 12 years ago
make gcc wrapper rewrite link options rather than just extending them

this is not tested yet, but should work to get rid of unwanted
--hash-style=gnu hacks present in...

6e0ad2277ae28ba55c4c73bbfd0898d90ececd33 authored over 12 years ago
treat failure of mprotect in map_library as a fatal load failure

the error will propagate up and be printed to the user at program
start time; at runtime, dlopen...

f7d15dcc543c3b65c751064a5e51a0ec462f3cdb authored over 12 years ago
fix ctype abi junk (pointer should point to 0 slot, not -128 slot)

908bed20cd877a6c0c290c0c56cc7057ecc00296 authored over 12 years ago
_GNU_SOURCE is supposed to imply _LARGEFILE64_SOURCE

this is ugly and stupid, but now that the *64 symbol names exist, a
lot of broken GNU software d...

3b94daba711090f1936f59fae6f7cbcba963b29e authored over 12 years ago
release notes for 0.9.1

bd45dc9446166186cfdd5bc89ba719afa9ee7d4c authored over 12 years ago
fix configure build/host/target terminology usage

278883d0e2fbf698370b8ddb16b79d5fff0febf3 authored over 12 years ago
ensure that abort always works

Per POSIX, "The abort() function shall cause abnormal process
termination to occur, unless the s...

2557d0ba47286ed3e868f8ddc9dbed0942fe99dc authored over 12 years ago
add some ugly aliases for LSB ABI compatibility

for some nonsensical reason, glibc's headers use inline functions that
redirect some of the stan...

6a4b9472fb0a85e55030b37ec3017ba0319e03f9 authored over 12 years ago
increase default thread stack size to 80k

I've been looking for data that would suggest a good default, and
since little has shown up, i'm...

13b3645c46518e0e2fb91f0d665e60f7a8a44b2b authored over 12 years ago
remove implementation-reserved bits when saving signal mask

this fix is necessary because a program could be started with some of
the implementation-reserve...

40bd1726b6aa93a8311a77a1fec6da0fe0489fd0 authored over 12 years ago
remove no-longer-needed unblocking of signals in pthread_create

this action is now performed in pthread_self initialization; it must
be performed there in case ...

1e597a3e9bbdbe82d2ffd3963019d3a3edeed859 authored over 12 years ago
add LSB abi junk for ctype functions

this should be the last major fix needed to support running
glibc-linked conforming POSIX progra...

9372655e884b3829c6639fc1a6047b2569f3c3ec authored over 12 years ago
declare environ in unistd.h when _GNU_SOURCE feature test macro is used

lots of broken programs expect this, and it's gotten to the point of
being a troubleshooting FAQ...

d200bd727beab4f687e4891e2febc16b4ab97020 authored over 12 years ago
use fistpll mnemonic instead of fistpq (more widely supported) on x86_64 too

this was fixed previously on i386 but the corresponding code on x86_64
was missed.

19e48c5531fda9c4767b99b754cb9345902dd100 authored over 12 years ago
add LSB ABI __xstat, etc. junk

9ea20dcbaafe790bb034adadf05698088a2f9fab authored over 12 years ago
enable LARGEFILE64 aliases

these will NOT be used when compiling with -D_LARGEFILE64_SOURCE on
musl; instead, they exist in...

a541297617e567eadc7448e1af35d7bb20461a8c authored over 12 years ago
fix musl-gcc wrapper to work with -pie

linking the wrong crt1.o resulted in textrels and thus crashing

ed6717277c4c5d6f3296d931d35a0f1beb73a024 authored over 12 years ago
there is no such GNU function fpurge, only __fpurge.

no idea where I got the idea fpurge should exist...

a34b0465ba14c70532b8eaba650a9eac228fce57 authored over 12 years ago
add prototype for BSD/GNU stdio *_unlocked extension functions

also fix up distinction of what is GNU-only and what's GNU+BSD

b63cab76ec1cd91b518cd3bad72ee993c94d44a2 authored over 12 years ago
remove duplicate lfs64 cruft in stdio.h

15c7af3e21e1e402067f9c2a7c8d3094ddc7f54f authored over 12 years ago
math: fix nextafter definition in tgmath.h

b1cf11c090900cc476c2a26d739e16aaffbdf6f5 authored over 12 years ago
add ldd and main program loading support to dynamic linker

5c1909a8d210cd08a776a2fd6681dbea1f0ae480 authored over 12 years ago
cleanup dynamic linker start code cruft

two actual issues: one is that __dynlink no longer wants/needs a GOT
pointer argument, so the co...

b94608ca10051e7911250aaa53f1435b0512018c authored over 12 years ago
fix overrun (n essentially ignored) in wcsncmp

bug report and solution by Richard Pennington

054ba185999d29f6ae9a8e19549da95f783655b6 authored over 12 years ago
fix failure of mbsinit(0) (not UB; required to return nonzero)

issue reported by Richard Pennington; slightly simpler fix applied

6436b371af2b52a7b60a5b4f304d1aca2f9f60b3 authored over 12 years ago
fix failure of strrchr(str, 0)

bug report and solution by Richard Pennington

aefd0f69bd22b825a6196e65b40a02e79fec23b5 authored over 12 years ago
avoid using pthread cleanup push/pop in stdio when not needed

unfortunately in dynamic-linked programs, these macros cause
pthread_self to be initialized, whi...

3f25354e624361f40011b242c492c2118184cc44 authored over 12 years ago
ensure pthread-internal signals are unblocked before threads are used

if the process started with these signals blocked, cancellation could
fail or setxid could deadl...

8cce15af83c04d8965561439f0a80a451a9b1af0 authored over 12 years ago
fix regex on arm

TRE has a broken assumption that wchar_t is signed, which is a sane
expectation, but not require...

8b4c232efe182f4a9c8c52c5638af8fec92987bf authored over 12 years ago
remove cruft from pthread structure (old cancellation stuff)

7efd14ecc92de7ccdf0209168a4ae6b73cd9e07a authored over 12 years ago
remove leftover cp_sp cruft from cancellation code, fix small bug

the bug was that cancellation requests which arrived while a
cancellation point was interrupted ...

73db33b94927d160f5dac5861a37ffbfd81d3ff6 authored over 12 years ago
fix arm syscall.h to reflect which syscalls actually exist (on EABI)

54c567649eaadb99175b3883659872f791e482b1 authored over 12 years ago