|
NAMEsysdecode_mask ,
sysdecode_accessmode ,
sysdecode_atflags ,
sysdecode_capfcntlrights ,
sysdecode_close_range_flags ,
sysdecode_fcntl_fileflags ,
sysdecode_fileflags ,
sysdecode_filemode ,
sysdecode_flock_operation ,
sysdecode_mlockall_flags ,
sysdecode_mmap_flags ,
sysdecode_mmap_prot ,
sysdecode_mount_flags ,
sysdecode_msg_flags ,
sysdecode_msync_flags ,
sysdecode_open_flags ,
sysdecode_pipe2_flags ,
sysdecode_reboot_howto ,
sysdecode_rfork_flags ,
sysdecode_semget_flags ,
sysdecode_sendfile_flags ,
sysdecode_shmat_flags ,
sysdecode_sctp_nxt_flags ,
sysdecode_sctp_rcv_flags ,
sysdecode_sctp_snd_flags ,
sysdecode_socket_type ,
sysdecode_thr_create_flags ,
sysdecode_umtx_cvwait_flags ,
sysdecode_umtx_rwlock_flags ,
sysdecode_vmprot ,
sysdecode_wait4_options ,
sysdecode_wait6_options —
print name of various bitmask values
LIBRARYSystem Argument Decoding Library (libsysdecode, -lsysdecode)SYNOPSIS#include <sys/types.h>
#include <stdbool.h>
#include <stdio.h>
#include <sysdecode.h>
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
DESCRIPTIONThesysdecode_mask functions are used to generate a text
description of an integer value built from a mask of bitfields. The text
description lists the C macros for field values joined by pipe
‘|’ characters matching the format used in C source code. Most
of the values decoded by these functions are passed as arguments to system
calls, though some of these values are used internally in the kernel.
Each function writes the text description to
fp. The second argument should contain the integer
value to be decoded. The rem argument is set to the
value of any bits that were not decoded (bit fields that do not have a
corresponding C macro). rem may be set to
Most of these functions decode an argument passed to a system call:
Other functions decode the values described below:
RETURN VALUESThesysdecode_mask functions return
true if any bit fields in the value were decoded and
false if no bit fields were decoded.
SEE ALSOsysdecode(3), sysdecode_enum(3)
Visit the GSP FreeBSD Man Page Interface. |