This commit is contained in:
jD91mZM2
2019-07-07 12:17:48 +02:00
parent 35c1d5210c
commit 43ff8801bc
9 changed files with 70 additions and 53 deletions
+1 -1
View File
@@ -46,10 +46,10 @@ pub mod sys_statvfs;
pub mod sys_time;
pub mod sys_timeb;
//pub mod sys_times;
pub mod sys_user;
pub mod _wctype;
pub mod sys_uio;
pub mod sys_un;
pub mod sys_user;
pub mod sys_utsname;
pub mod sys_wait;
pub mod termios;
+1 -1
View File
@@ -5,8 +5,8 @@ use header::errno;
use header::fcntl::*;
use header::string::strchr;
use io::LineWriter;
use platform::types::*;
use platform;
use platform::types::*;
use sync::Mutex;
use super::constants::*;
+3 -3
View File
@@ -14,10 +14,10 @@ use header::errno::{self, STR_ERROR};
use header::string::{self, strlen};
use header::{fcntl, stdlib, unistd};
use io::{self, BufRead, LineWriter, Read, Write};
use platform::types::*;
use platform::{Pal, Sys};
use platform::{errno, WriteByte};
use platform;
use platform::types::*;
use platform::{errno, WriteByte};
use platform::{Pal, Sys};
use sync::Mutex;
pub use self::constants::*;
+1 -1
View File
@@ -1,7 +1,7 @@
//! ptrace compatibility layer for Redox OS
use platform::types::*;
use platform::{Sys, PalPtrace};
use platform::{PalPtrace, Sys};
pub const PTRACE_PEEKTEXT: c_int = 1;
pub const PTRACE_PEEKDATA: c_int = 2;
+12 -8
View File
@@ -4,7 +4,7 @@ use platform::types::*;
#[repr(C)]
pub struct user_fpregs_struct {
cwd: u16,
cwd: u16,
swd: u16,
ftw: u16,
fop: u16,
@@ -12,14 +12,14 @@ pub struct user_fpregs_struct {
rdp: u64,
mxcsr: u32,
mxcr_mask: u32,
st_space: [u32; 32],
st_space: [u32; 32],
xmm_space: [u32; 64],
padding: [u32; 24]
padding: [u32; 24],
}
#[repr(C)]
pub struct user_regs_struct {
r15: c_ulong,
r15: c_ulong,
r14: c_ulong,
r13: c_ulong,
r12: c_ulong,
@@ -29,14 +29,14 @@ pub struct user_regs_struct {
r10: c_ulong,
r9: c_ulong,
r8: c_ulong,
rax: c_ulong,
rax: c_ulong,
rcx: c_ulong,
rdx: c_ulong,
rsi: c_ulong,
rdi: c_ulong,
orig_rax: c_ulong,
rip: c_ulong,
cs: c_ulong,
cs: c_ulong,
eflags: c_ulong,
rsp: c_ulong,
ss: c_ulong,
@@ -45,8 +45,12 @@ pub struct user_regs_struct {
ds: c_ulong,
es: c_ulong,
fs: c_ulong,
gs: c_ulong
gs: c_ulong,
}
#[no_mangle]
pub extern "C" fn _cbindgen_only_generates_structs_if_they_are_mentioned_which_is_dumb(a: user_fpregs_struct, b: user_regs_struct) {}
pub extern "C" fn _cbindgen_only_generates_structs_if_they_are_mentioned_which_is_dumb(
a: user_fpregs_struct,
b: user_regs_struct,
) {
}