mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 09:03:12 +00:00
Merge pull request #15867 from devnexen/haiku_malloc_usable_size
std.c: haiku also supports malloc_usable_size to benefit zig's heap
This commit is contained in:
commit
3ef91233ca
@ -21,6 +21,7 @@ pub extern "c" fn dl_iterate_phdr(callback: dl_iterate_phdr_callback, data: ?*an
|
||||
pub extern "c" fn lwp_gettid() c_int;
|
||||
|
||||
pub extern "c" fn posix_memalign(memptr: *?*anyopaque, alignment: usize, size: usize) c_int;
|
||||
pub extern "c" fn malloc_usable_size(?*const anyopaque) usize;
|
||||
|
||||
pub const pthread_mutex_t = extern struct {
|
||||
inner: ?*anyopaque = null,
|
||||
|
@ -1071,3 +1071,5 @@ pub const sigevent = extern struct {
|
||||
|
||||
/// TODO refines if necessary
|
||||
pub const PTHREAD_STACK_MIN = 2 * 4096;
|
||||
|
||||
pub extern "c" fn malloc_usable_size(?*anyopaque) usize;
|
||||
|
Loading…
Reference in New Issue
Block a user