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

reject invalid arguments to pthread_barrierattr_setpshared

this is a POSIX requirement.

baf95a5aefe885ef8a675759c63d43649d312ec6 authored over 6 years ago by Rich Felker <[email protected]>
rewrite __aeabi_read_tp in asm

__aeabi_read_tp used to call c code, but that was incorrect as the
arm runtime abi specifies spe...

056f9d818eaf1dbe9e9d63b64b109fd9b608fa36 authored over 6 years ago by Szabolcs Nagy <[email protected]>
fix dubious char signedness check in limits.h

commit 201995f382cc698ae19289623cc06a70048ffe7b introduced a hack
utilizing the signedness of ch...

cdbbcfb8f5d748f17694a5cc404af4b9381ff95f authored over 6 years ago by Rich Felker <[email protected]>
fix deadlock in async thread self-cancellation

with async cancellation enabled, pthread_cancel(pthread_self())
deadlocked due to pthread_kill h...

060ed9367337cbbd59a9e5e638a1c2f460192f25 authored over 6 years ago by Rich Felker <[email protected]>
time: fix incorrect DST offset when using POSIX timezones without DST

This manifests itself in mktime if tm_isdst = 1 and the current TZ= is
a POSIX timezone specific...

92c52644e04ac754b1b282a9d33d033e04e1399e authored over 6 years ago by A. Wilcox <[email protected]>
fix tls access on arm targets before armv6k

commit 610c5a8524c3d6cd3ac5a5f1231422e7648a3791 changed the thread
pointer setup so tp points at...

c06c1eb6610b478a06df8116aefc975f376760f8 authored over 6 years ago by Szabolcs Nagy <[email protected]>
fix missing strerror text for EMULTIHOP

this is an obsolete error code from RFS, an obsolete predecessor of
NFS. POSIX documents it only...

f4542fdf7a10632099f0c4e49b4c5923ca29356b authored over 6 years ago by Rich Felker <[email protected]>
fix printf precision specifier for hex floats on non-ld80 archs

the code to perform rounding to the desired precision wrongly assumed
the long double mantissa w...

cfa0a54c082d41db6446638eed1d57f163434092 authored over 6 years ago by Rich Felker <[email protected]>
getopt: update optarg and optind correctly on missing argument

the text of the specification for getopt's handling of options that
require an argument, which r...

6aeb131b4c1aee30d7f7125a8a88ce6f41172f01 authored over 6 years ago by Rich Felker <[email protected]>
fix FP_ILOGB0 and FP_ILOGBNAN definitions to be valid for use in #if

commit 98c9af500125df41fdb46d7e384b00982d72493a wrongly claimed they
do not need to be valid for...

184ef36f85d66583306413727fc5f39557d391e4 authored over 6 years ago by Rich Felker <[email protected]>
remove erroneous SYMLINK_MAX definition from limits.h, pathconf

POSIX requires the symlink function to fail with ENAMETOOLONG if the
link contents to be written...

767f7a1091af3a3dcee2f7a49d0713359a81961c authored over 6 years ago by Rich Felker <[email protected]>
mips archs: fix runaway execution if start fn passed to clone returns

Call SYS_exit on return from fn in __clone. This is the expected
behavior of this function. With...

8b2b61e0001281be0dcd3dedc899bf187172fecb authored over 6 years ago by Segev Finer <[email protected]>
fix pthread_create return value with PTHREAD_EXPLICIT_SCHED

due to moved code, commit b8742f32602add243ee2ce74d804015463726899
inadvertently used the return...

91e1e29d6dd92c5e707f05dcc9b2a376b0d8dfa1 authored over 6 years ago by Rich Felker <[email protected]>
fix sign of strftime %z output with offsets <1 hour west of UTC

the sign character produced came from the sign of tm_gmtoff/3600 as an
integer division, which i...

1ad8138819ced49851e618c9c063aa0ffc86718c authored over 6 years ago by Rich Felker <[email protected]>
fix musl-gcc wrapper to be compatible with default-pie gcc toolchains

the specfile for the wrapper was written assuming output is pie only
if -pie appears on the comm...

7dad9c212587267818de919dd9c5886f18f99779 authored over 6 years ago by Rich Felker <[email protected]>
make pthread_attr_init honor defaults set by pthread_setattr_default_np

this fixes a major gap in the intended functionality of
pthread_setattr_default_np. if applicati...

14992d4384990d40f6d3cfb799780fb696d77762 authored over 6 years ago by Rich Felker <[email protected]>
bsearch: simplify and optimize

maintainer's note: the key observation here is that the compared
element is the first slot of th...

3d8322c7ad659210a4c8770ef455ca729ce7f395 authored over 6 years ago by Fangrui Song <[email protected]>
move inclusion of linux headers for kd.h, soundcard.h, vt.h to bits

maintainer's note: while musl does not use the linux kernel headers,
it does provide these three...

f2c6dbe2442027ed8fe0fa869918e41f495534d8 authored over 6 years ago by midipix <[email protected]>
remove inclusion guard hacks for sys/kd.h

maintainer's note: at some point, probably long before linux separated
the uapi headers, it was ...

2fab90a71acd3698954c08b9062db67188443dd7 authored over 6 years ago by midipix <[email protected]>
remove spurious declaration of __getdents from readdir.c

18fbc7e4fa254696eb024f56ee74704805925fad authored over 6 years ago by Rich Felker <[email protected]>
fix regression in alignment of dirent structs produced by readdir

commit 32482f61da7650ff10741bd5aedd66bbc3ea165b reduced the number of
int members before the dir...

b3fa0f2b1b8c267c1cbe8c62464e484f3a174a4e authored over 6 years ago by Rich Felker <[email protected]>
add support for arch-specific ptrace command macros

sys/ptrace.h is target specific, use bits/ptrace.h to add target
specific macro definitions.

th...

df6d9450ea19fd71e52cf5cdb4c85beb73066394 authored over 6 years ago by Szabolcs Nagy <[email protected]>
sys/ptrace.h: add missing PTRACE_EVENT_STOP

new in linux v3.1 commit 3544d72a0e10d0aa1c1bd59ed77a53a59cdc12f7
changed in linux v3.4 commit 5...

7ea32a8282b743bb1637b9e1da5f76dcd472a704 authored over 6 years ago by Szabolcs Nagy <[email protected]>
uchar.h: define char16_t and char32_t for old c++

including uchar.h in c++ code is only well defined in c++11 onwards
where char16_t and char32_t ...

cbf16c4abf63e47c2e8b34faac8a2a74a64973b5 authored over 6 years ago by Szabolcs Nagy <[email protected]>
block dlopen of libraries with initial-exec refs to dynamic TLS

previously, this operation succeeded, and the relocation results
worked for access from new thre...

5c2f46a214fceeee3c3e41700c51415e0a4f1acd authored over 6 years ago by Rich Felker <[email protected]>
fix inefficient choice of tlsdesc function due to off-by-one

tls_id is one-based, whereas [static_]tls_cnt is a count, so
comparison for checking that a give...

5fdccbcd8f080ca6cd2c64cca520805f17af857b authored over 6 years ago by Rich Felker <[email protected]>
implement getaddrinfo's AI_ADDRCONFIG flag

this flag is notoriously under-/mis-specified, and in the past it was
implemented as a nop, esse...

187bcc3bf40bf187c5d76d206b04028fa8ca403b authored over 6 years ago by Rich Felker <[email protected]>
fix writes outside buffer by ungetc after setvbuf

commit 0b80a7b0404b6e49b0b724e3e3fe0ed5af3b08ef, which added non-stub
setvbuf, applied the UNGET...

9cad27a3dc1a4eb349b6591e4dc8cc89dce32277 authored over 6 years ago by Rich Felker <[email protected]>
add ST_RELATIME to statvfs.h

062015204a192dd6ab9663abcc3171b9106d1749 authored over 6 years ago by Rich Felker <[email protected]>
resolver: don't depend on v4mapped ipv6 to probe routability of v4 addrs

to produce sorted results roughly corresponding to RFC 3484/6724,
__lookup_name computes routabi...

4f35eb7591031a1e5ef9828f9304361f282f28b9 authored over 6 years ago by Rich Felker <[email protected]>
optimize explicit_bzero for size

Avoid saving/restoring the incoming argument by reusing memset return
value.

b0d2b3a1e5820271c0f81d4c1fb8972a2f1141f5 authored over 6 years ago by Alexander Monakov <[email protected]>
avoid spurious dso matches by dladdr outside bounds of load segments

since slack space at the beginning and/or end of writable load maps is
donated to malloc, the ap...

193338e619de7c993efa2c0e1a87240bd732c181 authored over 6 years ago by Rich Felker <[email protected]>
make dladdr consistently produce the first symbol in presence of aliases

the early-exit condition for the symbol match loop on exact matches
caused dladdr to produce the...

f6870d6b4f32c99fdbf4367422820218b2f638bb authored over 6 years ago by Rich Felker <[email protected]>
fix symtab-order-dependent spurious matches in dladdr

commit 8b8fb7f03721c42445f982582f462144ab60a1a0 added logic to prevent
matching a symbol with no...

c8b49b2fbc7faa8bf065220f11963d76c8a2eb93 authored over 6 years ago by Rich Felker <[email protected]>
correctly handle non-matching symbols in dladdr

based on patch by Axel Siebenborn, with fixes discussed on the mailing
list after submission and...

8b8fb7f03721c42445f982582f462144ab60a1a0 authored over 6 years ago by Rich Felker <[email protected]>
avoid using undefined pointer arithmetic in dladdr

e829695fcc880f8578c2b964ea2d090f0016c9d7 authored over 6 years ago by Rich Felker <[email protected]>
fix missing timeout argument to futex syscall in __futexwait

a0d64dccbc8d0a2decbe61be706a02ac706ed45a authored over 6 years ago by Patrick Oppenlander <[email protected]>
add explicit_bzero implementation

maintainer's note: past sentiment was that, despite being imperfect
and unable to force clearing...

05ac345f895098657cf44d419b5d572161ebaf43 authored over 6 years ago by David Carlier <[email protected]>
inet_ntop: do not compress single zeros in IPv6

maintainer's note: this change is for conformance with RFC 5952,
4.2.2, which explicitly forbids...

5c8e69267b9ae919e55eee4b79580224111bc3ba authored over 6 years ago by Arthur Jones <[email protected]>
strftime: fix underlying format string in %z format

the expression (tm->__tm_gmtoff)/3600 has type long. use %+.2ld instead.

da5851e9f464f74533cc8270c932cf6466ff3256 authored over 6 years ago by Daniel Sabogal <[email protected]>
resolver: omit final dot (root/suppress-search) in canonical name

if a final dot was included in the queried host name to anchor it to
the dns root/suppress searc...

63e2e40ee3aa3bdd160a7eeace98f3dfb89ddbe2 authored over 6 years ago by Rich Felker <[email protected]>
fix regression in powerpc[64] SO_PEERSEC definition

commit 587f5a53bc3a68d80b239ba515d583df690a96df moved the definition
of SO_PEERSEC to bits/socke...

efda534b212f713fe2b92a62b06e45f656b763ce authored over 6 years ago by Rich Felker <[email protected]>
fix value of SO_PEERSEC on mips archs

adapted from patch by Matthias Schiffer.

587f5a53bc3a68d80b239ba515d583df690a96df authored over 6 years ago by Rich Felker <[email protected]>
add m68k reg.h and user.h

471497ab818bf6151dea7f4425a815d9cc59deb2 authored over 6 years ago by Rich Felker <[email protected]>
fix dynamic linker mapping/clearing bss in first/only LOAD segment

writable load segments can have size-in-memory larger than their size
in the ELF file, represent...

68a5a23abcb9649f05728db4cf50bb4498937855 authored over 6 years ago by Rich Felker <[email protected]>
add memfd_create syscall wrapper

memfd_create was added in linux v3.17 and glibc has api for it.

38f2fa3d0207b8060302129c6464662751d4f2d3 authored over 6 years ago by Szabolcs Nagy <[email protected]>
add mlock2 linux syscall wrapper

mlock2 syscall was added in linux v4.4 and glibc has api for it.
It falls back to mlock in case ...

b64d66d0b04fde0af63c3a292be423736294dca9 authored over 6 years ago by Szabolcs Nagy <[email protected]>
fix m68k float.h long double exponent range

unlike the x86 variant, the m68k ld80 format allows (biased) exponent
zero with mantissa msb set...

84b25160e7e15e7531533a9a6b22d5431d1b7629 authored over 6 years ago by Rich Felker <[email protected]>
work around broken kernel struct ipc_perm on some big endian archs

the mode member of struct ipc_perm is specified by POSIX to have type
mode_t, which is uniformly...

0cd2be231481d68d244662bde25ad9cadbd7221d authored over 6 years ago by Rich Felker <[email protected]>
s390x: add kexec_file_load syscall number from linux v4.17

new in linux commit 71406883fd35794d573b3085433c41d0a3bf6c21

7ea235b1be38c57c49b164c9762cf90be02dbc05 authored over 6 years ago by Szabolcs Nagy <[email protected]>
mips: add HWCAP_ flags from linux v4.17

new in linux commit 256211f2b0b251e532d1899b115e374feb16fa7a

1177f61d6e9eb3751014ef27fb3ce1b58c620b00 authored over 6 years ago by Szabolcs Nagy <[email protected]>
aarch64: add HWCAP_ flags from linux v4.17

hwcaps for armv8.4, new in linux commit
7206dc93a58fb76421c4411eefa3c003337bcb2d

f3b6690a53c81a869173bbdce701972c952a4e82 authored over 6 years ago by Szabolcs Nagy <[email protected]>
add speculation control prctls from linux v4.17

PR_{SET,GET}_SPECULATION_CTRL controls speculation related vulnerability
mitigations, new in com...

da9f2b2ac8d91e556125d5b0f94830f88f1bc487 authored over 6 years ago by Szabolcs Nagy <[email protected]>
add ETH_P_PREAUTH ethertype from linux v4.17

added in linux commit 4fe0de5b143762d327bfaf1d7be7c5b58041a18c

5b85ed5cec915a2f1c23170e59b0658986c0ade4 authored over 6 years ago by Szabolcs Nagy <[email protected]>
add TCP_NLA_* from linux v4.17

new and missing netlink attributes types for SCM_TIMESTAMPING_OPT_STATS,
new ones were added in ...

ebeb1de2887a7d11810106d9a408138541182cf2 authored over 6 years ago by Szabolcs Nagy <[email protected]>
add {MSG,SEM,SHM}_STAT_ANY from linux v4.17

introduced to stat ipc objects without permission checks since the
info is available in /proc/sy...

af55070eae5438476f921d827b7ae49e8141c3fe authored over 6 years ago by Szabolcs Nagy <[email protected]>
add MAP_FIXED_NOREPLACE from linux v4.17

to map at a fixed address without unmapping underlying mappings
(fails with EEXIST unlike MAP_FI...

156a3bedb22b38bc771b755700dca0cab9d1a787 authored over 6 years ago by Szabolcs Nagy <[email protected]>
powerpc: add pkey syscall numbers from linux v4.16

add pkey_mprotect, pkey_alloc, pkey_free syscall numbers,
new in linux commits 3350eb2ea12797831...

90ac71d853d4ed9786ef8bed4f6ef77703d681a3 authored over 6 years ago by Szabolcs Nagy <[email protected]>
aarch64: add HWCAP_ASIMDFHM from linux v4.16

armv8.4 fp mul instructions.
added in commit 3b3b681097fae73b7f5dcdd42db6cfdf32943d4c

a697a1c9a561e2dd3ae64bcbe2cfe286feaff97e authored over 6 years ago by Szabolcs Nagy <[email protected]>
sys/ptrace.h: add PTRACE_SECCOMP_GET_METADATA from linux v4.16

to get seccomp state for checkpoint restore.
added in linux commit 26500475ac1b499d8636ff281311d...

0f7aa600f75205af243a67394fbb4fe41b5f679a authored over 6 years ago by Szabolcs Nagy <[email protected]>
netinet/if_ether.h: add ETH_TLEN from linux v4.16

octets in ethernet type field
added in linux commit 4bbb3e0e8239f9079bf1fe20b3c0cb598714ae61

3a81cbe64320795d69f11fd2300947d2b56b2e17 authored over 6 years ago by Szabolcs Nagy <[email protected]>
netinet/if_ether.h: add ETH_P_ERSPAN2 from linux v4.16

protocol number for erspan v2 support
added in linux commit f551c91de262ba36b20c3ac19538afb4f450...

833df8675cbb51da193636828bb9a16c9c2ec5ad authored over 6 years ago by Szabolcs Nagy <[email protected]>
sys/epoll.h: add EPOLLNVAL from linux v4.16

added to uapi in commit 65aaf87b3aa2d049c6b9fd85221858a895df3393
used since commit a9a08845e9acb...

29f3202b731185d993a399f04d2f3e3f78db5a81 authored over 6 years ago by Szabolcs Nagy <[email protected]>
add m68k port

three ABIs are supported: the default with 68881 80-bit fpu format and
results returned in float...

f81e44a0d96c88e052e51982f9fdd6fe0a212b46 authored over 6 years ago by Rich Felker <[email protected]>
add support for m68k 80-bit long double variant

since x86 and m68k are the only archs with 80-bit long double and each
has mandatory endianness,...

18f02c42a2b5397e8541f4663eb6ca00c1a806dd authored over 6 years ago by Rich Felker <[email protected]>
add missing m68k relocation types in elf.h

d5e55ba3320c30310ca1d8938925d5424a652422 authored over 6 years ago by Rich Felker <[email protected]>
fix TLS layout of TLS variant I when there is a gap above TP

In TLS variant I the TLS is above TP (or above a fixed offset from TP)
but on some targets there...

610c5a8524c3d6cd3ac5a5f1231422e7648a3791 authored over 6 years ago by Szabolcs Nagy <[email protected]>
fix output size handling for multi-unicode-char big5-hkscs characters

since this iconv implementation's output is stateless, it's necessary
to know before writing any...

029c622a89bf8cc15fd9fd56e8e88465ca6130cf authored over 6 years ago by Rich Felker <[email protected]>
fix iconv mapping of big5-hkscs characters that map to two unicode chars

this case is handled with a recursive call to iconv using a
specially-constructed conversion des...

165a1e37a570422c3f3f816a734bfea0366982e5 authored over 6 years ago by Rich Felker <[email protected]>
fix iconv conversion to UTF-32 with implicit (big) endianness

maintainer's notes:

commit 95c6044e2ae85846330814c4ac5ebf4102dbe02c split UTF-32 and
UTF-32BE b...

99f4237a691349b24afbed29abf33124b89c1ea3 authored over 6 years ago by Will Dietz <[email protected]>
fix iconv buffer overflow converting to legacy JIS-based encodings

maintainer's notes:

commit a223dbd27ae36fe53f9f67f86caf685b729593fc added the reverse
conversio...

55a661ff5ec5c8192091ec0bd74424500761b08d authored over 6 years ago by Will Dietz <[email protected]>
make linking of thread-start with explicit scheduling conditional

the wrapper start function that performs scheduling operations is
unreachable if pthread_attr_se...

40bae2d32fd6f3ffea437fa745ad38a1fe77b27e authored over 6 years ago by Rich Felker <[email protected]>
improve design of thread-start with explicit scheduling attributes

eliminate the awkward startlock mechanism and corresponding fields of
the pthread structure that...

b8742f32602add243ee2ce74d804015463726899 authored over 6 years ago by Rich Felker <[email protected]>
clean up and reduce size of internal pthread structure

over time the pthread structure has accumulated a lot of cruft taking
up size. this commit remov...

1db9a35569d51155eb7f2ccf26d420ae4e42e416 authored over 6 years ago by Rich Felker <[email protected]>
improve joinable/detached thread state handling

previously, some accesses to the detached state (from pthread_join and
pthread_getattr_np) were ...

cdba6b2562bc5c2078e0e1e6f86c8835a42ae4ff authored over 6 years ago by Rich Felker <[email protected]>
improve pthread_exit synchronization with functions targeting tid

if the last thread exited via pthread_exit, the logic that marked it
dead did not account for th...

526e64f54d729947b35fd39129bc86cbc0b5f098 authored over 6 years ago by Rich Felker <[email protected]>
remove incorrect ESRCH error from pthread_kill

posix documents in the rationale and future directions for
pthread_kill that, since the lifetime...

4df42163511182bfd6fc55e85250b93786dcce7e authored over 6 years ago by Rich Felker <[email protected]>
use a dedicated futex object for pthread_join instead of tid field

the tid field in the pthread structure is not volatile, and really
shouldn't be, so as not to li...

9e2d820a555e150df462f88c901fcbe25d692a8b authored over 6 years ago by Rich Felker <[email protected]>
optimize sigisemptyset

the static const zero set ended up getting put in bss instead of
rodata, wasting writable memory...

941bd884cc0221d051840ce6d21650339e711863 authored over 6 years ago by Rich Felker <[email protected]>
avoid excessive stack usage in getcwd

to support the GNU extension of allocating a buffer for getcwd's
result when a null pointer is p...

375840c7d8e1f58a9bf40ced72fbe82635f49489 authored over 6 years ago by Rich Felker <[email protected]>
work around arm gcc's rejection of r7 asm constraints in thumb mode

in thumb mode, r7 is the ABI frame pointer register, and unless frame
pointer is disabled, gcc i...

e3c682ab5257aaa6739ef242a9676d897370e78e authored over 6 years ago by Rich Felker <[email protected]>
getopt_long_only: don't prefix-match long-options that match short ones

for getopt_long, partial (prefix) matches of long options always begin
with "--" and thus can ne...

9be4ed5d89ecca80123311a4ec73781e5cc97a9c authored over 6 years ago by Rich Felker <[email protected]>
reintroduce hardening against partially-replaced allocator

commit 618b18c78e33acfe54a4434e91aa57b8e171df89 removed the previous
detection and hardening sin...

b4b1e10364c8737a632be61582e05a8d3acf5690 authored over 6 years ago by Rich Felker <[email protected]>
return chunks split off by memalign using __bin_chunk instead of free

this change serves multiple purposes:

1. it ensures that static linking of memalign-family func...

72141795d4edd17f88da192447395a48444afa10 authored over 6 years ago by Rich Felker <[email protected]>
using malloc implementation types/macros/idioms for memalign

the generated code should be mostly unchanged, except for explicit use
of C_INUSE in place of co...

3c2cbbe7ba8b4486299ae0d5336ae01ab520d116 authored over 6 years ago by Rich Felker <[email protected]>
move malloc implementation types and macros to an internal header

23389b1988b061e8487c316893a8a8eb77770a2f authored over 6 years ago by Rich Felker <[email protected]>
revert detection of partially-replaced allocator

commit c9f415d7ea2dace5bf77f6518b6afc36bb7a5732 included checks to
make calloc fallback to memse...

618b18c78e33acfe54a4434e91aa57b8e171df89 authored over 6 years ago by Rich Felker <[email protected]>
setvbuf: minor comment typo fix

3f3cc3e99558501318e2f16ff03bbd68ce5a5e95 authored over 6 years ago by Will Dietz <[email protected]>
arm: use a_ll/a_sc atomics when building for ARMv6T2

ARMv6 cores with support for Thumb2 can take advantage of the "ldrex"
and "strex" based implemen...

8c2943f057c5f69cc6423c360b626bc1ad493230 authored over 6 years ago by Andre McCurdy <[email protected]>
arm: respect both __ARM_ARCH_6KZ__ and __ARM_ARCH_6ZK__ macros

__ARM_ARCH_6ZK__ is a gcc specific historical typo which may not be
defined by other compilers.
...

749a06b4c55d823d8a74b4e3f607c65006db271b authored over 6 years ago by Andre McCurdy <[email protected]>
provide optimized a_ctz_32 for arm

Provide an ARM specific a_ctz_32 helper function for architecture
versions for which it can be i...

ea489b8b0d89e391455689b7cc397d0c261677c9 authored over 6 years ago by Andre McCurdy <[email protected]>
remove a_ctz_l from arch specific atomic_arch.h

Update atomic.h to provide a_ctz_l in all cases (atomic_arch.h should
now only provide a_ctz_32 ...

0c6abb58820398ac995305d88f3e6a9f0a692eb7 authored over 6 years ago by Andre McCurdy <[email protected]>
fix out of bounds write for zero length buffer in gethostname

3f6dc30470d5751b83645df180a60cad3e7907ef authored over 6 years ago by Marc André Tanner <[email protected]>
add support for caller-provided buffers to setvbuf

0b80a7b0404b6e49b0b724e3e3fe0ed5af3b08ef authored over 6 years ago by Rich Felker <[email protected]>
clean up allocation/setup logic for open_[w]memstream

bring these functions up to date with the current idioms we use/prefer
in fmemopen and fopencookie.

6019459251c58426808f207d18014b6b1f250a59 authored over 6 years ago by Rich Felker <[email protected]>
clean up allocation/setup logic for fmemopen

rather than manually performing pointer arithmetic to carve multiple
objects out of one allocati...

0b043c7b70b204c43dc7dbdb50b12aa8fa7981e8 authored over 6 years ago by Rich Felker <[email protected]>
minor cleanup in fopencookie

assign entire struct rather than member-at-a-time. don't repeat buffer
sizes; always use sizeof ...

4245a233c147e18a841bc6ccd5aafb65d6bca163 authored over 6 years ago by Rich Felker <[email protected]>
fix stdio lock dependency on read-after-free not faulting

instead of using a waiters count, add a bit to the lock field
indicating that the lock may have ...

c21f750727515602a9e84f2a190ee8a0a2aeb2a1 authored over 6 years ago by Rich Felker <[email protected]>
refactor flockfile not to duplicate lock mechanism logic

c1014a812c90bab3c9c989863e4ebb129e987de6 authored over 6 years ago by Rich Felker <[email protected]>
allow interposition/replacement of allocator (malloc)

replacement is subject to conditions on the replacement functions.
they may only call functions ...

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