Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 1 | #ifndef STDLIB_H |
| 2 | #define STDLIB_H |
| 3 | |
| 4 | #include <stddef.h> |
| 5 | |
Lee Leahy | ae3fd34 | 2017-03-07 12:55:23 -0800 | [diff] [blame] | 6 | #define min(a, b) MIN((a), (b)) |
| 7 | #define max(a, b) MAX((a), (b)) |
Kyösti Mälkki | 931c1dc | 2014-06-30 09:40:19 +0300 | [diff] [blame] | 8 | |
Ron Minnich | eb59636 | 2012-04-11 10:30:15 -0700 | [diff] [blame] | 9 | void *memalign(size_t boundary, size_t size); |
Stefan Reinauer | 6bd571e | 2009-09-25 21:59:57 +0000 | [diff] [blame] | 10 | void *malloc(size_t size); |
Stefan Reinauer | e09f7ef | 2012-12-18 14:27:50 -0800 | [diff] [blame] | 11 | /* We never free memory */ |
| 12 | static inline void free(void *ptr) {} |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 13 | |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 14 | #endif /* STDLIB_H */ |