Define dirent_t on all platforms
This commit is contained in:
parent
1effc23b90
commit
d6e07e2734
@ -101,8 +101,6 @@ pub type ssize_t = isize;
|
||||
|
||||
pub enum FILE {}
|
||||
pub enum fpos_t {}
|
||||
pub enum DIR {}
|
||||
pub enum dirent {}
|
||||
|
||||
extern {
|
||||
pub fn isalnum(c: c_int) -> c_int;
|
||||
|
@ -83,11 +83,20 @@ s! {
|
||||
pub st_qspare: [::int64_t; 2],
|
||||
}
|
||||
|
||||
pub struct dirent {
|
||||
pub d_ino: u64,
|
||||
pub d_seekoff: u64,
|
||||
pub d_reclen: u16,
|
||||
pub d_namlen: u16,
|
||||
pub d_type: u8,
|
||||
pub d_name: [::c_char; 1024],
|
||||
}
|
||||
|
||||
pub struct pthread_mutex_t {
|
||||
__sig: ::c_long,
|
||||
__opaque: [u8; __PTHREAD_MUTEX_SIZE__],
|
||||
}
|
||||
|
||||
pub struct pthread_mutexattr_t {
|
||||
__sig: ::c_long,
|
||||
__opaque: [u8; 8],
|
||||
|
@ -16,6 +16,14 @@ pub type pthread_key_t = ::c_int;
|
||||
pub enum timezone {}
|
||||
|
||||
s! {
|
||||
pub struct dirent {
|
||||
pub d_fileno: u32,
|
||||
pub d_reclen: u16,
|
||||
pub d_type: u8,
|
||||
pub d_namelen: u8,
|
||||
pub d_name: [::c_char; 256],
|
||||
}
|
||||
|
||||
pub struct glob_t {
|
||||
pub gl_pathc: ::size_t,
|
||||
__unused1: ::size_t,
|
||||
|
@ -22,6 +22,16 @@ pub type rlim_t = u64;
|
||||
pub enum timezone {}
|
||||
|
||||
s! {
|
||||
pub struct dirent {
|
||||
pub d_fileno: ::ino_t,
|
||||
pub d_off: ::off_t,
|
||||
pub d_reclen: u16,
|
||||
pub d_type: u8,
|
||||
pub d_namelen: u8,
|
||||
__d_padding: [u8; 4],
|
||||
pub d_name: [::c_char; 256],
|
||||
}
|
||||
|
||||
pub struct siginfo_t {
|
||||
pub si_signo: ::c_int,
|
||||
pub si_code: ::c_int,
|
||||
|
@ -10,6 +10,8 @@ pub type in_addr_t = u32;
|
||||
pub type in_port_t = u16;
|
||||
pub type sighandler_t = ::size_t;
|
||||
|
||||
pub enum DIR {}
|
||||
|
||||
s! {
|
||||
pub struct utimbuf {
|
||||
pub actime: time_t,
|
||||
|
@ -43,6 +43,14 @@ s! {
|
||||
pub st_ino: ::c_ulonglong,
|
||||
}
|
||||
|
||||
pub struct dirent {
|
||||
pub d_ino: u64,
|
||||
pub d_off: i64,
|
||||
pub d_reclen: ::c_ushort,
|
||||
pub d_type: ::c_uchar,
|
||||
pub d_name: [::c_char; 256],
|
||||
}
|
||||
|
||||
pub struct pthread_attr_t {
|
||||
pub flags: ::uint32_t,
|
||||
pub stack_base: *mut ::c_void,
|
||||
|
@ -7,6 +7,14 @@ pub type pthread_t = c_ulong;
|
||||
pub type mode_t = u32;
|
||||
|
||||
s! {
|
||||
pub struct dirent {
|
||||
pub d_ino: ::ino_t,
|
||||
pub d_off: ::off_t,
|
||||
pub d_reclen: ::c_ushort,
|
||||
pub d_type: ::c_uchar,
|
||||
pub d_name: [::c_char; 256],
|
||||
}
|
||||
|
||||
pub struct glob_t {
|
||||
pub gl_pathc: ::size_t,
|
||||
pub gl_pathv: *mut *mut c_char,
|
||||
|
Loading…
Reference in New Issue
Block a user