Skip to content

Commit 2d0f9c8

Browse files
committed
Auto merge of #2371 - devnexen:haiku_posix_memalloc, r=JohnTitor
haiku adding couple of mem allocations related calls.
2 parents 52607be + 3ffb01c commit 2d0f9c8

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)