Skip to main content

uname

Function uname 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn uname(name: *mut utsname) -> c_int
Expand description

See https://pubs.opengroup.org/onlinepubs/9799919799/functions/uname.html.

Stores information identifying the current system in the structure pointed to by name.

Returns a non-negative value upon success, -1 upon failure.