SYSDECODE_ABI_TO_FREEBSD_ERRNO(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– 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 native errno(2) values and errors for other ABIs are not exhaustive. If a mapping does not exist, these functions return INT_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