Skip to content

Commit 3ffb01c

Browse files
committed
haiku adding couple of mem allocations related calls.
1 parent 1a5468f commit 3ffb01c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,8 @@ extern "C" {
14211421
attr: *mut pthread_condattr_t,
14221422
clock_id: ::clockid_t,
14231423
) -> ::c_int;
1424+
pub fn valloc(numBytes: ::size_t) -> *mut ::c_void;
1425+
pub fn malloc_usable_size(ptr: *mut ::c_void) -> ::size_t;
14241426
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;
14251427
pub fn setgroups(ngroups: ::c_int, ptr: *const ::gid_t) -> ::c_int;
14261428
pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;

0 commit comments

Comments
 (0)