mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-04 18:43:11 +00:00
- Chenged Puts() syscall to Write() - Improved syscalls.h - added a new header in terminal/terminal.h - moved gfxMode into screen/gfxmode.h
19 lines
294 B
C
19 lines
294 B
C
#ifndef STDIO_H
|
|
#define STDIO_H
|
|
|
|
#include <syscall.h>
|
|
#include <string.h>
|
|
|
|
// TODO: Make a proper file descriptor table
|
|
#define STDOUT 1
|
|
|
|
void print(const char* s) {
|
|
write(STDOUT, s, strlen(s));
|
|
}
|
|
|
|
void read(char* s) {
|
|
print("\x1b[1M[ ERROR: Read() Syscall not found! ]\n");
|
|
}
|
|
|
|
#endif
|