AU_BSM_TO_FCNTL_CMD(3)
πΈ au_bsm_to_fcntl_cmd(3) β Library Functions Manual πΈ
okay bestie, welcome to this Library Functions Manual page. it's giving βBSM β local fcntl(2) command values,β and honestly? iconic. π
π NAME π
au_bsm_to_fcntl_cmd, au_fcntl_cmd_to_bsm β convert between BSM and local fcntl(2) command values
π LIBRARY π
Basic Security Module Library (libbsm, -lbsm)
β¨ SYNOPSIS β¨
#include <bsm/libbsm.h>
int
au_bsm_to_fcntl_cmd(u_short bsm_fcntl_cmd, int *local_fcntl_cmdp);
u_short
au_fcntl_cmd_to_bsm(int local_fcntl_cmd);
π DESCRIPTION π
Bestie, these interfaces do the translation between local and BSM fcntl(2) command values. no cap, that's the whole gig.
The au_bsm_to_fcntl_cmd() function takes a BSM command value called bsm_fcntl_cmd, turns it into a local command value that gets passed to fcntl(2), and β if it works β stores that result in the integer that local_fcntl_cmdp points to. she's doing the most, respectfully.
It will fail when the BSM command value can't be mapped to a local fcntl(2) command value, and that can happen if the command token came from a different operating system. lowkey tragic, but that's the rule. π
The au_fcntl_cmd_to_bsm() function takes a local fcntl(2) command value and hands back its BSM fcntl(2) command value. This one cannot fail β instead it returns a BSM command value that tells a later decoder the command value couldn't be encoded. she literally cannot flop. π¦
π RETURN VALULES π
yes, VALULES is the exact spelling from the page β we're not fixing it, we're respecting it. π
When au_bsm_to_fcntl_cmd() slays, it returns 0 plus the converted command value. When it fails, it returns -1 but does not set errno(2). periodt.
π SEE ALSO π
fcntl(2)au_bsm_to_domain(3)au_domain_to_bsm(3)au_bsm_to_socket_type(3)au_socket_type_to_bsm(3)libbsm(3)
π°οΈ HISTORY π°οΈ
The page says au_bsm_to_domain() and au_domain_to_bsm() were introduced in OpenBSM 1.1 β yes, those domain functions, even though this page is about fcntl. that's the note, bestie, we're just repeating it. π
π AUTHORS π
Stacey Son implemented these functions under contract to Apple Inc.
Sun Microsystems defined the Basic Security Module (BSM) interface to audit records and the audit event stream format. legends only. β
mwah π β this one came from Debian, dated March 5, 2009, and its manual page name is AU_BSM_TO_FCNTL_CMD(3). that's the footer, bestie, and we're out. π«Ά
π¦ where this page comes from
- nixos 26.05: openbsm 1.1
- nixpkgs unstable: openbsm 1.1
- Copyright (c) 2009 Apple Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms