Skip to main content

bin_syswrite

Function bin_syswrite 

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

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

C signature: static int bin_syswrite(char *nam, char **args, Options ops, int func). Builtin spec: "c:o:" (system.c:821), 1 mandatory positional arg.

Return values per c:230-233: 0 — Successfully written 1 — Error in parameters 2 — Write error (errno set) WARNING: param names don’t match C — Rust=(nam, args, _func) vs C=(nam, args, ops, func)