authorgravatar for mail@isaacfreund.comIsaac Freund <mail@isaacfreund.com> 2020-11-19 19:16:54+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-11-20 18:36:23-07:00
loga05ae01b4fba950fa0bddb8e33ed757b592d9b47
tree5c0c6867b37e402067d912aad8caf25f598e4243
parent1344706b4771dbd2b3d477f354f3f5e5e20b416e

std/os: define and use dev_t for linux x86_64


1 files changed, 3 insertions(+), 2 deletions(-)

lib/std/os/bits/linux/x86_64.zig+3-2
...@@ -512,10 +512,11 @@ pub const msghdr_const = extern struct {...@@ -512,10 +512,11 @@ pub const msghdr_const = extern struct {
512512
513pub const off_t = i64;513pub const off_t = i64;
514pub const ino_t = u64;514pub const ino_t = u64;
515pub const dev_t = u64;
515516
516// The `stat` definition used by the Linux kernel.517// The `stat` definition used by the Linux kernel.
517pub const kernel_stat = extern struct {518pub const kernel_stat = extern struct {
518 dev: u64,519 dev: dev_t,
519 ino: ino_t,520 ino: ino_t,
520 nlink: usize,521 nlink: usize,
521522
...@@ -523,7 +524,7 @@ pub const kernel_stat = extern struct {...@@ -523,7 +524,7 @@ pub const kernel_stat = extern struct {
523 uid: uid_t,524 uid: uid_t,
524 gid: gid_t,525 gid: gid_t,
525 __pad0: u32,526 __pad0: u32,
526 rdev: u64,527 rdev: dev_t,
527 size: off_t,528 size: off_t,
528 blksize: isize,529 blksize: isize,
529 blocks: i64,530 blocks: i64,