SYSDECODE_ABI_TO_FREEBSD_ERRNO(3)
π sysdecode_abi_to_freebsd_errno(3) π
okay so bestie, welcome to the Library Functions Manual page for sysdecode_abi_to_freebsd_errno(3) β and yes, it's giving "translation era" energy, because this is all about moving error numbers between process ABIs. π¦
πΈ NAME πΈ
sysdecode_abi_to_freebsd_errno, sysdecode_freebsd_to_abi_errno β translating error numbers between process ABIs, no cap. π
π LIBRARY π
library libsysdecode β that's the one, bestie. β¨
π¦ SYNOPSIS π¦
#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);
π DESCRIPTION π
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 returns 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. fr fr.
π«Ά note, bestie: the mappings between nativeerrno(2)values and errors for other ABIs are not exhaustive. If a mapping does not exist, these functions returnINT_MAX. Also, multiple error values in one ABI may map to a single error in another ABI. iykyk. π«
β RETURN VALUES β
These functions return an error value on success or INT_MAX if error is not valid. That's the whole vibe check, tbh. π§
For the list of supported ABIs, see sysdecode(3). π
π₯ SEE ALSO π₯
xoxo, your Unix bestie π
β this page is from Debian, dated October 17, 20 (the footer literally smushes the year into sysdecode_abi_to_freebsd_errno(3), bestie π), and honestly? iconic. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2016 John Baldwin <jhb@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms