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 parsing of quoted time zone names

Fix parsing of the < > quoted time zone names. Compare the correct
character instead of repeated...

8ca27ac4bfe73bff785d0c26c1de0da92b55e5c6 authored about 8 years ago
remove redundant feature test macro checks in sys/time.h

this header is XSI-shaded itself and thus does not need to limit
specific content to _XOPEN_SOURCE.

7352b59d68aa6d931f9f882b2e0f9de6314d733f authored about 8 years ago
redesign snprintf without undefined behavior

the old snprintf design setup the FILE buffer pointers to point
directly into the destination bu...

ed8696742504b6182954254e78ec123c8bcd8d3b authored over 8 years ago
fix various header namespace issues under feature-test-macro control

reported and changes suggested by Daniel Sabogal.

7597fc25a2743d49500926a286da71f8e033936c authored over 8 years ago
remove parameter names from public headers

inclusion of these names was unintentional and in most cases is a
namespace violation. Daniel Sa...

2ed4e9d9279117ffa50294095e172804cd1b68e5 authored over 8 years ago
fix misspelling of a legacy macro name in sys/param.h

4b8f94c2501e6fea3db631b73b0c91e34e2134cf authored over 8 years ago
add missing if_ether.h constants

ETH_P_HSR (IEC 62439-3 HSRv1) added in
linux 4.7 commit ee1c27977284907d40f7f72c2d078d709f15811f...

71e83927654d1df0afa0d8f4f69391659321ddb0 authored over 8 years ago
add missing if_arp.h constant

ARPHRD_6LOWPAN (IPv6 over LoWPAN) added in
linux 3.14 commit 0abc652c796dab74d34d60473ec5594cd21...

79c7ded0edaa0b3ab3fc95bf3b76a9e67683454a authored over 8 years ago
fix typo in utmpx.h

1fa2a32d1e2d25f493058812008face73d411b2b authored over 8 years ago
add missing confstr constants

the _CS_V6_ENV and _CS_V7_ENV constants are required to be available for use
with confstr. glibc...

104e8a0e3b30f6dda6ce9c1b901a6bb8ee046616 authored over 8 years ago
fix minor problem in previous strtod non-nearest rounding bug fix

commit 6ffdc4579ffb34f4aab69ab4c081badabc7c0a9a set lnz in the code
path for non-zero digits aft...

e314258e2fe75b7443db84d2927315dea0f337c8 authored over 8 years ago
fix strtod int optimization in non-nearest rounding mode

the mid-sized integer optimization relies on lnz set up properly
to mark the last non-zero decim...

6ffdc4579ffb34f4aab69ab4c081badabc7c0a9a authored over 8 years ago
fix strtod and strtof rounding with many trailing zeros

in certain cases excessive trailing zeros could cause incorrect
rounding from long double to dou...

d184a09e0529f33d8ddddb8825039133483a2c41 authored over 8 years ago
fix gratuitous undefined behavior in strptime

accessing an object of type const char *restrict as if it had type
char * is not defined.

f33b17585058381491e6fda08f491b8e48c7980c authored over 8 years ago
fix getopt_long_only misinterpreting "--" as an option

b24f1d2520c87077cef21e085893e5f3c565a6df authored over 8 years ago
fix float formatting of some exact halfway cases

in nearest rounding mode exact halfway cases were not following the
round to even rule if the ro...

51ab6db4ed115d079d7131975e4adb074ba9ef9d authored over 8 years ago
add pthread_setname_np

the thread name is displayed by gdb's "info threads".

8fb28b0b3e7a5e958fb844722a4b2ef9bc244af1 authored over 8 years ago
fix clock_nanosleep error case

posix requires that EINVAL be returned if the first parameter specifies
the cpu-time clock of th...

3ca2d2d4aef910663785fe232d7d2127a22d8a84 authored over 8 years ago
math: fix pow signed shift ub

j is int32_t and thus j<<31 is undefined if j==1, so j is changed to
uint32_t locally as a quick...

688d3da0f1730daddbc954bbc2d27cc96ceee04c authored over 8 years ago
update icmphdr struct following linux v4.8

add union field that is used in the kernel for SIT/GRE tunneling ICMPv4
messages. see linux comm...

87643335ac699b14527bbf807956cf8911b86bfa authored over 8 years ago
add TCP_REPAIR_WINDOW to netinet/tcp.h from linux v4.8

another kernel internal state exposure for checkpoint-restore.
see linux commit b1ed4c4fa9a5ccf3...

cc7c95e98e4822f165835aa956adad33d3c1fbd0 authored over 8 years ago
add bits/hwcap.h and include it in sys/auxv.h

aarch64, arm, mips, mips64, mipsn32, powerpc, powerpc64 and sh have
cpu feature bits defined in ...

fe39aaae0eafdab3340ea9a4c4b275c3528b4d75 authored over 8 years ago
elf.h: update EM_ elf machine defines and add R_BPF_ defines

sync with gabi: http://www.sco.com/developers/gabi/latest/ch4.eheader.html

EM_BPF is new in lin...

5a05f67599ff06f9255aa4119cfecb85575d6e20 authored over 8 years ago
add ETH_P_NCSI to netinet/if_ether.h from linux v4.8

see linux commit 6389eaa7fa9c3ee6c7d39f6087b86660d17236ac

9487cc5f2253b2fc82a3e19f3aaa0ade2a630de5 authored over 8 years ago
add sh syscall numbers from linux v4.8

sh was updated in linux commit 74bdaa611fa69368fb4032ad437af073d31116bd
to have numbers for new ...

189acc705ef8d9a0ae06152898fbb16fd6a2491a authored over 8 years ago
fix preadv2 and pwritev2 syscall numbers on x32 for linux v4.8

the numbers were wrong in musl, but they were also wrong in the kernel
and got fixed in v4.8 com...

2ed811a38a92e3710e0eba98b85ccd880ceb703d authored over 8 years ago
use dynamic buffer for getmntent

overlayfs may have fairly long lines so we use getline to allocate a
buffer dynamically. The buf...

05973dc3bbc1aca9b3c8347de6879ed72147ab3b authored over 8 years ago
fix integer overflows and uncaught EOVERFLOW in printf core

this patch fixes a large number of missed internal signed-overflow
checks and errors in determin...

167dfe9672c116b315e72e57a55c7769f180dffa authored over 8 years ago
fix integer overflow in float printf needed-precision computation

if the requested precision is close to INT_MAX, adding
LDBL_MANT_DIG/3+8 overflows. in practice ...

70d2687d85c314963cf280759b23fd4573ff0d82 authored over 8 years ago
fix regexec with haystack strings longer than INT_MAX

we inherited from TRE regexec code that's utterly wrong with respect
to the integer types it's u...

aee6abb2400b9a955c2b41166db1c22f63ad42ef authored over 8 years ago
fix missing integer overflow checks in regexec buffer size computations

most of the possible overflows were already ruled out in practice by
regcomp having already succ...

c3edc06d1e1360f3570db9155d6b318ae0d0f0f7 authored over 8 years ago
fix strftime %y for negative tm_year

583ea83541dcc6481c7a1bd1a9b485526bad84a1 authored over 8 years ago
fix getservby*_r result pointer value on error

this is a clone of the fix to the gethostby*_r functions in
commit fe82bb9b921be34370e6b71a1c6f0...

8d7a3f40c8de414122eb8eb2131291782ee8ed15 authored over 8 years ago
remove dead case in gethostbyname2_r

this case statement was accidently left behind when this function
was refactored in commit e8f39...

d917ef0b8468f77634df59a1a6650aff5adb6b6a authored over 8 years ago
fix undefined behavior in sched.h cpu_set_t usage

since cpu sets can be dynamically allocated and have variable size,
accessing their contents via...

66570ec9c465e3c6c5d6dbd7dd42e45041a39288 authored over 8 years ago
simplify/refactor fflush and make fflush_unlocked an alias for fflush

previously, fflush_unlocked was an alias for an internal backend that
was called by fflush, eith...

c002668eb0352e619ea7064e4940b397b4a6e68d authored over 8 years ago
add missing *_unlocked and wcsftime_l prototypes to wchar.h

these functions had been implemented, but prototypes were not made available

5505f6afae9acf37ef565c68a07ca3df7b1ae2cb authored over 8 years ago
fix if_indextoname error case

posix requires errno to be set to ENXIO if the interface does not exist.
linux returns ENODEV in...

32055d52ca43d867d6dbb763dc5213a8d3536a23 authored over 8 years ago
fix ifru_data and ifcu_buf types in net/if.h

glibc, freebsd, and openbsd use character pointers (caddr_t) for
these fields. only linux uses v...

3848a99f65952a77c03bbd905cae988f37f13ea6 authored over 8 years ago
fix printf regression with alt-form octal, zero flag, and field width

commit b91cdbe2bc8b626aa04dc6e3e84345accf34e4b1, in fixing another
issue, changed the logic for ...

78897b0dc00b7cd5c29af5e0b7eebf2396d8dce0 authored over 8 years ago
restore _Noreturn to __assert_fail

this reverts commit 2c1f8fd5da3306fd7c8a2267467e44eb61f12dd4. without
the _Noreturn attribute, t...

e738b8cbe64b6dd3ed9f47b6d4cd7eb2c422b38d authored over 8 years ago
getdtablesize: fix returning hard instead of soft rlimit

This makes the result consistent with sysconf(_SC_OPEN_MAX).

397586625e71d166f493f16bfe04f3005ae464c3 authored over 8 years ago
fix FFSYNC by changing it to O_SYNC

O_FSYNC was never defined and is legacy/wrong, nothing seems to use it.

c1f4ed150137d793c9d07356305a89e8785e7e02 authored over 8 years ago
configure: handle mipsisa64* triplet as a mips64 target

the gnu config.sub script recognizes several mipsisa64* cpu types
that musl supports as mips64 t...

fff880185bb3624acfbd2c6a75a1655bcd782c51 authored over 8 years ago
math: fix 128bit long double inverse trigonometric functions

there was a copy paste error that could cause large ulp errors
in atan2l, atanl, asinl and acosl...

5b5db97f7e80bde2678aed72336a28375e800354 authored over 8 years ago
verify that ttyname refers to the same file as the fd

linux containers use separate mount namespace so the /proc
symlink might not point to the right ...

0a950dcf15bb9f7274c804dca490e9e20e475f3e authored over 8 years ago
microblaze: add syscall numbers from linux v4.7

userfaultfd, membarrier and mlock2 syscalls got wired up in linux
commit fbce3befd60d40639bf3c6b...

2b41959b59e3dfd70cb4b592ffb2d97b47584aaa authored over 8 years ago
add SS_AUTODISARM sigaltstack ss_flags from linux v4.7 to signal.h

only matters if swapcontext is used in a signal handler running on an
altstack, new in linux com...

9680e1d03a794b0e0d5815c749478228ed40a36d authored over 8 years ago
add UDP_ENCAP_GTP0, UDP_ENCAP_GTP1U from linux v4.7 to netinet/udp.h

for GPRS tunneling protocol, new in linux commit
459aa660eb1d8ce67080da1983bb81d716aa5a69

c6519d4a71a7579fec4b8a72635c2cf3732f8d5d authored over 8 years ago
add PF_QIPCRTR, AF_QIPCRTR from linux v4.7 to sys/socket.h

macros for qualcom ip router protocol, new in linux commit
bdabad3e363d825ddf9679dd431cca0b2c30f881

0f8ad40be0586907f12a72be1985df68e411b093 authored over 8 years ago
fix pread/pwrite syscall calling convention on sh

despite sh not generally using register-pair alignment for 64-bit
syscall arguments, there are a...

7cc3a28eed7e3b72a1ce4568fb55154bb0540726 authored over 8 years ago
revert unrelated change that slipped into last commit

39494a273eaa6b714e0fa0c59ce7a1f5fbc80a1e authored over 8 years ago
fix regression in tcsetattr on all mips archs

revert commit 8c316e9e49d37ad92c2e7493e16166a2afca419f. it was wrong
and does not match how the ...

cff5747c74c41b22f1ce1340978b1c226a8cdf32 authored over 8 years ago
fix asctime day/month names not to vary by locale

the FIXME comment here was overlooked at the time locale support was
added.

6399fa9d29ea83de4735680b77d457bd59606532 authored over 8 years ago
remove obsolete and unused gethostbyaddr implementation

this code was already under #if 0, but could be confusing if a reader
didn't notice that, and it...

7c82870d4543f0eeb0e3a2638b083ff97b41a0fb authored over 8 years ago
remove obsolete gitignore rules

Since commit 2f853dd6b9a95d5b13ee8f9df762125e0588df5d, all generated
headers are generated under...

5ab0b20ea6fc5a5609825a874bf7d79c4f987792 authored over 8 years ago
remove or1k version of sem.h

It's identical to the generic version, after evaluating the endian
preprocessor checks in the ge...

e1679ef1a1b7658dc7f8c9c97aeac7c7597c66a0 authored over 8 years ago
release 1.1.15

faf69b9a73d09fafcbe4fd3007b8d8724293d8e1 authored over 8 years ago
add stdc-predef.h for library-level predefined macros

modern compilers (for gcc, versions 4.8 and later) automatically
pre-include <stdc-predef.h> to ...

0f47367751a4baca80ef4f5ab11dbb9b6d7e8bdd authored over 8 years ago
improve abort fallback behavior when raising SIGABRT fails to terminate

these changes still do not yield a fully-conforming abort, but they
fix two known issues:

- per...

0c8bc102f287d3993751d80ba2dffb01e0c8bc7f authored over 8 years ago
make brace placement in public header typedef'd structs consistent

commit befa5866ee30d09c0c96e88af2eabff5911342ea performed this change
for struct definitions tha...

ee3f0c551669ca1c61abac0888f93a27b0b17856 authored over 8 years ago
add EF_SH_ sh specific macros to elf.h

last time elf.h was thoroughly updated sh was not yet supported
so these processor specific e_fl...

3c3b09980d792ea8393f0a3865735b2ff5ecc765 authored over 8 years ago
add missing x86 relocs to elf.h

see
https://sourceware.org/ml/libc-alpha/2016-01/msg00822.html

c3be411df7387a8c516b169baf91cf1cccef99b3 authored over 8 years ago
add NT_ARM_SYSTEM_CALL to elf.h

new regset in linux v3.18 for ptrace.

84fd4e4ffdefeec296a56b1f307413a5171eb9e1 authored over 8 years ago
add SHF_COMPRESSED section flag to elf.h

following
http://www.sco.com/developers/gabi/latest/ch4.sheader.html

af17dc40dd91fbfc5a0ca487c52f6c419567f967 authored over 8 years ago
add DT_MIPS_RLD_MAP_REL to elf.h

marks different RLD_MAP for debugging PIE binaries.

7c3b67234c859f98a6365d215c5362c73eed5765 authored over 8 years ago
update elf.h with mips abi flags support

following
https://sourceware.org/ml/libc-alpha/2014-05/msg00332.html

abbdf0f51d975a1120483a7bdaf92d65663a4f37 authored over 8 years ago
add nios2 definitions to elf.h

347d0617d11c0ae4c5e501d4232d2b4a5cfc207a authored over 8 years ago
add powerpc tls optimization related definitions to elf.h

see
https://sourceware.org/ml/libc-alpha/2015-03/msg00580.html

29a96c1980db9c6eee70e8935a9a4cb3a0ac954d authored over 8 years ago
update elf.h with new aarch64 relocs

add ilp32 related relocs and alternative names for a few macros following
https://sourceware.org...

49eb322425bb990ec4cf57578a730fc0d2b8afee authored over 8 years ago
update elf.h with powerpc64 elfv2 abi related macros

see
https://sourceware.org/ml/libc-alpha/2013-11/msg00315.html
https://sourceware.org/ml/libc-al...

b921e0fd1fc9840fdfc6dde27dc7453047437f0f authored over 8 years ago
add new powerpc64 relocations to elf.h

following the corresponding binutils and glibc changes
https://sourceware.org/ml/binutils/2013-1...

35b58194dc065dd7daec815ba74372a71f9654a4 authored over 8 years ago
add EM_OPENRISC again to elf.h

it was changed to EM_OR1K in 200d15479c0bc48471ee7b8e538ce33af990f82e
as that was meant to be th...

308e4bc61883c82aeda70e20367b656cd35899f1 authored over 8 years ago
make brace placement in public header struct definitions consistent

placing the opening brace on the same line as the struct keyword/tag
is the style I prefer and s...

befa5866ee30d09c0c96e88af2eabff5911342ea authored over 8 years ago
fix misplaced indention in sys/procfs.h

093288dcb37a30c634b0a00eb7e2a0dbe72ebf95 authored over 8 years ago
fix powerpc termios.h macro exposure/namespace issues

same changes as in the generic header.

and BOTHER and IBSHIFT were removed (present in linux ua...

3bda42ac4bddc600bdae0f57c5b65c4482fbfefc authored over 8 years ago
format mips bits/termios.h consistently mips64 and n32 versions

with this change, all three files are identical.

45ba07fded06005cddbf36b1a8f0c29c63724893 authored over 8 years ago
fix mips termios.h macro exposure/namespace issues

same changes to the defined macros as in powerpc and generic bits.

ee9b5900fb098edd3e8d3df375cac8b2cfe8551f authored over 8 years ago
fix TCS* definitions in mips termios.h

these were incorrectly using the generic definitions.

8c316e9e49d37ad92c2e7493e16166a2afca419f authored over 8 years ago
fix CBAUDEX in powerpc termios.h

it seems it was a typo.

cae8ac485fdcf0227f7dcc5b5af93df72fb01a9e authored over 8 years ago
fix generic termios.h macro exposure/namespace issues

add EXTA, EXTB, CIBAUD, CMSPAR, XCASE macros and hide them as well as
CBAUD, ECHOCTL, ECHOPRT, E...

2e128574c9c46b240a15c07058b772fb7e47a75e authored over 8 years ago
define appropriate feature test macros to get CBAUD from termios.h

126f58b2f44a0ba730831a6a4fef8daf85d9a601 authored over 8 years ago
fix TIOCMSET in mips ioctl.h

it seems it was a typo.

809495f7b77abba57cd6da600d9dbcf6d2d8f73b authored over 8 years ago
remove termios2 related ioctls from sh ioctl.h

musl does not define these on other targets either.

6fce6ca129c34d8975f777216d32cf92e77c18f2 authored over 8 years ago
fix FIOQSIZE in arm ioctl.h

arm ioctl.h is the same as the generic one except this macro,
so a workaround solution is used t...

cd208b0037c60da625fdd1f6a1459bc37115aacd authored over 8 years ago
fix mips, mips64, mipsn32 TIOCM_* macros in ioctl.h

TIOCM_ macros were wrongly using the asm-generic/termios.h definitions
instead of the mips speci...

b76d4e06f1686337713a31a9e7274e1321ae41b6 authored over 8 years ago
remove mips and powerpc ioctls that are missing from linux uapi

mips and powerpc use their own asm/ioctls.h, not the asm-generic/ioctls.h
and they lack termiox ...

058c0b2d700b1092ad5967c742c790b9c807e6ae authored over 8 years ago
add missing TIOC* macros to ioctl.h

these are defined in linux asm/ioctls.h.
(powerpc64 and powerpc bits/ioctl.h are now identical)

5ce901279ec8b51fd80fb33bdebbbe54553a6057 authored over 8 years ago
remove ioctl macros that were removed from linux uapi

TIOCTTYGSTRUCT, TIOCGHAYESESP, TIOCSHAYESESP and TIOCM_MODEM_BITS
were removed from the linux ua...

2df9ae916120212442201bbf30271a1170e508cf authored over 8 years ago
add missing SIOCSIFNAME from linux/sockios.h to ioctl.h

glibc ioctl.h has it too.

8735a921d0242be0d7e6dbe0f76f79e09d4f06dd authored over 8 years ago
use the generic ioctl.h for x86_64, x32 and aarch64

they were slightly different in musl, but should be the same:
the linux uapi and glibc headers a...

76d7cfb7e677eb0fcacdabf67514b51e777269dd authored over 8 years ago
add consistent reserved fields in mips64/n32 termios structures

the (unused) speed fields were omitted when these ports were first
added (within this release cy...

7158481d51960d4ff8fe2f113bcbfa7d5b862648 authored over 8 years ago
fix posix_fadvise syscall args on powerpc, unify with arm fix

commit 6d38c9cf80f47623e5e48190046673bbd0dc410b provided an
arm-specific version of posix_fadvis...

3dd27f3aabf03b109c30648c3f7a209302deee7f authored over 8 years ago
pthread: implement try/timed join variants

3d98146146dbe138b380ea7d7f9b93139d768828 authored over 8 years ago
fix misordered syscall arguments for posix_fadvise on arm

the arm version of the syscall has a custom argument ordering to avoid
needing a 7-argument sysc...

6d38c9cf80f47623e5e48190046673bbd0dc410b authored over 8 years ago
in posix_fadvise, don't bypass __syscall macro infrastructure

when commit 0b6eb2dfb2e84a8a51906e7634f3d5edc230b058 added the
parentheses around __syscall to i...

804debee2b1550d10b5ea7290240860dca40ea72 authored over 8 years ago
refactor name_from_dns in hostname lookup backend

loop over an address family / resource record mapping to avoid
repetitive code.

4adc6c33e769e647b6fe73752f727c58d09e4e53 authored over 8 years ago
in performing dns lookups, check result from res_mkquery

don't send a query that may be malformed.

04bced403dead13d20a46a1bd00ab1eb2c50b882 authored over 8 years ago
add RUSAGE_THREAD (Linux extension) definition to sys/resource.h

5c43e1dbc8716536551d392f834c6752a3e82cec authored over 8 years ago
fix incorrect definition of RUSAGE_CHILDREN in sys/resource.h

the kernel ABI value for RUSAGE_CHILDREN is -1, not 1. the latter is
actually interpreted as RUS...

b3bbc7b16067c82e528d3de580f807b8316f096e authored over 8 years ago