feat: reformatted code base to be more standard

This commit is contained in:
2021-03-10 22:01:13 +01:00
parent dc4bf71b5a
commit 586b8191b4
81 changed files with 431 additions and 338 deletions

36
include/stdlib.h Normal file
View 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