kern
annotate src/klibc/stdlib.h @ 71:c7bd6ec7b946
changed test_proc to modify memory after the fork in order to try out copy-on-write,
by pushing the result of getpid on the stack.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 13 Oct 2011 05:22:35 +0300 |
parents | 633e35c64772 |
children | f83f50c17c3b |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef STDLIB_H_ |
nuclear@0 | 2 #define STDLIB_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include <inttypes.h> |
nuclear@0 | 5 |
nuclear@0 | 6 typedef int32_t ssize_t; |
nuclear@0 | 7 typedef uint32_t size_t; |
nuclear@0 | 8 |
nuclear@5 | 9 int atoi(const char *str); |
nuclear@5 | 10 long atol(const char *str); |
nuclear@5 | 11 |
nuclear@5 | 12 void itoa(int val, char *buf, int base); |
nuclear@5 | 13 void utoa(unsigned int val, char *buf, int base); |
nuclear@5 | 14 |
nuclear@28 | 15 /* defined in malloc.c */ |
nuclear@28 | 16 void *malloc(size_t sz); |
nuclear@28 | 17 void free(void *ptr); |
nuclear@28 | 18 |
nuclear@0 | 19 #endif /* STDLIB_H_ */ |