Function lrs::syscall::sethostname

Sets the hostname of the system.

Syntax

fn sethostname(name: &[u8]) -> i32

Arguments

NameDescription
name

The new hostname of the system.

Return value

Returns success or an error value.

See also