nix/src/sys
Jan Bujak 4ae4cfd058 Make uname always safe
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.
2022-03-23 14:28:37 +09:00
..
ioctl linux.rs: Define consts for rv32 architecture 2022-03-05 22:46:30 -08:00
ptrace uclibc support 2022-01-24 10:06:35 -05:00
socket Deprecate IpAddr, Ipv4Addr, and Ipv6Addr 2022-03-22 21:09:52 -06:00
aio.rs Fix clippy warning on latest nightly 2021-12-22 13:32:52 -06:00
epoll.rs Recent versions of Android support EPOLLEXCLUSIVE 2021-12-22 12:59:35 -06:00
event.rs Remove EventFlag::EV_SYSFLAG 2022-01-16 10:17:05 -06:00
eventfd.rs Clippy cleanup 2021-09-19 07:58:15 -06:00
inotify.rs Document inotify.rs 2022-01-31 21:32:28 -06:00
memfd.rs Update mman related docs 2021-12-03 16:27:44 +05:30
mman.rs Document mman.rs 2022-02-02 17:53:47 -06:00
mod.rs Document timerfd.rs 2022-02-02 17:53:52 -06:00
personality.rs Document personality.rs 2022-02-02 17:53:52 -06:00
pthread.rs feature-gate most Nix functions 2021-12-20 18:47:16 -07:00
quota.rs Mark most C-derived enums as non_exhaustive 2021-07-24 14:44:11 -06:00
reboot.rs Document reboot.rs 2022-02-02 17:53:52 -06:00
resource.rs uclibc uses a u32 for RLIMIT definitions 2022-03-20 09:26:11 -05:00
select.rs feature-gate most Nix functions 2021-12-20 18:47:16 -07:00
sendfile.rs Add sendfile(2) for DragonFly 2022-01-03 04:05:09 -06:00
signal.rs Redox renamed sigaction.sa_handler to .sa_sigaction 2022-03-20 09:24:21 -05:00
signalfd.rs Clippy cleanup 2021-09-19 07:58:15 -06:00
stat.rs feature-gate most Nix functions 2021-12-20 18:47:16 -07:00
statfs.rs Fix complation on riscv32 2022-03-05 22:41:42 -08:00
statvfs.rs feature-gate most Nix functions 2021-12-20 18:47:16 -07:00
sysinfo.rs Use https instead of http 2021-05-13 23:37:16 -05:00
termios.rs Define _POSIX_VDISABLE on Android to fix doc test 2022-02-27 09:54:46 -06:00
time.rs Introduce timer_* support 2021-12-30 20:40:48 -08:00
timer.rs Introduce timer_* support 2021-12-30 20:40:48 -08:00
timerfd.rs Document timerfd.rs 2022-02-02 17:53:52 -06:00
uio.rs enable process_vm_readv, process_vm_writev for android 2022-02-07 22:39:18 +05:30
utsname.rs Make uname always safe 2022-03-23 14:28:37 +09:00
wait.rs wait: implement waitid() 2022-03-09 16:56:59 +01:00