mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 10:26:59 +00:00
terminal fixes
This commit is contained in:
@@ -207,6 +207,10 @@ int sys_tcp_recv(void *buf, size_t max_len) {
|
||||
return (int)syscall3(SYS_SYSTEM, SYSTEM_CMD_TCP_RECV, (uint64_t)buf, (uint64_t)max_len);
|
||||
}
|
||||
|
||||
int sys_tcp_recv_nb(void *buf, size_t max_len) {
|
||||
return (int)syscall3(SYS_SYSTEM, SYSTEM_CMD_TCP_RECV_NB, (uint64_t)buf, (uint64_t)max_len);
|
||||
}
|
||||
|
||||
int sys_tcp_close(void) {
|
||||
return (int)syscall2(SYS_SYSTEM, SYSTEM_CMD_TCP_CLOSE, 0);
|
||||
}
|
||||
@@ -223,3 +227,7 @@ void sys_network_force_unlock(void) {
|
||||
syscall2(SYS_SYSTEM, SYSTEM_CMD_NET_UNLOCK, 0);
|
||||
}
|
||||
|
||||
void sys_yield(void) {
|
||||
syscall1(SYS_SYSTEM, SYSTEM_CMD_YIELD);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user