logos.std.os

Module std · package logos-std

Functions

fnarch

fn arch() -> String

Returns the CPU architecture the program was compiled for.

Hard-coded to "x86_64" until cross-compilation lands.

fneuid

fn euid() -> i32

Returns the effective user id of the calling process.

fnexit_process

fn exit_process(code: i32) -> void

Terminates the current process with code as the exit status.

Never returns; live locals are not dropped (calls libc exit).

fnfamily

fn family() -> String

Returns the OS family the program was compiled for.

Hard-coded to "unix" until cross-compilation lands.

fngid

fn gid() -> i32

Returns the real group id of the calling process.

fnhostname

fn hostname() -> String

Returns the system hostname.

Returns an empty String if gethostname fails.

fnos

fn os() -> String

Returns the operating system the program was compiled for.

Hard-coded to "linux" until cross-compilation lands.

fnpid

fn pid() -> i32

Returns the process id of the calling process.

fnppid

fn ppid() -> i32

Returns the process id of the parent of the calling process.

fnuid

fn uid() -> i32

Returns the real user id of the calling process.