2 * <stdlib.h> wrapper functions.
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2004-2005 Jonathan Pryor
19 Mono_Unix_VersionString ()
21 return "MonoProject-2015-12-1";
25 Mono_Posix_Stdlib_EXIT_FAILURE (void)
31 Mono_Posix_Stdlib_EXIT_SUCCESS (void)
37 Mono_Posix_Stdlib_MB_CUR_MAX (void)
43 Mono_Posix_Stdlib_RAND_MAX (void)
49 Mono_Posix_Stdlib_calloc (mph_size_t nmemb
, mph_size_t size
)
51 if (mph_have_size_t_overflow(nmemb
) || mph_have_size_t_overflow(size
))
54 return calloc ((size_t) nmemb
, (size_t) size
);
58 Mono_Posix_Stdlib_malloc (mph_size_t size
)
60 if (mph_have_size_t_overflow(size
))
63 return malloc ((size_t) size
);
67 Mono_Posix_Stdlib_realloc (void* ptr
, mph_size_t size
)
69 if (mph_have_size_t_overflow(size
))
72 return realloc (ptr
, (size_t) size
);
76 Mono_Posix_Stdlib_free (void* p
)