SYSDECODE(3)
π SYSDECODE(3) β Library Functions Manual π
okay so bestie, this is the Library Functions Manual page for SYSDECODE(3) β yes, the manual name is literally Library Functions Manual, and we're folding it in right here at the top like the main character it is. π
β¨ NAME β¨
sysdecode β system argument decoding library. that's the whole name, and honestly? it's giving "I give you descriptive names for values around system calls so you don't have to." π«Ά
π LIBRARY π
the library is libsysdecode. yes, the LIBRARY section is literally library βlibsysdecodeβ and nothing else. short and iconic. β¨
πΈ SYNOPSIS πΈ
#include <sysdecode.h>
π¦ DESCRIPTION π¦
okay so the sysdecode library includes several functions that provide descriptive names of values associated with system calls. that's the whole vibe: system-call-adjacent values get descriptive names, and this library is the one handing them to you. no cap, it's useful. π
π Supported ABIs π
some functions in this library provide ABI-specific descriptions. the supported ABIs are named by the enum sysdecode_abi enumeration, and here's the whole cast, bestie:
SYSDECODE_ABI_FREEBSDβ Native FreeBSD binaries. Supported on all platforms.SYSDECODE_ABI_FREEBSD32β 32-bit FreeBSD binaries. Supported onaarch64,amd64andpowerpc64.SYSDECODE_ABI_LINUXβ Linux binaries of the same platform. Supported onamd64,i386, andaarch64.SYSDECODE_ABI_LINUX32β 32-bit Linux binaries. Supported onamd64.SYSDECODE_ABI_UNKNOWNβ A placeholder for use when the ABI is not known.
periodt. each one is doing its own little ABI thing, and SYSDECODE_ABI_UNKNOWN is literally the "idk yet" placeholder. π
π₯ SEE ALSO π₯
go read these next, bestie β they're all in section (3) and they're all part of the same sysdecode friend group:
sysdecode_abi_to_freebsd_errno(3)sysdecode_cap_rights(3)sysdecode_cmsg_type(3)sysdecode_enum(3)sysdecode_fcntl_arg(3)sysdecode_ioctlname(3)sysdecode_kevent(3)sysdecode_mask(3)sysdecode_quotactl_cmd(3)sysdecode_sctp_sinfo_flags(3)sysdecode_sigcode(3)sysdecode_socket_protocol(3)sysdecode_sockopt_name(3)sysdecode_syscallname(3)sysdecode_utrace(3)
β HISTORY β
the sysdecode library first appeared in FreeBSD 11.0. that's the origin story, periodt. π
and that's the page, bestie π this one comes from the Debian source/version, dated September 22, 2021, and it's filed under SYSDECODE(3). mwah π slay. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2015 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