update and add spec links to sys_utsname and sys_select

This commit is contained in:
auronandace
2025-12-07 17:01:51 +00:00
parent 228420291e
commit 64d688dc4e
2 changed files with 11 additions and 2 deletions
+5 -1
View File
@@ -1,4 +1,6 @@
//! sys/utsname implementation, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/sysutsname.h.html
//! `sys/utsname.h` implementation.
//!
//! See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_utsname.h.html>.
use crate::{
error::ResultExt,
@@ -8,6 +10,7 @@ use crate::{
pub const UTSLENGTH: usize = 65;
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_utsname.h.html>.
#[repr(C)]
#[derive(Clone, Copy, Debug, OutProject)]
pub struct utsname {
@@ -19,6 +22,7 @@ pub struct utsname {
pub domainname: [c_char; UTSLENGTH],
}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/uname.html>.
#[unsafe(no_mangle)]
pub unsafe extern "C" fn uname(uts: *mut utsname) -> c_int {
Sys::uname(Out::nonnull(uts))