Skip to content

Commit 8cf319d

Browse files
ifreundandrewrk
authored andcommitted
std/os: define and use dev_t for linux x86_64
1 parent 87eb498 commit 8cf319d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/std/os/bits/linux/x86_64.zig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,18 +512,19 @@ pub const msghdr_const = extern struct {
512512

513513
pub const off_t = i64;
514514
pub const ino_t = u64;
515+
pub const dev_t = u64;
515516

516517
// The `stat` definition used by the Linux kernel.
517518
pub const kernel_stat = extern struct {
518-
dev: u64,
519+
dev: dev_t,
519520
ino: ino_t,
520521
nlink: usize,
521522

522523
mode: u32,
523524
uid: uid_t,
524525
gid: gid_t,
525526
__pad0: u32,
526-
rdev: u64,
527+
rdev: dev_t,
527528
size: off_t,
528529
blksize: isize,
529530
blocks: i64,

0 commit comments

Comments
 (0)