| author | |
| committer | |
| log | 3ef91233caf2c637797d84527a4e78f870e4b4b9 |
| tree | 8adb08740a9228c1c7af7826597ad171e8f7c18f |
| parent | 2839e35d1c06ca5b6bda1f20ae870f2b2fbbbfb1 |
| parent | fcaf4e7397c9377ab65b1262dc54ec17ccca8716 |
| signature |
std.c: haiku also supports malloc_usable_size to benefit zig's heap2 files changed, 3 insertions(+), 0 deletions(-)
lib/std/c/dragonfly.zig+1| ... | ... | @@ -21,6 +21,7 @@ pub extern "c" fn dl_iterate_phdr(callback: dl_iterate_phdr_callback, data: ?*an |
| 21 | 21 | pub extern "c" fn lwp_gettid() c_int; |
| 22 | 22 | |
| 23 | 23 | pub extern "c" fn posix_memalign(memptr: *?*anyopaque, alignment: usize, size: usize) c_int; |
| 24 | pub extern "c" fn malloc_usable_size(?*const anyopaque) usize; | |
| 24 | 25 | |
| 25 | 26 | pub const pthread_mutex_t = extern struct { |
| 26 | 27 | inner: ?*anyopaque = null, |
lib/std/c/haiku.zig+2| ... | ... | @@ -1071,3 +1071,5 @@ pub const sigevent = extern struct { |
| 1071 | 1071 | |
| 1072 | 1072 | /// TODO refines if necessary |
| 1073 | 1073 | pub const PTHREAD_STACK_MIN = 2 * 4096; |
| 1074 | ||
| 1075 | pub extern "c" fn malloc_usable_size(?*anyopaque) usize; |