diff options
Diffstat (limited to 'upb/bindings/linux/stdlib.h')
-rw-r--r-- | upb/bindings/linux/stdlib.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/upb/bindings/linux/stdlib.h b/upb/bindings/linux/stdlib.h deleted file mode 100644 index 5ae6742..0000000 --- a/upb/bindings/linux/stdlib.h +++ /dev/null @@ -1,17 +0,0 @@ -/* -** Linux-kernel implementations of some stdlib.h functions. -*/ - -#include <linux/slab.h> - -#ifndef UPB_LINUX_STDLIB_H -#define UPB_LINUX_STDLIB_H - -static inline void *malloc(size_t size) { return kmalloc(size, GFP_ATOMIC); } -static inline void free(void *p) { kfree(p); } - -static inline void *realloc(void *p, size_t size) { - return krealloc(p, size, GFP_ATOMIC); -} - -#endif |