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

46
include/stdio.h Normal file
View File

@@ -0,0 +1,46 @@
//
// Created by rick on 10-03-21.
//
#ifndef NEW_KERNEL_STDIO_H
#define NEW_KERNEL_STDIO_H
#include <stdarg.h>
#include <stddef.h>
#define SEEK_SET 0
// todo
typedef struct {
int unused;
} FILE;
extern FILE *stderr;
// todo
#define stderr stderr
void fclose(FILE *);
void fflush(FILE *);
FILE *fopen(const char *, const char *);
void fprintf(FILE *, const char *, ...);
size_t fread(void *, size_t, size_t, FILE *);
int fseek(FILE *, long, int);
long ftell(FILE *);
size_t fwrite(const void *, size_t, size_t, FILE *);
void sebuf(FILE *, char *);
int vfprintf(FILE *, const char *, va_list);
int printf(const char *fmt, ...);
int sprintf(char *target, const char *fmt, ...);
#endif //NEW_KERNEL_STDIO_H