Use nix for libc functions

This commit is contained in:
topjohnwu
2025-09-08 23:59:29 -07:00
parent 17082af438
commit ef4e230258
31 changed files with 457 additions and 475 deletions

View File

@@ -200,9 +200,8 @@ pub fn find_preinit_device() -> String {
libc::S_IFBLK | 0o600,
info.device as dev_t,
)
.check_io_err()
.log()
.ok();
.check_os_err("mknod", Some(dev_path), None)
.log_ok();
}
}
}