From: Rico Tzschichholz Date: Mon, 21 Oct 2019 13:19:09 +0000 (+0200) Subject: posix: Bind some essential memory allocation functions X-Git-Tag: 0.47.1~49 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3b7082a34fe17be82c981f626754c1db283f8dda;p=thirdparty%2Fvala.git posix: Bind some essential memory allocation functions --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index eb385bb70..63eab169e 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -1692,6 +1692,18 @@ namespace Posix { [CCode (cheader_filename = "stdlib.h")] public const int EXIT_SUCCESS; + /* Memory Allocation */ + [CCode (cheader_filename = "stdlib.h")] + public void* malloc (size_t size); + [CCode (cheader_filename = "stdlib.h")] + public void* calloc (size_t nmemb, size_t size); + [CCode (cheader_filename = "stdlib.h")] + public void* realloc (void* ptr, size_t size); + [CCode (cheader_filename = "stdlib.h", feature_test_macro = "_GNU_SOURCE")] + public void* reallocarray (void* ptr, size_t nmemb, size_t size); + [CCode (cheader_filename = "stdlib.h")] + public void free (void* ptr); + [CCode (cheader_filename = "string.h")] public void* memccpy (void* s1, void* s2, int c, size_t n); [CCode (cheader_filename = "string.h")]