sysdecode_abi_to_freebsd_errno(3)

sysdecode_abi_to_freebsd_errno3

Translate error numbers between process abis

Usage

#include <sysdecode.h>

int

sysdecode_abi_to_freebsd_errno(enum sysdecode_abi abi, int error);

int

sysdecode_freebsd_to_abi_errno(enum sysdecode_abi abi, int error);

Library

library “libsysdecode”

Overview

The sysdecode_abi_to_freebsd_errno() function returns the native errno(2) value that corresponds to the error indicated by error for the process ABI abi. If error does not identify a valid error for abi, INT_MAX is returned.

The sysdecode_freebsd_to_abi_errno() function the error value for the process ABI abi that corresponds to the native errno(2) value error. If error does not identify a valid errno(2) error, INT_MAX is returned.

Note that the mappings between native errno(2) values and errors for other ABIs are not exhaustive. If a mapping does not exist, these functions return INT_MAX. In addition, multiple error values in one ABI may map to a single error in another ABI.

Return values

These functions return an error value on success or INT_MAX if error is not valid.

For the list of supported ABIs, see sysdecode(3).

Releases

25 releases since FreeBSD 11.0-RELEASE; the text changed 13 times.

  1. 11.0
  2. 11.1
  3. 11.2
  4. 11.3
  5. 11.4
  6. 12.0
  7. 12.1
  8. 12.2
  9. 12.3
  10. 12.4
  11. 13.0–13.1
  12. 13.2
  13. 13.3–14.4
  14. 14.5–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.