Main index | Section 3 | Options |
#include <sysdecode.h>
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 NULL if the caller does not need this value. Each function returns true if any bit fields in the value were decoded and false if no bit fields were decoded.
Most of these functions decode an argument passed to a system call:
Function | System Call | Argument |
sysdecode_access_mode() | access(2) | mode |
sysdecode_atflags() | chflagsat(2),fstatat(2) | atflag, ,, Fa, flag |
sysdecode_cap_fcntlrights() | cap_fcntls_limit(2) | fcntlrights |
sysdecode_fileflags() | chflags(2) | flags |
sysdecode_filemode() | chmod(2),open(2) | mode |
sysdecode_flock_operation() | flock(2) | operation |
sysdecode_mlockall_flags() | mlockall(2) | flags |
sysdecode_mmap_flags() | mmap(2) | flags |
sysdecode_mmap_prot() | mmap(2) | prot |
sysdecode_mount_flags() | mount(2) | flags |
sysdecode_msg_flags() | recv(2),send(2) | flags |
sysdecode_msync_flags() | msync(2) | flags |
sysdecode_open_flags() | open(2) | flags |
sysdecode_pipe2_flags() | pipe2(Ta)flags | |
sysdecode_reboot_howto() | reboot(2) | howto |
sysdecode_rfork_flags() | rfork(2) | flags |
sysdecode_semget_flags() | semget(2) | flags |
sysdecode_sendfile_flags() | sendfile(2) | flags |
sysdecode_shmat_flags() | shmat(2) | flags |
sysdecode_socket_type() | socket(2) | type |
sysdecode_thr_create_flags() | thr_create(2) | flags |
sysdecode_wait4_options() | wait4(2) | options |
sysdecode_wait6_options() | wait6(2) | options |
Other functions decode the values described below:
sysdecode_fcntl_fileflags() | |
The file flags used with the F_GETFL and F_SETFL fcntl(2) commands. | |
sysdecode_sctp_nxt_flags() | |
The nxt_flags member of a struct sctp_nxtinfo. | |
sysdecode_sctp_rcv_flags() | |
The rcv_flags member of a struct sctp_rcvinfo. | |
sysdecode_sctp_snd_flags() | |
The snd_flags member of a struct sctp_sndinfo. | |
sysdecode_umtx_cvwait_flags() | |
The val argument to _umtx_op(2) for UMTX_OP_CV_WAIT operations. | |
sysdecode_umtx_rwlock_flags() | |
The val argument to _umtx_op(2) for UMTX_OP_RW_RDLOCK operations. | |
sysdecode_vmprot() | |
The memory protection flags stored in vm_prot_t variables. | |
sysdecode_mask (3) | March 3, 2022 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Never write it in C if you can do it in `awk'; Never do it in `awk' if `sed' can handle it; Never use `sed' when `tr' can do the job; Never invoke `tr' when `cat' is sufficient; Avoid using `cat' whenever possible. |
” |
— Taylor's Laws of Programming |