std/os: define and use dev_t for linux x86_64

This commit is contained in:
Isaac Freund
2020-11-19 19:16:54 +01:00
committed by Andrew Kelley
parent 87eb498d89
commit 8cf319d206

View File

@@ -512,10 +512,11 @@ pub const msghdr_const = extern struct {
pub const off_t = i64;
pub const ino_t = u64;
pub const dev_t = u64;
// The `stat` definition used by the Linux kernel.
pub const kernel_stat = extern struct {
dev: u64,
dev: dev_t,
ino: ino_t,
nlink: usize,
@@ -523,7 +524,7 @@ pub const kernel_stat = extern struct {
uid: uid_t,
gid: gid_t,
__pad0: u32,
rdev: u64,
rdev: dev_t,
size: off_t,
blksize: isize,
blocks: i64,