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 logic for matching search/domain keywords in resolv.conf

fe8453d2ee128cfcf8777a19659f1c1f19e052ac authored almost 9 years ago
factor resolv.conf parsing out of res_msend to its own file

this change is made in preparation for adding search domains, for
which higher-level code will n...

d6cb08bcaca4ff1f921375510ca72bccea969c75 authored almost 9 years ago
add errno setting to stub utmpxname function

19df86cbb39f2429f7c7e20c99c606c38a5fd4e9 authored almost 9 years ago
legacy/utmpx: Add utmp{,x}name stubs

378f8cb5222b63e4f8532c757ce54e4074567e1f authored almost 9 years ago
deduplicate the bulk of the arch bits headers

all bits headers that were identical for a number of 'clean' archs are
moved to the new arch/gen...

4dfac11538cb20c848c30d754863800061ee8c81 authored almost 9 years ago
add arch/generic include fallback to build rules

this sets the stage for the first phase of the bits deduplication.
bits headers which are identi...

efdf04cf877574b4e3905802e0039f844077f58f authored almost 9 years ago
remove unneeded -I options from configure test for may_alias attribute

this test does not include anything, so the -I options are not useful
and are just a maintenance...

e1d99894b6ce23055a2e29f72763e7fd9585a87f authored almost 9 years ago
mips: add vdso support

vdso support is available on mips starting with kernel 4.4, see kernel
commit a7f4df4e21 "MIPS: ...

b0bf52f3e9fd246762958821fdc2851add05d423 authored almost 9 years ago
improve clock_gettime and adapt it to support slightly-broken vdso

these changes are motivated by a functionally similar patch by Hauke
Mehrtens to address the nee...

a5ba2d7507eb6b4388c47f7893e025185496ff90 authored almost 9 years ago
fix siginfo_t for mips

si_errno and si_code are swapped in mips siginfo_t compared to other
archs and some si_code valu...

9a3b8f97a160ce292dcf0ef2a9358fa0e11e9ee3 authored about 9 years ago
move bits/signal.h include close to the top of signal.h

only have code above the bits/signal.h include that is necessary.
(some types are used for the u...

22f84829afa06bba9d220bd0f7b1bce912987297 authored about 9 years ago
add new PTRACE_SECCOMP_GET_FILTER ptrace command

allows the tracer to dump the bpf seccomp filters of the tracee,
new in linux v4.4, commit f8e52...

c243d6f09570010a448789dd296b14b7a61cb2ea authored about 9 years ago
add MCL_ONFAULT and MLOCK_ONFAULT mlockall and mlock2 flags

they lock faulted pages into memory (useful when a small part of a
large mapped file needs effic...

789ff6a9f8ec91729cde7fdcb0568d5d928eeba5 authored about 9 years ago
add mlock2 syscall number from linux v4.4

this is mlock with a flags argument, new in linux commit
a8ca5d0ecbdde5cc3d7accacbd69968b0c98764...

51d5f139ca9e79d621a396542dde5b8cd76c5c3f authored about 9 years ago
add new PTRACE_O_SUSPEND_SECCOMP ptrace option

allows a ptracer process to disable/enable seccomp filters of the
traced process, useful for che...

aaa604052dce98cfb4cc39f561bbb739c69bd802 authored about 9 years ago
add new PR_CAP_AMBIENT and related defines to sys/prctl.h

ambient capability mask is new in linux v4.3, commit
58319057b7847667f0c9585b9de0e8932b0fdb08

8afd2a1d03de74f9e801bfbd2f15c6aab0fa1278 authored about 9 years ago
update netpacket/packet.h to linux v4.3

3934f49c01d35565a9b74b3f9b29a913efa7c973 authored about 9 years ago
add new membarrier, userfaultfd and switch_endian syscalls

new in linux v4.3 added for aarch64, arm, i386, mips, or1k, powerpc,
x32 and x86_64.

membarrier...

09001a8f97ac779573976b5838e3d293f1713c5c authored about 9 years ago
add new i386 socket syscall numbers

new in linux v4.3 commit 9dea5dc921b5f4045a18c63eb92e84dc274d17eb
direct calls instead of socket...

37bfb68f688772e7ce339ab72b9ddcf86ac1e8a8 authored about 9 years ago
change the internal socketcall selection logic

only use SYS_socketcall if SYSCALL_USE_SOCKETCALL is defined
internally, otherwise use direct sy...

a5e133bf29d42101ba90012b3b03b670bbb949b2 authored about 9 years ago
add ssp suppression to some arch-override files that may need it

these were not covered by the parent-level rules with the new build
system. in the old build sys...

f9b8df464da02005a1f3296ad5c16582065befbf authored about 9 years ago
use same object files for libc.a and libc.so if compiler produces PIC

now that .lo and .o files differ only by whether -fPIC is passed (and
no longer at the source le...

1619127c11a5ab5d499d4b8a9b76af74f3132400 authored about 9 years ago
move dynamic linker to its own top-level directory, ldso

this eliminates the last need for the SHARED macro to control how
files in the src tree are comp...

5552ce52000855906a5cb4f08f2e456573cca51f authored about 9 years ago
adapt static dl_iterate_phdr not to depend on !defined(SHARED)

like elsewhere, use a weak alias that the dynamic linker will override
with a more complete vers...

16f70388d4a876c216cbf1d829782ace41a07634 authored about 9 years ago
move static-linked stub dlsym out of dynlink.c

the function name is still __-prefixed because it requires an asm
wrapper to pass the caller's a...

4058795d4938ea72a27fb3231ce52c69c7e39637 authored about 9 years ago
move static-linked stub dlopen out of dynlink.c

14469371cd1efd2be44f0825fec9ad8bb3216da9 authored about 9 years ago
move dlinfo out of dynlink.c

b98414732d230c236b9a79c709c2b035ca67be12 authored about 9 years ago
move dlclose out of dynlink.c to its own source file

da1fe7f5008e7068f17147ee7c47e4c71a61d057 authored about 9 years ago
move static-linked stub invalid dso handle checking out of dynlink.c

891e6547b4fdec10fe4ffa3b1ef5ddb524bcde39 authored about 9 years ago
move static/stub version of dladdr out of dynlink.c

4f8f038060739eca4c5cb97bb067529be96658d2 authored about 9 years ago
factor dlerror and error-setting code out of dynlink.c

the ultimate goal of this change is to get all code used in libc.a out
of dynlink.c, so that the...

a4fbc82c8e2a311baa0c6b5a4a4cdbb6c8f66edb authored about 9 years ago
fix arm a_crash for big endian

contrary to commit 89e149d275a7699a4a5e4c98bab267648f64cbba, big
endian arm does need the instru...

e7a1118984d071fdd65c486c52271ad4f1561fb8 authored about 9 years ago
add native a_crash primitive for arm

the .byte directive encodes a guaranteed-undefined instruction, the
same one Linux fills the kus...

89e149d275a7699a4a5e4c98bab267648f64cbba authored about 9 years ago
add new IP_BIND_ADDRESS_NO_PORT and IPPROTO_MPLS to netinet/in.h

IP_BIND_ADDRESS_NO_PORT is a SOL_IP socket option to delay src port
allocation until connect in ...

2c9acc51cdf40871625405a7e4a766cccb77ab6f authored about 9 years ago
update netinet/tcp.h for linux v4.2

TCP_CC_INFO is a new socket option to get congestion control info without
netlink (union tcp_cc_...

4da2d96591cfe0e088c366bf2bdf4ef0e47a3220 authored about 9 years ago
add MS_LAZYTIME mount option to sys/mount.h

new in linux 4.0 commit 0ae45f63d4ef8d8eeec49c7d8b44a1775fff13e8,
used to update atime/mtime/cti...

ecf02f4e8a2766d47cb7d637e7f8cb255ba7065b authored about 9 years ago
add AF_MPLS (PF_MPLS) address family to socket.h

new in linux 4.0 commit 0189197f441602acdca3f97750d392a895b778fd.

9f52c17eb20dafc8f7e93b3cd276a09a919b1384 authored about 9 years ago
add MSG_FASTOPEN sendmsg/sendto flag to socket.h

This was new in linux 3.5 in commit cf60af03ca4e71134206809ea892e49b92a88896,
needed for tcp fas...

ea4fc27d28d878e50b3ca609681bbececd1f9622 authored about 9 years ago
clean powerpc syscall.h

remove ifdefs for powerpc64.

bc443c3fe3bf6aceaa6278c4516f4654bdcd97b4 authored about 9 years ago
add missing powerpc specific PROT_SAO memory protection flag

this flag for strong access ordering was added in linux v2.6.27
commit aba46c5027cb59d98052231b3...

f9c3a2e048ef1ef43bd592588d7e11c7b2f4651f authored about 9 years ago
fix powerpc MCL_* mlockall flags in bits/mman.h

the definitions didn't match the linux uapi headers.

2f6f3dccb447ef68057e6a29cf6290367b00391e authored about 9 years ago
fix aarch64 atomics to load/store 32bit only

a_ll/a_sc inline asm used 64bit register operands (%0) instead of 32bit
ones (%w0), this at leas...

2d14fa39b0e3c957ad4f7def033e40ea431ffcfb authored about 9 years ago
improve aarch64 atomics

aarch64 provides ll/sc variants with acquire/release memory order,
freeing us from the need to h...

b17fbd3520640745051d2fd9f1fd334ceb8b8783 authored about 9 years ago
add arch/abi info to dynamic linker's id/version output

0f5eb3de2955e2eaf5ee4b9637d9216f82a97fbd authored about 9 years ago
remove arch/$(ARCH)/src from the build system

the files that used to come from extra src dirs under the arch dir
have all been removed or move...

5a2e88257a1082aa2780729451833f5dc98ea4ca authored about 9 years ago
remove sh port's __fpscr_values source file

commit f3ddd173806fd5c60b3f034528ca24542aecc5b9, the dynamic linker
bootstrap overhaul, silently...

4de1bc1164ef40655caa148eeb50365112210561 authored about 9 years ago
move sh port's __shcall internal function from arch/sh/src to src tree

007907a93c4d26b579da25c81b43d74115a29016 authored about 9 years ago
move sh __unmapself code from arch/sh/src to main src tree

230bfe1a7d46c85601e5e67497cc607e15d08990 authored about 9 years ago
move x32 sysinfo impl and syscall fixup code out of arch/x32/src

all such arch-specific translation units are being moved to
appropriate arch dirs under the main...

66215afc2e09f0153a63d58d3baec25cf0122b7b authored about 9 years ago
overhaul powerpc atomics for new atomics framework

previously powerpc had a_cas defined in terms of its native ll/sc
style operations, but all othe...

513c043694f500a01bd8d899ff73441aa7457a1f authored about 9 years ago
clean up x86_64 (and x32) atomics for new atomics framework

this commit mostly makes consistent things like spacing, function
ordering in atomic_arch.h, arg...

16b55298dc4b6a54d287d7494e04542667ef8861 authored about 9 years ago
clean up i386 atomics for new atomics framework

this commit mostly makes consistent things like spacing, function
ordering in atomic_arch.h, arg...

e24984efd5c6ac5ea8e6cb6cd914fa8435d458bc authored about 9 years ago
overhaul mips atomics for new atomics framework

369b22f9c4aebba2b8fe905db8469b2667572ee1 authored about 9 years ago
move arm-specific translation units out of arch/arm/src, to src/*/arm

this is possible with the new build system that allows src/*/$(ARCH)/*
files which do not shadow...

e617b9eea9d45b170eabadf5ca96ca0536c538be authored about 9 years ago
overhaul arm atomics for new atomics framework

switch to ll/sc model so that new atomic.h can provide optimized
versions of all the atomic prim...

397f0a6a7d798b0e3f636fe053cad9c483e011fb authored about 9 years ago
overhaul aarch64 atomics for new atomics framework

aa0db4b5d08ff6ac180a93678d8fd1799569a530 authored about 9 years ago
overhaul sh atomics for new atomics framework, add j-core cas.l backend

sh needs runtime-selected atomic backends since there are a number of
supported models that use ...

61b1e75f7d8004461f2e18f171c26c2f545eed32 authored about 9 years ago
refactor internal atomic.h

rather than having each arch provide its own atomic.h, there is a new
shared atomic.h in src/int...

1315596b510189b5159e742110b504177bdd4932 authored about 9 years ago
fix global visibility (vis.h) support for out-of-tree builds

commit 2f853dd6b9a95d5b13ee8f9df762125e0588df5d failed to change the
test for -include vis.h sup...

ce3e24eaae91e7a90f87eb7f1edea8df5942de11 authored about 9 years ago
exclude vis.h when compiling assembly files

otherwise C declarations are included into preprocessed (.S) asm
source files, producing errors ...

d1b29c2a54588401494c1a3ac7103c1e91c61fa1 authored about 9 years ago
simplify "make clean" and remove unneeded lib dir from tree

the lib dir is automatically created if needed by the out-of-tree
build logic, and now that all ...

4fcc7eb51c79090ef14a22bf3ab9631d9b3c5bf5 authored about 9 years ago
deduplicate compiler invocation command line in makefile

also clean up duplication of CFLAGS passing to assembler.

ada4798df0863226ec057a0e07285fe6820b73bd authored about 9 years ago
remove outdated/incorrect comment about AS_CMD from makefile

80de11bc6b08ae537a014ecf5a9e7386c89b17bd authored about 9 years ago
remove support for subarch .sub files from the makefile

as of commit af21a82ccc8687aa16e85def7db95efeae4cf72e, .sub files are
no longer in use. removing...

0f814a4e57e80d2512934820b878211e9d71c93e authored about 9 years ago
fix build regression for arm pre-v7 from out-of-tree build patch

commit 2f853dd6b9a95d5b13ee8f9df762125e0588df5d failed to replicate
the old makefile logic that ...

b6363bb70aad402be7c548a7ec053b124db076d9 authored about 9 years ago
switch arm, sh, and mips fenv asm from .sub system to .S files

af21a82ccc8687aa16e85def7db95efeae4cf72e authored about 9 years ago
switch sh and mips setjmp asm from .sub system to .S files

4b9a08f29303661e9680fc1ee1569daa25df7d50 authored about 9 years ago
fix dynamic linker path file selection for arm vs armhf

the __SOFTFP__ macro which was wrongly being used does not reflect the
ABI (arm vs armhf) but ju...

56764601af17aa6fb8b70b714c6bd8bb1d9f4229 authored about 9 years ago
replace armhf math asm source files with inline asm

this makes it possible to inline them with LTO, and is the simplest
approach to eliminating the ...

e4355bd6bec89688e8c739cd7b4c76e675643dca authored about 9 years ago
adapt build of arm memcpy asm not to use .sub files

this depends on commit 9f5eb77992b42d484d69e879d24ef86466f20f21, which
made it possible to use a...

cb1875eb4ff755fe6c5d1909f64fc4be1ee396ab authored about 9 years ago
eliminate separate static/shared CFLAGS vars in makefile

this allows the rules for .o and .lo files to be identical, with -fPIC
and -DSHARED added for .l...

9514e70c60649ea13c25e1ac1e944cee7c82c9a7 authored about 9 years ago
add support for arch-provided replacement files as .c or .S

previously, replacement files provided in $(ARCH) dirs under src/ had
to be .s files. in order t...

9f5eb77992b42d484d69e879d24ef86466f20f21 authored about 9 years ago
netinet/tcp: Add TCPOPT, TCPOLEN constants

Programs such as iptables depend on these constants, which can also
be found defined in other li...

53f41fb568ae43034c9876cc9bd3961fd6d13671 authored about 9 years ago
fix if_nametoindex return value when socket open fails

The return value of if_nametoindex is unsigned; it should return 0
on error.

3cdbfb99c3beda1e04efcc94f0af2abc8dc5d4ad authored about 9 years ago
support out-of-tree build

this change adds support for building musl outside of the source
tree. the implementation is sim...

2f853dd6b9a95d5b13ee8f9df762125e0588df5d authored about 9 years ago
add missing protocols to protoent lookup functions

d5f8394f6ea9549607567bd92de12a2446c15614 authored about 9 years ago
adjust mips crt_arch entry point asm to avoid assembler bugs

apparently the .gpword directive does not work reliably with local
text labels; values produced ...

5e396fb996a80b035d0f6ecf7fed50f68aa3ebb7 authored about 9 years ago
adjust i386 max_align_t definition to work around some broken compilers

at least gcc 4.7 claims c++11 support but does not accept the alignas
keyword, causing breakage ...

71991a803c8a8fe10a6ed49bc4f0a1f4890d6c46 authored about 9 years ago
fix overly pessimistic realloc strategy in getdelim

previously, getdelim was allocating twice the space needed every time
it expanded its buffer to ...

c673158d91ad995ed59dd910777cd6464f61fe8e authored about 9 years ago
avoid updating caller's size when getdelim fails to realloc

getdelim was updating *n, the caller's stored buffer size, before
calling realloc. if getdelim t...

d87f0a9a95f0a1228ee5579e5822a8c93bc96823 authored about 9 years ago
fix crash when signal number 0 is passed to sigaction

this error case was overlooked in the old range checking logic. new
check is moved out of __libc...

42216742cd69e52e70aeb1d14498a8145872de52 authored about 9 years ago
remove visibility suppression by SHARED macro in mips and x32 arch files

commit 8a8fdf6398b85c99dffb237e47fa577e2ddc9e77 was intended to remove
all such usage, but these...

0d58bf2d6078dd486951cdeb24790043eb171081 authored about 9 years ago
fix tsearch, tfind, tdelete to handle null pointer input

POSIX specifies the behaviour for null rootp input, but it
was not implemented correctly.

3abb094d19ca4c7c4adcf373d971fb5aa05c5252 authored about 9 years ago
tsearch code cleanup

changed the insertion method to simplify the recursion logic and
reduce code size a bit.

8994908b199a57097f420707b1fca75fc30236fa authored about 9 years ago
fix tsearch to avoid crash on oom

malloc failure was not properly propagated in the insertion method
which led to null pointer der...

bc9744763afe72d626e7b9f461001d425582fe9c authored about 9 years ago
fix tdelete to properly balance the tree

the tsearch data structure is an avl tree, but it did not implement
the deletion operation corre...

e4f9d811684011d8a67e363827de39d5f2d3ae5a authored about 9 years ago
properly handle point-to-point interfaces in getifaddrs()

With point-to-point interfaces, the IFA_ADDRESS netlink attribute
contains the peer address whil...

7b712844e38bdfc1ef728e257fb8616c16ec4cc8 authored about 9 years ago
ldso: fix the dtv update logic in __tls_get_new

if two or more threads accessed tls in a dso that was loaded after
the threads were created, the...

12978acb3066db738c8c15121e81adbb63739876 authored about 9 years ago
math: explicitly promote expressions to excess-precision types

a conforming compiler for an arch with excess precision floating point
(FLT_EVAL_METHOD!=0; pres...

8eead3ef18ea71a64ef3cbff8c09bac3b82f1242 authored about 9 years ago
remove undef weak refs to init/fini array symbols in libc.so

commit ad1cd43a86645ba2d4f7c8747240452a349d6bc1 eliminated
preprocessor-level omission of refere...

19caa25d0a8e587bb89b79c3f629085548709dd4 authored about 9 years ago
fix build regression from removal of #ifdef SHARED

4f3a92881aa1fd9a3ebebe2c9940d70c95a7b0e6 authored about 9 years ago
use private maps even for read-only segments of FDPIC libraries

the nommu kernel shares memory when it can anyway for private
read-only maps, but semantically t...

5fe38516f7ba0318ab792127bb16621920df3319 authored about 9 years ago
remove use of SHARED macro in dynamic linker version reporting

also fix visibility of the glue function used.

9e0a317d8c699278c9c8e2a829744ea098548416 authored about 9 years ago
unify static and dynamic linked implementations of thread-local storage

this both allows removal of some of the main remaining uses of the
SHARED macro and clears one o...

d56460c939c94a6c547abe8238f442b8de10bfbd authored about 9 years ago
unify static and dynamic libc init/fini code paths

use weak definitions that the dynamic linker can override instead of
preprocessor conditionals o...

ad1cd43a86645ba2d4f7c8747240452a349d6bc1 authored about 9 years ago
eliminate use of SHARED macro in __tls_get_addr

this was only a tiny optimization, and static-linked binaries should
not be calling __tls_get_ad...

4aaf879eb08a22c501b43d8604e67614f7dbc55f authored about 9 years ago
eliminate use of SHARED macro to suppress visibility attributes

this is the first and simplest stage of removal of the SHARED macro,
which will eventually allow...

8a8fdf6398b85c99dffb237e47fa577e2ddc9e77 authored about 9 years ago
use correct nofpu versions of setjmp/longjmp used on sh-nofpu-fdpic

when adding the fdpic subarchs, the need for these sub files was
overlooked. thus setjmp and lon...

dc5bd27ac4eb68e7ec84dff0fd26f2ac55360989 authored about 9 years ago
fix dynamic loader library mapping for nommu systems

on linux/nommu, non-writable private mappings of files may actually
use memory shared with other...

9439ebd7668182a1c6213ad1a5011bdc71585b5f authored about 9 years ago
fix return value of nl_langinfo for invalid item arguments

it was wrongly returning a null pointer instead of an empty string.

a946e8117ed51dd771bd8cac3575fc28a0399a32 authored about 9 years ago