name_table
const struct name_table *t;
static struct name_table semctlops[] = {
struct name_table *t, *q, tmp;
static struct name_table cmsgtypeip[] = {
static struct name_table cmsgtypeipv6[] = {
static struct name_table cmsgtypesctp[] = {
static struct name_table sctpsndflags[] = {
static struct name_table sctprcvflags[] = {
static struct name_table sctpnxtflags[] = {
static struct name_table shmctlops[] = {
static struct name_table sctpsinfoflags[] = {
static struct name_table semgetflags[] = {
static struct name_table idtypes[] = {
static struct name_table sockflags[] = {
static struct name_table getfsstatmode[] = {
static struct name_table kevent_user_ffctrl[] = {
static struct name_table kevent_rdwr_fflags[] = {
static struct name_table kevent_vnode_fflags[] = {
static struct name_table kevent_proc_fflags[] = {
static struct name_table kevent_timer_fflags[] = {
static struct name_table pipe2flags[] = {
static struct name_table quotatypes[] = {
#define TABLE_START(n) static struct name_table n[] = {
static struct name_table fcntl_fd_arg[] = {
#define TABLE_START(n) static struct name_table n[] = {
print_mask_0ul(FILE *fp, struct name_table *table, u_long lval, u_long *rem)
print_value(FILE *fp, struct name_table *table, uintmax_t val)
lookup_value(struct name_table *table, uintmax_t val)
print_mask_part(FILE *fp, struct name_table *table, uintmax_t *valp,
print_mask_int(FILE *fp, struct name_table *table, int ival, int *rem)
print_mask_0(FILE *fp, struct name_table *table, int val, int *rem)
const char *lookup_value(struct name_table *, uintmax_t);
bool print_mask_0(FILE *, struct name_table *, int, int *);
bool print_mask_0ul(FILE *, struct name_table *, u_long, u_long *);
bool print_mask_int(FILE *, struct name_table *, int, int *);
void print_mask_part(FILE *, struct name_table *, uintmax_t *, bool *);
bool print_value(FILE *, struct name_table *, uintmax_t);
} name_table[] = {
for (i = 0; i < nitems(name_table); ++i) {
if (type == name_table[i].type)
return (name_table[i].name);
} name_table[] = {
for (i = 0; i < nitems(name_table); ++i) {
if (type == name_table[i].type)
return name_table[i].name;