SRFI 238: Codesets

by Lassi Kortela

status: draft (2022-11-03)

keywords: Operating System

See also SRFI 170: POSIX API, SRFI 198: Foreign Interface Status, and SRFI 199: POSIX errno manipulation.

library name: codesets

Abstract

Many programming interfaces rely on a set of condition codes where each code has a numeric ID, a mnemonic symbol, and a human-readable message. This SRFI defines a facility to translate between numbers and symbols in a codeset and fetch messages by code. Examples are given using the Unix errno and signal codesets.