-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnu: Update the stat* structs for 64-bit time
Move the stat struct from gnu/b32/mod.rs to gnu/b32/time*.rs For arm, mips, powerpc, riscv32, and x86, move stat64 to time32.rs and add an stat64 = stat alias to time64.rs. For sparc, do the same for statfs64 and statvfs64.
- Loading branch information
Showing
19 changed files
with
257 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
s! { | ||
pub struct stat64 { | ||
pub st_dev: ::dev_t, | ||
__pad1: ::c_uint, | ||
__st_ino: ::ino_t, | ||
pub st_mode: ::mode_t, | ||
pub st_nlink: ::nlink_t, | ||
pub st_uid: ::uid_t, | ||
pub st_gid: ::gid_t, | ||
pub st_rdev: ::dev_t, | ||
__pad2: ::c_uint, | ||
pub st_size: ::off64_t, | ||
pub st_blksize: ::blksize_t, | ||
pub st_blocks: ::blkcnt64_t, | ||
pub st_atime: ::time_t, | ||
pub st_atime_nsec: ::c_long, | ||
pub st_mtime: ::time_t, | ||
pub st_mtime_nsec: ::c_long, | ||
pub st_ctime: ::time_t, | ||
pub st_ctime_nsec: ::c_long, | ||
pub st_ino: ::ino64_t, | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
use stat; | ||
pub type stat64 = stat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
s! { | ||
pub struct stat64 { | ||
pub st_dev: ::c_ulong, | ||
st_pad1: [::c_long; 3], | ||
pub st_ino: ::ino64_t, | ||
pub st_mode: ::mode_t, | ||
pub st_nlink: ::nlink_t, | ||
pub st_uid: ::uid_t, | ||
pub st_gid: ::gid_t, | ||
pub st_rdev: ::c_ulong, | ||
st_pad2: [::c_long; 2], | ||
pub st_size: ::off64_t, | ||
pub st_atime: ::time_t, | ||
pub st_atime_nsec: ::c_long, | ||
pub st_mtime: ::time_t, | ||
pub st_mtime_nsec: ::c_long, | ||
pub st_ctime: ::time_t, | ||
pub st_ctime_nsec: ::c_long, | ||
pub st_blksize: ::blksize_t, | ||
st_pad3: ::c_long, | ||
pub st_blocks: ::blkcnt64_t, | ||
st_pad5: [::c_long; 14], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
use stat; | ||
pub type stat64 = stat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
use stat; | ||
pub type stat64 = stat; | ||
|
||
s! { | ||
pub struct shmid_ds { | ||
pub shm_perm: ::ipc_perm, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
s! { | ||
pub struct statfs64 { | ||
pub f_type: ::__fsword_t, | ||
pub f_bsize: ::__fsword_t, | ||
pub f_blocks: u64, | ||
pub f_bfree: u64, | ||
pub f_bavail: u64, | ||
pub f_files: u64, | ||
pub f_ffree: u64, | ||
pub f_fsid: ::fsid_t, | ||
pub f_namelen: ::__fsword_t, | ||
pub f_frsize: ::__fsword_t, | ||
pub f_flags: ::__fsword_t, | ||
pub f_spare: [::__fsword_t; 4], | ||
} | ||
|
||
pub struct statvfs64 { | ||
pub f_bsize: ::c_ulong, | ||
pub f_frsize: ::c_ulong, | ||
pub f_blocks: u64, | ||
pub f_bfree: u64, | ||
pub f_bavail: u64, | ||
pub f_files: u64, | ||
pub f_ffree: u64, | ||
pub f_favail: u64, | ||
pub f_fsid: ::c_ulong, | ||
pub f_flag: ::c_ulong, | ||
pub f_namemax: ::c_ulong, | ||
__f_spare: [::c_int; 6], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
use statfs; | ||
use statvfs; | ||
pub type statfs64 = statfs; | ||
pub type statvfs64 = statvfs; |
Oops, something went wrong.