removed pdclib, strange things were happening..., user shell kinda works now
This commit is contained in:
22
rocklibc/include/syscall.h
Normal file
22
rocklibc/include/syscall.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef RLIBC_SYSCALL_H
|
||||
#define RLIBC_SYSCALL_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define SYS_EXIT 1
|
||||
#define SYS_READ 3
|
||||
#define SYS_WRITE 4
|
||||
|
||||
int write(int fd, const void *buf, size_t count);
|
||||
int read(int fd, void *buf, size_t count);
|
||||
int close(int fd);
|
||||
|
||||
size_t lseek(int fd, size_t offset, int whence);
|
||||
|
||||
void exit(int status) __attribute__((noreturn));
|
||||
|
||||
void *sbrk(intptr_t increment);
|
||||
int brk(void *addr);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user