feat: reformatted code base to be more standard
This commit is contained in:
36
include/stdlib.h
Normal file
36
include/stdlib.h
Normal file
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// Created by rick on 10-03-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_STDLIB_H
|
||||
#define NEW_KERNEL_STDLIB_H
|
||||
|
||||
#ifdef __kernel__
|
||||
#define INCLUDE_STDLIB
|
||||
|
||||
#include <myke/mem/malloc.h>
|
||||
|
||||
#undef INCLUDE_STDLIB
|
||||
#else
|
||||
#error "Userspace not implemented"
|
||||
#endif
|
||||
|
||||
void abort();
|
||||
|
||||
int atexit(void (*)(void));
|
||||
|
||||
int atoi(const char *);
|
||||
|
||||
char *itoa(int value, char *buffer, int base);
|
||||
|
||||
char *getenv(const char *);
|
||||
|
||||
int abs(int val);
|
||||
|
||||
long labs(long val);
|
||||
|
||||
long long llabs(long long val);
|
||||
|
||||
void qsort(void *base, size_t num, size_t size, int (*compar)(const void *, const void *));
|
||||
|
||||
#endif //NEW_KERNEL_STDLIB_H
|
||||
Reference in New Issue
Block a user