mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-21 17:06:25 +04:00
remove connect fun in usr/src/task.rs
This commit is contained in:
parent
22178ba9b8
commit
725a7baf2e
@ -18,9 +18,7 @@ pub fn fork() -> isize {
|
||||
pub fn exec(path: &str, args: &[*const u8]) -> isize {
|
||||
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 {
|
||||
loop {
|
||||
match sys_waitpid(-1, exit_code as *mut _) {
|
||||
|
Loading…
Reference in New Issue
Block a user