Commit ea42589d authored by Jeremy Soller's avatar Jeremy Soller

Add the following:

- fchmod
- fchown
- frename
- futimens
- getpgid
- getppid
- setpgid
parent 6433ff49
......@@ -119,6 +119,17 @@ pub fn format_call(mut mem: Option<&mut Memory>, a: usize, b: usize, c: usize, d
},
d
),
SYS_FCHMOD => format!(
"fchmod({}, {:#o})",
b,
c
),
SYS_FCHOWN => format!(
"fchown({}, {}, {})",
b,
c,
d
),
SYS_FCNTL => format!(
"fcntl({}, {} ({}), {:#X})",
b,
......@@ -151,6 +162,11 @@ pub fn format_call(mut mem: Option<&mut Memory>, a: usize, b: usize, c: usize, d
c,
d
),
SYS_FRENAME => format!(
"frename({}, {:?}",
b,
ByteStr(raw_slice!(c as *const u8, d)),
),
SYS_FSTAT => format!(
"fstat({}, {:?})",
b,
......@@ -174,6 +190,14 @@ pub fn format_call(mut mem: Option<&mut Memory>, a: usize, b: usize, c: usize, d
b,
c
),
SYS_FUTIMENS => format!(
"futimens({}, {:?})",
b,
raw_slice!(
c as *const TimeSpec,
d/mem::size_of::<TimeSpec>()
),
),
SYS_BRK => format!(
"brk({:#X})",
......@@ -226,7 +250,9 @@ pub fn format_call(mut mem: Option<&mut Memory>, a: usize, b: usize, c: usize, d
SYS_GETEUID => format!("geteuid()"),
SYS_GETGID => format!("getgid()"),
SYS_GETNS => format!("getns()"),
SYS_GETPGID => format!("getpgid()"),
SYS_GETPID => format!("getpid()"),
SYS_GETPPID => format!("getppid()"),
SYS_GETUID => format!("getuid()"),
SYS_IOPL => format!(
"iopl({})",
......@@ -295,6 +321,11 @@ pub fn format_call(mut mem: Option<&mut Memory>, a: usize, b: usize, c: usize, d
raw_slice!(b as *const usize, 2),
c
),
SYS_SETPGID => format!(
"setpgid({}, {})",
b,
c
),
SYS_SETREGID => format!(
"setregid({}, {})",
b,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment