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

comment __malloc_donate overflow logic

14032c30e2d41e5c0dac25d399f7086f74d4e0c8 authored almost 7 years ago
remove unused __brk function/source file

commit e3bc22f1eff87b8f029a6ab31f1a269d69e4b053 removed all references
to __brk.

502027540bafd0681bfc46b0ae28639e51bba6a6 authored almost 7 years ago
enable reclaim_gaps for fdpic

the existing laddr function for fdpic cannot translate ELF virtual
addresses outside of the LOAD...

d610c148554766f2a0e48304fe2550b340f84872 authored almost 7 years ago
fix return value of nice function

the Linux SYS_nice syscall is unusable because it does not return the
newly set priority. always...

4bf0717e5141518c1d34ac84253d3973be1fa260 authored almost 7 years ago
use explicit dynamic-list rather than symbolic-functions for linking

we have always bound symbols at libc.so link time rather than runtime
to minimize startup-time r...

b9410061e2ad6fe91bb3910c3adc7d4a315b7ce9 authored almost 7 years ago
malloc: fix an over-allocation bug

Fix an instance where realloc code would overallocate by OVERHEAD bytes
amount. Manually arrange...

d889cc3463edc92869676c1eec34a8f52d942adb authored almost 7 years ago
ldso, malloc: implement reclaim_gaps via __malloc_donate

Split 'free' into unmap_chunk and bin_chunk, use the latter to introduce
__malloc_donate and use...

ce7ae11acfd9db8eb92cc6823c132e1825918d92 authored almost 7 years ago
optimize malloc0

Implementation of __malloc0 in malloc.c takes care to preserve zero
pages by overwriting only no...

424eab2225ff3f8e3ae9f9eec9dacf2f68b71a2f authored almost 7 years ago
fix incorrect results for catan with some inputs

the catan implementation from OpenBSD includes a FIXME-annotated
"overflow" branch that produces...

10e4bd3780050e75b72aac5d85c31816419bb17d authored almost 7 years ago
fix wrong result in casin and many related complex functions

the factor of -i noted in the comment at the top of casin.c was
omitted from the actual code, yi...

ae2a01da2e388535da243b3d974aef74a3c06ae0 authored almost 7 years ago
implement wcsftime padding specifier extensions

Commit 8a6bd7307da3fc4d08dd6a9277b611ccb4971354 added support for
padding specifier extensions t...

ea81529fb92932a50f06bf7a19cae812ae6cdb59 authored almost 7 years ago
prevent bypass of guarantee that suids start with fd 0/1/2 open

it was reported by Erik Bosman that poll fails without setting revents
when the nfds argument ex...

119bc55ba66542a1c2fb7fc1c4e6c85f46b97c57 authored almost 7 years ago
fix fmaf wrong result

if double precision r=x*y+z is not a half way case between two single
precision floats or it is ...

282b1cd26649d69de038111f5876853df6ddc345 authored almost 7 years ago
fix default feature profile in tar.h

commit d93c0740d86aaf7043e79b942a6c0b3f576af4c8 added use of feature
test macros without includi...

729fef0a9358e2f6f1cd8c75a1a0f7ee48b08c95 authored almost 7 years ago
adjust makefile target-specific CFLAGS rules to be more robust & complete

previously, MEMOPS_SRCS failed to include arch-specific replacement
files for memcpy, etc., omit...

c7bb9c41d2e62b7ad1c7858d4d0f2873642e634b authored almost 7 years ago
fix out-of-tree build of crt files with stack protector enabled

the makefile logic for these files was wrong in the out-of-tree case,
but it likely only affecte...

a7c53e0c2cd8fc45eac90c0468e44697019ceda6 authored almost 7 years ago
explicitly use signed keyword to define intNN_t and derivative types

standing alone, both the signed and int keywords identify the same
type, a (signed) int. however...

919ad8d5fbb1caa18c3719304ffeeb0e0dde1bb5 authored almost 7 years ago
remove spurious const keyword in sigqueue declaration

this must have been taken from POSIX without realizing that it was
meaningless. the resolution t...

f9c2498fee1c94adf00e788863d2d4544d1d1ec0 authored almost 7 years ago
fix minor namespace issues in termios.h

the output delay features (NL*, CR*, TAB*, BS*, and VT*) are
XSI-shaded. VT* is in the V* namesp...

eb5ae94016f0e3e4fb7d0715346b09335f14655d authored almost 7 years ago
fix minor namespace issue in unistd.h

the F_* macros associated with the lockf function are XSI-shaded (like
the lockf function itself...

a3f7bcdeaa4cbf8258824b6be4f231ca54a7fdfc authored almost 7 years ago
fix minor namespace issue in tar.h

TSVTX is XSI-shaded.

d93c0740d86aaf7043e79b942a6c0b3f576af4c8 authored almost 7 years ago
fix minor namespace issues in limits.h

PAGE_SIZE, NZERO, and NL_LANGMAX are XSI-shaded.

8e1381be44642523b5cbd1bba4d7ca20ee920b85 authored almost 7 years ago
use PAGESIZE rather than PAGE_SIZE in user.h bits

align with commit c9c2cd3e6955cb1d57b8be01d4b072bf44058762.

6ecb9c14c429cc73ace937fd7459f58f0b7a8e6e authored almost 7 years ago
reverse definition dependency between PAGESIZE and PAGE_SIZE

PAGESIZE is actually the version defined in POSIX base, with PAGE_SIZE
being in the XSI option. ...

c9c2cd3e6955cb1d57b8be01d4b072bf44058762 authored almost 7 years ago
fix nl_langinfo_l(CODESET, loc) reporting wrong locale's value

use of MB_CUR_MAX encoded a hidden dependency on the currently active
locale for the calling thr...

0cf50581ec5f04feeaa77f2eb8b734a4b69ca8ed authored almost 7 years ago
add public interface headers to implementation files

general policy is that all source files defining a public API or an
ABI mechanism referenced by ...

57b97b42bdecafd81c4967a10aef6eaf43d3fcb8 authored almost 7 years ago
fix aliasing violations in fgetpos/fsetpos

add a member of appropriate type to the fpos_t union so that accesses
are well-defined. use long...

2fae10f887b48b809bac56e4ff8a5c3fd4525de3 authored almost 7 years ago
use idiomatic safe form for FUNLOCK macro

previously this macro used an odd if/else form instead of the more
idiomatic do/while(0), making...

455bd824457b3e6cc3998817aac4e500b027cc50 authored almost 7 years ago
in vswprintf, initialize the FILE rather than memset-and-assign

this is the idiom that's used elsewhere and should be more efficient
or at least no worse.

7c59d098632e4382c9b674b189edbfd80d327682 authored almost 7 years ago
remove unused MIN macro from getdelim source file

aaa29c26eed4a09625e61c6af31d16b1a4163fc3 authored almost 7 years ago
remove useless null check before call to free in fclose

0fbe53ed3fc0a4f0e3c8c778b3a409e48ed8bea3 authored almost 7 years ago
remove useless and confusing parentheses in stdio __towrite function

they seem to be relics of e3cd6c5c265cd481db6e0c5b529855d99f0bda30
where this code was refactore...

52d42b5888c79fd30d7c16c59941f5ef87f745ad authored almost 7 years ago
avoid use of readv syscall in __stdio_read backend when not needed

formally, calling readv with a zero-length first iov component should
behave identically to call...

e7eeeb9f2a4a358fb0bbed81e145ef5538ff60f0 authored almost 7 years ago
consistently return number of bytes read from stdio read backend

the stdio FILE read backend's return type is size_t, not ssize_t, and
all of the special (non-fd...

f92804188eb464536d638548e51e835b6c49e373 authored almost 7 years ago
remove obfuscated flags bit-twiddling logic in __stdio_read

replace with simple conditional that doesn't rely on assumption that
cnt is either 0 or -1.

9bf9c732f9d39d691e1f8841e7204c9c26321946 authored almost 7 years ago
fix getopt wrongly treating colons in optstring as valid option chars

the ':' in optstring has special meaning as a flag applying to the
previous option character, or...

b123f2395266a44176e49cee251fb776e97f26e1 authored almost 7 years ago
add getentropy function

based loosely on patch by Hauke Mehrtens; converted to wrap the public
API of the underlying get...

82f176803ae07e34229906d5c7c62889e665dc97 authored almost 7 years ago
add getrandom syscall wrapper

This syscall is available since Linux 3.17 and was also implemented in
glibc in version 2.25 usi...

e20658209177667e490c661dfd35b976749ef3f7 authored almost 7 years ago
aarch64: add sve_context struct and related defines from linux v4.15

signal context definitions for scalable vector extension new in commit
d0b8cd3187889476144bd9b13...

9bed82df305f5d1b7ebc36d0ac7a75d4f834e69b authored almost 7 years ago
elf.h: add DT_SYMTAB_SHNDX

it's a recent addition to elf gabi:
http://sco.com/developers/gabi/latest/revision.html
based on...

74ab4b828475bdd2afa76eb7c9e9808e7c872c1c authored almost 7 years ago
elf.h: syncronize DF_1_ flags with binutils

DF_1_STUB and DF_1_PIE were added in binutils-gdb commit
5c383f026242d25a3c21fdfda42e5ca218b346c8

dfeeeaf5448d96d471b237b5f8a6f780f61445ba authored almost 7 years ago
elf.h: update NT_* coredump elf notes for linux v4.15

NT_ARM_SVE and NT_S390_RI_CB are new in linux commits
43d4da2c45b2f5d62f8a79ff7c6f95089bb24656 a...

eef5e4821de4c30b786975bd9aed84243c58db3a authored almost 7 years ago
elf.h: add PPC64_OPT_LOCALENTRY

allows calling extern functions without saving r2, for details see
glibc commit 0572433b5beb636d...

5024804176dc899b1e700e4effe999ab757694dd authored almost 7 years ago
elf.h: add AT_* auxval macros for cache geometry

AT_L1I_*, AT_L1D_*, AT_L2_* and AT_L3_* were added in linux v4.11 for
powerpc in commit 98a5f361...

e7bd039df24c0435f8f5c42840e894cb1d2798ac authored almost 7 years ago
sys/prctl.h: add new PR_SVE_* macros from linux v4.15

PR_SVE_SET_VL and PR_SVE_GET_VL controls are new in linux commit
2d2123bc7c7f843aa9db87720de159a...

121d18d2f254fceb7e489d7a99527124f4084b5b authored almost 7 years ago
aarch64: update hwcap.h for linux v4.15

HWCAP_SVE is new in linux commit 43994d824e8443263dc98b151e6326bf677be52e
HWCAP_SHA3, HWCAP_SM3,...

5a4a780ccb864a1e97483fe9c94858f24e1f02a2 authored almost 7 years ago
arm: add get_tls syscall from linux v4.15

for systems without tp register or kuser helper, new in linux commit
8fcd6c45f5a65621ec809b7866a...

8be960d1881ddd4c64a53e611226f8152b97dceb authored almost 7 years ago
powerpc: update hwcap.h for linux v4.15

PPC_FEATURE2_HTM_NO_SUSPEND is new in linux commit
cba6ac4869e45cc93ac5497024d1d49576e82666
PPC_...

0fc2f098a496bc5c7379e2330421fcc86988c2ba authored almost 7 years ago
s390x: add s390_sthyi system call from v4.15

to store hypervisor information, added in linux commit
3d8757b87d7fc15a87928bc970f060bc9c6dc618

4ccd07527e9e8a6c7a1ba86acee462f0affb877a authored almost 7 years ago
netinet/in.h: add new IPV6_FREEBIND from linux v4.15

new socekt option for AF_INET6 SOL_RAW sockets, added in linux commit
84e14fe353de7624872e582887...

4001c51181e04511744c36fcfe2be10efa98c125 authored almost 7 years ago
netinet/tcp.h: add TCP_* socket options from linux v4.15

TCP_FASTOPEN_KEY is new in 1fba70e5b6bed53496ba1f1f16127f5be01b5fb6
TCP_FASTOPEN_NO_COOKIE is ne...

5f4ff22aa3ad81c59cac46444d01a7ce5b40636f authored almost 7 years ago
add MAP_SYNC and MAP_SHARED_VALIDATE from linux v4.15

for synchronous page faults, new in linux commit
1c9725974074a047f6080eecc62c50a8e840d050 and
b6...

9b57db3f958d9adc3b1c7371b5c6723aaee448b7 authored almost 7 years ago
mips,powerpc: fix TIOCSER_TEMT in termios.h

use the same token to define TIOCSER_TEMT as is used in ioctl.h
so when both headers are include...

9eda4dc69c33852c97c6f69176bf45ffc80b522f authored almost 7 years ago
netinet/tcp.h: add tcp_diag_md5sig struct from linux v4.14

for querying tcp md5 signing keys.
new in linux commit c03fa9bcacd9ac04595cc13f34f3445f0a5ecf13

e69608700fa5a6920b3c8ba9951f43f5d4ec0eaa authored almost 7 years ago
sys/{mman,shm}.h: add {MAP,SHM}_HUGE_ macros from linux uapi

*_HUGE_SHIFT, *_HUGE_2MB, *_HUGE_1GB are documented in the man page,
so add all of the *_HUGE_* ...

abdaba8616c29b0814a4dbe726224b6f2c9f8604 authored almost 7 years ago
netinet/if_ether.h: add new ETH_P_ macros from linux v4.14

new ethertypes in linux v4.14:
ETH_P_ERSPAN new in 84e54fe0a5eaed696dee4019c396f8396f5a908b
ETH_...

fba3059d72e610944339ab139b01ea0c97d8f7c6 authored almost 7 years ago
net/if_arp.h: add ARPHRD_RAWIP from linux v4.14

new in linux commmit cdf4969c42a6c1a376dd03a9e846cf638d3cd4b1

4d4a665799a0ed6dda3deed3d380b72c84d9f4d2 authored almost 7 years ago
signal.h: add missing SIGTRAP si_codes

TRAP_BRANCH and TRAP_HWBKPT new in linux commit
da654b74bda14c45a7d98c731bf3c1a43b6b74e2

38e81ddc0440ecc61f6fa9faf9225b91c9c8017c authored almost 7 years ago
aarch64: add HWCAP_DCPOP from linux v4.14

indicates ARMv8.2-DCPoP persistent memory support extension.
new in linux commit 7aac405ebb32240...

ebd8ef50d5012733d86ed4a6834ca6d776b069ae authored almost 7 years ago
sys/mman.h: add MADV_WIPEONFORK from linux v4.14

allows zeroing anonymous private pages inherited by a child process.
new in linux commit d2cd9ed...

5431c200402bf0b5a061c585c0b76c099e45a418 authored almost 7 years ago
sys/socket.h: add MSG_ZEROCOPY from linux v4.14

MSG_ZEROCOPY socket send flag avoids copy in the kernel
new in linux commit 52267790ef52d7513879...

986bc21713b1c9b38d37356033c02aec188333bf authored almost 7 years ago
sys/socket.h: add SOL_TLS from linux v4.13

socket option for kernel TLS support
new in linux commit 3c4d7559159bfe1e3b94df3a657b2cda3a34e218

404097a4ef4e5e776d6f7bf16e319e69e880469c authored almost 7 years ago
sys/socket.h: add PF_SMC from linux v4.11

add AF_SMC and PF_SMC for the IBM shared memory communication protocol.
new in linux commit ac71...

709bbf51758a23e5c85b9247fe2b2a558ed31bbb authored almost 7 years ago
release 1.1.19

55df09bfccbfe21fc9dd7d8f94550c0ff25ace04 authored almost 7 years ago
update authors/contributors list

these additions were made by scanning git log since the last major
update in commit 790580b2fc47...

1366b3c5e6d89d5ba90dd41fe5bf0246c5299b84 authored almost 7 years ago
fix detection of LIBCC for compiler-rt with clang

Maintainer's note: at one point, -lcompiler_rt apparently worked, and
may still work and be pref...

fcf24b9f388d650a92375079461198f5db3ed88a authored almost 7 years ago
convert execvp error handling to switch statement

this is more extensible if we need to consider additional errors, and
more efficient as long as ...

6d6102427d8d5450bd28788c792f97ef90cce274 authored almost 7 years ago
fix execvp failing on not-dir entries in PATH.

It's better to make execvp continue PATH search on ENOTDIR rather than
issuing an error. Bogus e...

8e0b38060d7a9916fc2b5de0dd7c166ef60be9c1 authored almost 7 years ago
fix incorrect overflow check for allocation in fmemopen

when a null buffer pointer is passed to fmemopen, requesting it
allocate its own memory buffer, ...

75cba9c67fde03421b96c1bcbaf666b4b348739d authored almost 7 years ago
better configure check for long double support

249b621f9efeb8c47f34b698875c54c9c3108df3 authored almost 7 years ago
make getcwd fail if it cannot obtain an absolute path

Currently getcwd(3) can succeed without returning an absolute path
because the underlying getcwd...

23ddab8569ef8ae3488c1d67b6bccaa081c73245 authored almost 7 years ago
disallow non-absolute rpath $ORIGIN for suid/sgid/AT_SECURE processes

in theory non-absolute origins can only arise when either the main
program is invoked by running...

376b3c54bba7d235e5a8e2839bb333a826b19636 authored almost 7 years ago
honor rpath $ORIGIN for ldd/ldso command with program in working dir

the rpath fixup code assumed any module's name field would contain at
least one slash, an invari...

f0b235c138d26caafeda44475818508f1911e78e authored almost 7 years ago
adjust strftime + modifier to match apparent intent of POSIX

it's unclear from the specification whether the word "consumes" in
"consumes more than four byte...

c7f0da4134d4e7f2efd295e7fb738c65c469fbd1 authored almost 7 years ago
fix strftime field widths with %F format and zero year

the code to strip initial sign and leading zeros inadvertently
stripped all the zeros and the su...

596207aa38b0db33f222c9924a1310fee3de88b5 authored almost 7 years ago
document pthread structure ABI constraints in comments

in the original submission of the patch that became commit
7c709f2d4f9872d1b445f760b0e68da89e256...

cc7c300d1af22641b012268a959ac42f15341ed8 authored almost 7 years ago
re-fix child reaping in wordexp

Do not retry waitpid if the child was terminated by a signal. Do not
examine status: since we ar...

e53296f88952dcc6a9343dea53a4aa911f9a9c87 authored almost 7 years ago
revert regression in faccessat AT_EACCESS robustness

commit f9fb20b42da0e755d93de229a5a737d79a0e8f60 switched from using a
pipe for the result to con...

cd0ae687deadbb05ed373d675e59a36f8915c86d authored almost 7 years ago
store pthread stack guard sizes for pthread_getattr_np

7c709f2d4f9872d1b445f760b0e68da89e256b9e authored almost 7 years ago
adjust dladdr dli_fbase definition to match other implementations

the Linux and FreeBSD man pages for dladdr document dli_fbase as the
"base address" of the libra...

b3ae7beabb9f0c219bb8a8b63567a01c6530c1ac authored almost 7 years ago
getopt_long: accept prefix match of long options containing equals signs

Consider the first equals sign found in the option to be the delimiter
between it and its argume...

6f03b61b46d238d480f5b7730ba906e172066e59 authored almost 7 years ago
fix getopt_long arguments to partial matches

If we find a partial option name match, we need to keep looking for
ambiguous/conflicting option...

f1abc29bd09dde14edd942f5868446aaba77f73f authored almost 7 years ago
aarch64: fix mismatched type of ucontext_t uc_link member

14edadb542848300193b76d2eee7a1eae07f0911 authored almost 7 years ago
add _DIRENT_HAVE_D_* macros to dirent.h

1bc10ffeaa7c7ce44b3e214e02e302642511c7c7 authored about 7 years ago
fix printf alt-form octal with value 0 and no explicit precision

commit 78897b0dc00b7cd5c29af5e0b7eebf2396d8dce0 wrongly simplified
Dmitry Levin's original submi...

b64539ae06aa91a407359238f4e909adb9bfab3d authored about 7 years ago
revise the definition of multiple basic locks in the code

In all cases this is just a change from two volatile int to one.

32482f61da7650ff10741bd5aedd66bbc3ea165b authored about 7 years ago
consistently use the LOCK an UNLOCK macros

In some places there has been a direct usage of the functions. Use the
macros consistently every...

c4bc0b1a64e1ef1e105df84401805a16e8dbe82a authored about 7 years ago
new lock algorithm with state and congestion count in one atomic int

A variant of this new lock algorithm has been presented at SAC'16, see
https://hal.inria.fr/hal-...

47d0bcd4762f223364e5b58d5a381aaa0cbd7c38 authored about 7 years ago
add additional uapi guards for Linux kernel header files

With Linux kernel 4.16 it will be possible to guard more parts of the
Linux header files from a ...

b583c5d3b4cc2c54c68eef5eb7855ecfacee8bfc authored about 7 years ago
fix iconv output of surrogate pairs in ucs2

in the unified code for handling utf-16 and ucs2 output, the check for
ucs2 wrongly looked at th...

628cf979b249fa76a80962e2eefe05073216a4db authored about 7 years ago
add support for BOM-determined-endian UCS2, UTF-16, and UTF-32 to iconv

previously, the charset names without endianness specified were always
interpreted as big endian...

95c6044e2ae85846330814c4ac5ebf4102dbe02c authored about 7 years ago
add cp866 (dos cyrillic) to iconv

9d4d0ee41b06acf68dac40332f53be7bfbde7404 authored about 7 years ago
update case mappings to unicode 10.0

the mapping tables and code are not automatically generated; they were
produced by comparing the...

54941eddfd9cf2b40e489258e2fbf4bd1c90311e authored about 7 years ago
update ctype tables to unicode 10.0

c72c1c52bc08aa0c41654bd0a38f6c951634e088 authored about 7 years ago
reformat ctype tables to be diff-friendly, match tool output

the new version of the code used to generate these tables forces a
newline every 256 entries, wh...

d3f23337eecf68d085be212167c167f9cc49dbe5 authored about 7 years ago
fix endian errors in netinet/icmp6.h due to failure to include endian.h

d5029bb88a4ff91b007a19c7d9efb790aab63246 authored about 7 years ago
fix endian errors in arpa/nameser.h due to failure to include endian.h

14cec8678e742edad82f065dcfe926e45f84d4ac authored about 7 years ago
remove unused explicit dependency rules for crti/crtn

notes by maintainer:

commit 2f853dd6b9a95d5b13ee8f9df762125e0588df5d added these rules
because ...

2a831786f0be3f54c5a7693eb3ae8fdc4c4ecb85 authored about 7 years ago
use the name UTC instead of GMT for UTC timezone

notes by maintainer:

both C and POSIX use the term UTC to specify related functionality,
despit...

eb7f93c4f6fd0b637a9f8d6e112131b88ad2b00f authored about 7 years ago
fix sysconf for infinite rlimits

sysconf should return -1 for infinity, not LONG_MAX.

3ec82877e7783f0706ba3c9e3c815cd2aa34059e authored about 7 years ago