update and add spec links to sys_utsname and sys_select
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user