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
8d998a7b3b
add malloc_usable_size function and non-stub malloc.h
this function is needed for some important practical applications of
ABI compatibility, and may be useful for supporting some non-portable
software at the source level too.
I was hesitant to add a function which imposes any constraints on
malloc internals; however, it turns out that any malloc implementation
which has realloc must already have an efficient way to determine the
size of existing allocations, so no additional constraint is imposed.
for now, some internal malloc definitions are duplicated in the new
source file. if/when malloc is refactored to put them in a shared
internal header file, these could be removed.
since malloc_usable_size is conventionally declared in malloc.h, the
empty stub version of this file was no longer suitable. it's updated
to provide the standard allocator functions, nonstandard ones (even if
stdlib.h would not expose them based on the feature test macros in
effect), and any malloc-extension functions provided (currently, only
malloc_usable_size).
12 years ago
..
aio
eliminate use of cached pid from thread structure
12 years ago
complex
complex: add C11 CMPLX macros and replace cpack with them
14 years ago
conf
remove unsupported nonstandard sysconf macros and their table entries
12 years ago
crypt
add legacy functions setkey() and encrypt()
12 years ago
ctype
add inline isspace in ctype.h as an optimization
12 years ago
dirent
fix readdir not to set ENOENT when directory is removed while reading
12 years ago
env
fix #ifdef inside a macro argument list in __init_tls.c
12 years ago
errno
add support for LC_TIME and LC_MESSAGES translations
12 years ago
exit
remove useless infinite loop from end of exit function
12 years ago
fcntl
avoid invalid use of va_arg in open
12 years ago
fenv
add nofpu subarchs to the sh arch, and properly detect compiler's fpu config
12 years ago
internal
fix false ownership of stdio FILEs due to tid reuse
12 years ago
ipc
semctl: fix UB causing crashes on powerpc
12 years ago
ldso
add dlerror message for static-linked dlsym failure
12 years ago
legacy
fix multiple issues in legacy function getpass
12 years ago
linux
fix missing argument to syscall in fanotify_mark
12 years ago
locale
add inline isspace in ctype.h as an optimization
12 years ago
malloc
add malloc_usable_size function and non-stub malloc.h
12 years ago
math
math: fix aliasing violation in long double wrappers
12 years ago
misc
make endmntent function handle null argument
12 years ago
mman
optimize locking against vm changes for mmap/munmap
12 years ago
mq
use restrict everywhere it's required by c99 and/or posix 2008
14 years ago
multibyte
fix aliasing violations in mbtowc and mbrtowc
12 years ago
network
reimplement if_nameindex and getifaddrs using netlink
12 years ago
passwd
include cleanups: remove unused headers and add feature test macros
12 years ago
prng
fix initstate to make the state buffer usable in setstate
12 years ago
process
eliminate use of cached pid from thread structure
12 years ago
regex
add support for LC_TIME and LC_MESSAGES translations
12 years ago
sched
remove useless __yield alias for sched_yield
12 years ago
search
remove struct elem entirely from hsearch.c
12 years ago
select
support linux kernel apis (new archs) with old syscalls removed
12 years ago
setjmp
add or1k (OpenRISC 1000) architecture port
12 years ago
signal
add or1k (OpenRISC 1000) architecture port
12 years ago
stat
fix missing flags arg to fstatat syscall in fstat fallback path
12 years ago
stdio
fix false ownership of stdio FILEs due to tid reuse
12 years ago
stdlib
include cleanups: remove unused headers and add feature test macros
12 years ago
string
add support for LC_TIME and LC_MESSAGES translations
12 years ago
temp
include cleanups: remove unused headers and add feature test macros
12 years ago
termios
include cleanups: remove unused headers and add feature test macros
12 years ago
thread
refrain from spinning on locks when there is already a waiter
12 years ago
time
properly pass current locale to *_l functions when used internally
12 years ago
unistd
support linux kernel apis (new archs) with old syscalls removed
12 years ago