Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Peta::FFI::Libc

pperl-specific module built into the interpreter. Runtime: PP.

Peta::FFI::Libc — Pre-baked libc bindings (Layer 1)

Calls libc::* directly via the libc crate — no dlopen needed. Each function is a NativeFn that reads args from the stack and pushes a result.

Functions

F_OK

R_OK

W_OK

X_OK

abs

access

chmod

chown

clock

getegid

getenv

geteuid

getgid

gethostname

getpid

getppid

getuid

labs

mkdir

rmdir

setenv

sleep

strerror

strlen

time

uname

unsetenv

usleep