starting to work on pty drivers, fork(), and scheduler redesign
This commit is contained in:
@@ -34,4 +34,12 @@ int write(int fd, const void* buf, size_t cnt) {
|
||||
|
||||
int read(int fd, void* buf, size_t cnt) {
|
||||
return syscall3(SYS_READ, (uint32_t)fd, (uint32_t)buf, (uint32_t)cnt);
|
||||
}
|
||||
|
||||
int pty(int* slave) {
|
||||
return syscall1(SYS_PTY, (uint32_t)slave);
|
||||
}
|
||||
|
||||
int fork() {
|
||||
return syscall1(SYS_FORK, 0);
|
||||
}
|
||||
Reference in New Issue
Block a user