about summary refs log tree commit diff
path: root/src/rt/rust_kernel.h
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2012-06-13 17:59:21 -0700
committerMichael Sullivan <sully@msully.net>2012-06-13 17:59:21 -0700
commit4c0d41cffae78725c20a40302e81ef1246c3e4c7 (patch)
tree22bc0c98ad81612eff343237e5cc8d529e552f49 /src/rt/rust_kernel.h
parent31f4b63dffb49e65d3de4ecbef573e15b0f44e36 (diff)
downloadrust-4c0d41cffae78725c20a40302e81ef1246c3e4c7.tar.gz
rust-4c0d41cffae78725c20a40302e81ef1246c3e4c7.zip
Add a malloc_dyn upcall for dynamically sized allocations on the shared heap.
Diffstat (limited to 'src/rt/rust_kernel.h')
-rw-r--r--src/rt/rust_kernel.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rt/rust_kernel.h b/src/rt/rust_kernel.h
index 8a963dbb25c..ba2c6a7bff0 100644
--- a/src/rt/rust_kernel.h
+++ b/src/rt/rust_kernel.h
@@ -113,6 +113,7 @@ public:
     void fatal(char const *fmt, ...);
 
     void *malloc(size_t size, const char *tag);
+    void *calloc(size_t size, const char *tag);
     void *realloc(void *mem, size_t size);
     void free(void *mem);
     memory_region *region() { return &_region; }
@@ -165,3 +166,13 @@ template <typename T> struct kernel_owned {
 };
 
 #endif /* RUST_KERNEL_H */
+
+//
+// Local Variables:
+// mode: C++
+// fill-column: 78;
+// indent-tabs-mode: nil
+// c-basic-offset: 4
+// buffer-file-coding-system: utf-8-unix
+// End:
+//