2 * <stdlib.h> wrapper functions.
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2004-2005 Jonathan Pryor
18 Mono_Posix_Stdlib_EXIT_FAILURE (void)
24 Mono_Posix_Stdlib_EXIT_SUCCESS (void)
30 Mono_Posix_Stdlib_MB_CUR_MAX (void)
36 Mono_Posix_Stdlib_RAND_MAX (void)
42 Mono_Posix_Stdlib_calloc (mph_size_t nmemb
, mph_size_t size
)
44 if (mph_have_size_t_overflow(nmemb
) || mph_have_size_t_overflow(size
))
47 return calloc ((size_t) nmemb
, (size_t) size
);
51 Mono_Posix_Stdlib_malloc (mph_size_t size
)
53 if (mph_have_size_t_overflow(size
))
56 return malloc ((size_t) size
);
60 Mono_Posix_Stdlib_realloc (void* ptr
, mph_size_t size
)
62 if (mph_have_size_t_overflow(size
))
65 return realloc (ptr
, (size_t) size
);