Struct sysnames::Syscalls[][src]

pub struct Syscalls;
Expand description

Get system call information for your target architecture. Currently only supports the Linux kernel.

Implementations

Get a system call name by its number, if it exists on your architecture.

use sysnames::Syscalls;

let execve_num = Syscalls::number("execve");
assert!(execve_num.is_some());

Get a system call number by its name, if it exists on your architecture.

use sysnames::Syscalls;

let execve_name = Syscalls::name(59);
assert!(execve_name.is_some());

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.