remove connect fun in usr/src/task.rs

This commit is contained in:
Yu Chen 2023-02-08 00:15:59 +08:00
parent 22178ba9b8
commit 725a7baf2e

View File

@ -18,9 +18,7 @@ pub fn fork() -> isize {
pub fn exec(path: &str, args: &[*const u8]) -> isize { pub fn exec(path: &str, args: &[*const u8]) -> isize {
sys_exec(path, args) sys_exec(path, args)
} }
pub fn connect(raddr: u32, lport: u16, rport: u16) -> isize {
sys_connect(raddr, lport, rport)
}
pub fn wait(exit_code: &mut i32) -> isize { pub fn wait(exit_code: &mut i32) -> isize {
loop { loop {
match sys_waitpid(-1, exit_code as *mut _) { match sys_waitpid(-1, exit_code as *mut _) {