diff --git a/utshell-0.5/r_input/src/lib.rs b/utshell-0.5/r_input/src/lib.rs index 8e09f964acd1371e9189e26f1bc6b17bb0d893f3..264ca4527ca0cb5790674f82cc67eafc0841ec10 100644 --- a/utshell-0.5/r_input/src/lib.rs +++ b/utshell-0.5/r_input/src/lib.rs @@ -81,4 +81,29 @@ pub type __ssize_t = libc::c_long; pub type __syscall_slong_t = libc::c_long; pub type __sig_atomic_t = libc::c_int; pub type off_t = __off_t; -pub type ssize_t = __ssize_t; \ No newline at end of file +pub type ssize_t = __ssize_t; +#[derive(Copy, Clone)] +#[repr(C)] +pub struct timespec { + pub tv_sec: __time_t, + pub tv_nsec: __syscall_slong_t, +} +#[derive(Copy, Clone)] +#[repr(C)] +pub struct stat { + pub st_dev: __dev_t, + pub st_ino: __ino_t, + pub st_nlink: __nlink_t, + pub st_mode: __mode_t, + pub st_uid: __uid_t, + pub st_gid: __gid_t, + pub __pad0: libc::c_int, + pub st_rdev: __dev_t, + pub st_size: __off_t, + pub st_blksize: __blksize_t, + pub st_blocks: __blkcnt_t, + pub st_atim: timespec, + pub st_mtim: timespec, + pub st_ctim: timespec, + pub __glibc_reserved: [__syscall_slong_t; 3], +} \ No newline at end of file