Skip to main content

bin_syserror

Function bin_syserror 

Source
pub fn bin_syserror(
    nam: &str,
    args: &[String],
    ops: &options,
    _func: i32,
) -> i32
Expand description

Port of bin_syserror(char *nam, char **args, Options ops, UNUSED(int func)) from Src/Modules/system.c:494.

C signature: static int bin_syserror(char *nam, char **args, Options ops, int func). Builtin spec: "e:p:" (system.c:819), 0-1 positional args (the errno number or symbolic name).

Return values per c:485-489: 0 success / 1 bad params / 2 unknown errno name. WARNING: param names don’t match C — Rust=(nam, args, _func) vs C=(nam, args, ops, func)