summaryrefslogtreecommitdiff
path: root/upb/bindings/linux/stdlib.h
diff options
context:
space:
mode:
authorgerben-s <gerbens@google.com>2018-08-21 15:31:54 -0700
committerGitHub <noreply@github.com>2018-08-21 15:31:54 -0700
commit0a95f73d0d9874151c0d36d6035230a873fa1715 (patch)
treea03b7fbaf122909d9aeab5b1769b661fc3cbbbc6 /upb/bindings/linux/stdlib.h
parente3eae33fb5840dbec3c2bc9109fa164f6066baa8 (diff)
parent6155ed8b499c10bdd1f38bcb25866218bc388b7c (diff)
Merge pull request #116 from haberman/rmgooglepb
Removed a bunch of obsolete code.
Diffstat (limited to 'upb/bindings/linux/stdlib.h')
-rw-r--r--upb/bindings/linux/stdlib.h17
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback