unix-system-call ( quot -- quot )


Vocabulary
unix

Inputs
quota quotation


Outputs
quota quotation


Word description
Calls a Unix function that returns one result: a nonnegative integer or non-null pointer on success, and a negative integer or null pointer on failure. Retries failures with EINTR using the original arguments. Other failures throw a unix-system-call-error containing the arguments, error number, and called word.

Notes
Use only when retrying is valid for that function. Do not use for close, interrupted event-loop waits with deadlines, or functions such as getgrnam_r that return error numbers directly. A successful partial read or write is returned to the caller, not repeated.

See also
unix-system-call-allow-eintr

Definition