You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rich Felker
77baaa47e1
fix a64l undefined behavior on ILP32 archs, wrong results on LP64 archs
the difference of pointers is a signed type ptrdiff_t; if it is only
32-bit, left-shifting it by 30 bits produces undefined behavior. cast
the difference to an appropriate unsigned type, uint32_t, before
shifting to avoid this.
the a64l function is specified to return a signed 32-bit result in
type long. as noted in the bug report by Ed Schouten, converting
implicitly from uint32_t only produces the desired result when long is
a 32-bit type. since the computation has to be done in unsigned
arithmetic to avoid overflow, simply cast the result to int32_t.
further, POSIX leaves the behavior on invalid input unspecified but
not undefined, so we should not take the difference between the
potentially-null result of strchr and the base pointer without first
checking the result. the simplest behavior is just returning the
partial conversion already performed in this case, so do that.
10 years ago
..
aio
make all objects used with atomic operations volatile
11 years ago
complex
complex: fix ctanh(+-0+i*nan) and ctanh(+-0+-i*inf)
11 years ago
conf
add legacy functions from sysinfo.h duplicating sysconf functionality
11 years ago
crypt
in crypt-sha*, reject excessive rounds as error rather than clamping
10 years ago
ctype
byte-based C locale, phase 1: multibyte character handling functions
11 years ago
dirent
make all objects used with atomic operations volatile
11 years ago
env
env: avoid leaving dangling pointers in __env_map
10 years ago
errno
remove remnants of support for running in no-thread-pointer mode
11 years ago
exit
move arm-specific translation units out of arch/arm/src, to src/*/arm
10 years ago
fcntl
remove dead case for F_SETLKW in fcntl
11 years ago
fenv
add powerpc64 port
10 years ago
internal
add powerpc64 port
10 years ago
ipc
semctl: fix UB causing crashes on powerpc
12 years ago
ldso
add powerpc64 port
10 years ago
legacy
add errno setting to stub utmpxname function
10 years ago
linux
move x32 sysinfo impl and syscall fixup code out of arch/x32/src
10 years ago
locale
fix return value of nl_langinfo for invalid item arguments
11 years ago
malloc
fix malloc_usable_size for NULL input
10 years ago
math
math: fix expf(-NAN) and exp2f(-NAN) to return -NAN instead of 0
10 years ago
misc
fix a64l undefined behavior on ILP32 archs, wrong results on LP64 archs
10 years ago
mman
fix mremap memory synchronization and use of variadic argument
11 years ago
mq
use restrict everywhere it's required by c99 and/or posix 2008
14 years ago
multibyte
explicitly include stdio.h to get EOF definition needed by wctob
10 years ago
network
fix incorrect protocol name and number for egp
10 years ago
passwd
fix spurious errors from pwd/grp functions when nscd backend is absent
11 years ago
prng
make all objects used with atomic operations volatile
11 years ago
process
switch to using trap number 31 for syscalls on sh
11 years ago
regex
fix the use of uninitialized value in regcomp
10 years ago
sched
add sched_getcpu vDSO support
10 years ago
search
fix tsearch, tfind, tdelete to handle null pointer input
11 years ago
select
support linux kernel apis (new archs) with old syscalls removed
12 years ago
setjmp
add powerpc64 port
10 years ago
signal
add powerpc64 port
10 years ago
stat
fix failure of fchmodat to report EOPNOTSUPP in the race path
11 years ago
stdio
fix FILE buffer underflow in ungetwc
10 years ago
stdlib
include cleanups: remove unused headers and add feature test macros
13 years ago
string
fix read past end of haystack buffer for short needles in memmem
10 years ago
temp
ignore access mode bits of flags in mkostemps and functions that use it
12 years ago
termios
include cleanups: remove unused headers and add feature test macros
13 years ago
thread
add powerpc64 port
10 years ago
time
improve clock_gettime and adapt it to support slightly-broken vdso
10 years ago
unistd
add mips n32 port (ILP32 ABI for mips64)
10 years ago