diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-24 17:58:18 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-24 17:58:18 +0200 |
| commit | de7208a60eca11aa8014e3a9b698e092322aea88 (patch) | |
| tree | 13323f839f63d0d363517af81de317f0ec17a415 /src/benchmarks/espresso/stdlib.h | |
| parent | 77ac9ce0a5c55d4f79f8fb8f7daa59ddb53cb507 (diff) | |
| download | allocbench-de7208a60eca11aa8014e3a9b698e092322aea88.tar.gz allocbench-de7208a60eca11aa8014e3a9b698e092322aea88.zip | |
add espresso benchmark
Diffstat (limited to 'src/benchmarks/espresso/stdlib.h')
| -rw-r--r-- | src/benchmarks/espresso/stdlib.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/benchmarks/espresso/stdlib.h b/src/benchmarks/espresso/stdlib.h new file mode 100644 index 0000000..c5cf479 --- /dev/null +++ b/src/benchmarks/espresso/stdlib.h @@ -0,0 +1,38 @@ +/* ANSI Compatible stdlib.h stub */ + +#ifndef __cplusplus + +#include <sys/types.h> + +#ifndef ultrix4 +extern double atof(const char *); +extern int atoi(const char *); +extern long atol(const char *); +extern void abort(void); +extern void *calloc(size_t, size_t); +extern void exit(int); +extern void free(void *); +extern void *malloc(size_t); +extern void *realloc(void *, size_t); +extern char *getenv(const char *); +#else +extern double atof(const char *); +extern int atoi(char *); +extern long atol(char *); +extern void abort(void); +extern void *calloc(size_t, size_t); +extern void exit(int); +extern void free(void *); +extern void *malloc(size_t); +extern void *realloc(void *, size_t); +extern char *getenv(char *); +#endif + +/* should be in stdio.h */ +extern void perror(const char *); + +#ifdef LINT +#undef putc +#endif + +#endif |
