mirror of
https://github.com/Astatin3/syscall-stream-rs.git
synced 2026-06-09 08:28:01 -06:00
Work on things.
This commit is contained in:
+4
-2
@@ -4,7 +4,7 @@ use std::{
|
||||
thread,
|
||||
};
|
||||
|
||||
use syscall_lib::{Syscall, execute_syscall};
|
||||
use syscall_lib::Syscall;
|
||||
|
||||
fn main() {
|
||||
println!("This program has PID: {}", std::process::id());
|
||||
@@ -43,7 +43,9 @@ fn handle_connection(stream: &mut TcpStream) -> Result<(), std::io::Error> {
|
||||
// Syscall::Write(..) => 0,
|
||||
// _ => syscall_exec::execute_syscall(decoded),
|
||||
// };
|
||||
let result = execute_syscall(decoded);
|
||||
let result = unsafe { decoded.execute_syscall() };
|
||||
|
||||
// let result = 0;
|
||||
|
||||
println!("{:?}", result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user