mirror of
https://github.com/jiangcuo/nix.git
synced 2026-02-04 12:41:27 +00:00
This fixes several issues with the current `uname` bindings:
- Do not ignore `uname` errors; at least on glibc `uname` can fail,
so now it returns a `Result` instead of assuming that the call
will always succeed.
- Do not assume `uname` will initialize every member of `utsname`;
not every implementation initializes every field, so internally
the struct is now zero-initialized.
- Do not blindly assume strings returned by `uname` will always be valid UTF-8;
`UtsName`'s accessors will now return `&OsStr`s instead of `&str`s.
|
||
|---|---|---|
| .. | ||
| common | ||
| sys | ||
| test_kmod | ||
| test_clearenv.rs | ||
| test_dir.rs | ||
| test_fcntl.rs | ||
| test_mount.rs | ||
| test_mq.rs | ||
| test_net.rs | ||
| test_nix_path.rs | ||
| test_nmount.rs | ||
| test_poll.rs | ||
| test_pty.rs | ||
| test_ptymaster_drop.rs | ||
| test_resource.rs | ||
| test_sched.rs | ||
| test_sendfile.rs | ||
| test_stat.rs | ||
| test_time.rs | ||
| test_timer.rs | ||
| test_unistd.rs | ||
| test.rs | ||