/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2015, Joyent, Inc. All rights reserved.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <termio.h>
#include <stddef.h>
#include <limits.h>
#include <fcntl.h>
#include <ctype.h>
#include <sys/resource.h>
#include <stropts.h>
#include <sys/isa_defs.h>
#include <sys/systeminfo.h>
#include <libproc.h>
#include <priv.h>
#include <sys/cpc_impl.h>
#include <sys/priocntl.h>
#include <sys/tspriocntl.h>
#include <sys/iapriocntl.h>
#include <sys/rtpriocntl.h>
#include <sys/fsspriocntl.h>
#include <sys/fxpriocntl.h>
#include <netdb.h>
#include <nss_dbdefs.h>
#include <sys/socketvar.h>
#include <sys/lgrp_user.h>
#include <sys/rctl_impl.h>
#include "ramdata.h"
#include "print.h"
#include "proto.h"
#include "systable.h"
/*ARGSUSED*/
void
{
}
/*ARGSUSED*/
void
{
GROW(24);
if (data_model == PR_MODEL_ILP32)
"%d", (int)val);
else
"%ld", val);
}
/*ARGSUSED*/
void
{
GROW(24);
if (data_model == PR_MODEL_ILP32)
"%u", (int)val);
else
"%lu", val);
}
/* print as unsigned decimal, except for -1 */
void
{
if ((int)val == -1)
else
}
/*ARGSUSED*/
void
{
GROW(24);
if (data_model == PR_MODEL_ILP32)
"%#o", (int)val);
else
"%#lo", val);
}
/*ARGSUSED*/
void
{
GROW(20);
if (data_model == PR_MODEL_ILP32)
"0x%.8X", (int)val);
else
"0x%.8lX", val);
}
/* print as hexadecimal (half size) */
/*ARGSUSED*/
void
{
GROW(20);
if (data_model == PR_MODEL_ILP32)
"0x%.4X", (int)val);
else
"0x%.4lX", val);
}
/* print as decimal if small, else hexadecimal */
/*ARGSUSED*/
void
{
if (val & 0xff000000)
else
}
/* print long long offset */
/*ARGSUSED*/
void
{
int hival;
int loval;
#ifdef _LONG_LONG_LTOH
#else
#endif
if (hival == 0) {
} else {
GROW(18);
}
}
void
{
/*
* We want to avoid outputting unprintable characters that may
* destroy the user's terminal. So we do one pass to find any
* unprintable characters, size the array appropriately, and
* then walk each character by hand. Those that are unprintable
* are replaced by a hex escape (\xNN). We also escape quotes for
* completeness.
*/
if (!isprint(s[i]))
unprintable++;
if (s[i] == '"')
quotes++;
}
for (i = 0; i < len; i++) {
if (s[i] == '"')
if (isprint(s[i])) {
} else {
}
}
}
void
{
if (s == NULL)
else
escape_string(pri, s);
}
/* print as string returned from syscall */
void
{
if (s == NULL)
else {
}
}
/* print contents of readlink() buffer */
void
{
if (s == NULL)
else {
}
}
void
{
if (s == NULL)
else
}
void
{
const char *s;
/* cheating -- look at the ioctl() code */
/* kstat ioctl()s */
case KSTAT_IOC_READ:
case KSTAT_IOC_WRITE:
#ifdef _LP64
if (data_model == PR_MODEL_ILP32)
else
#endif
break;
/* streams ioctl()s */
case I_LOOK:
break;
case I_PUSH:
case I_FIND:
break;
case I_LINK:
case I_UNLINK:
case I_SENDFD:
break;
case I_SRDOPT:
else
break;
case I_SETSIG:
else
break;
case I_FLUSH:
else
break;
/* tty ioctl()s */
case TCSBRK:
case TCXONC:
case TCFLSH:
case TCDSET:
break;
default:
break;
}
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case O_CLOEXEC:
s = "O_CLOEXEC";
break;
case O_NONBLOCK:
s = "O_NONBLOCK";
break;
case O_CLOEXEC|O_NONBLOCK:
s = "O_CLOEXEC|O_NONBLOCK";
break;
}
}
if (s == NULL)
else
}
void
{
/* the fds only have meaning if the return value is 0 */
if (!raw &&
} else {
}
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
switch (val) {
case 0:
break;
case RS_HIPRI:
if (raw)
else
break;
default:
break;
}
}
void
{
if (s == NULL)
else
}
void
{
else if (raw)
else
}
/* print contents of read() or write() I/O buffer */
void
{
else
}
else {
else {
(const char *)"\"" : (const char *)"\"..",
if (raw)
else
}
}
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
/*ARGSUSED*/
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case SIG_BLOCK: s = "SIG_BLOCK"; break;
case SIG_UNBLOCK: s = "SIG_UNBLOCK"; break;
case SIG_SETMASK: s = "SIG_SETMASK"; break;
}
}
if (s == NULL)
else
}
const char *
{
return ((char *)NULL);
return ("PROT_NONE");
*str = '\0';
if (arg & PROT_WRITE)
return ((const char *)(str + 1));
}
const char *
{
case MAP_SHARED:
break;
case MAP_PRIVATE:
break;
default:
break;
}
"|0x%lX", arg);
else {
if (arg & MAP_RENAME)
if (arg & MAP_NORESERVE)
if (arg & MAP_INITDATA)
}
return ((const char *)str);
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (val == 0)
else {
*s = '\0';
if (val & MMOBJ_PADDING)
if (val & MMOBJ_INTERPRET)
}
}
/*ARGSUSED*/
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case MC_SYNC: s = "MC_SYNC"; break;
case MC_LOCK: s = "MC_LOCK"; break;
case MC_UNLOCK: s = "MC_UNLOCK"; break;
case MC_ADVISE: s = "MC_ADVISE"; break;
case MC_LOCKAS: s = "MC_LOCKAS"; break;
case MC_UNLOCKAS: s = "MC_UNLOCKAS"; break;
case MC_HAT_ADVISE: s = "MC_HAT_ADVISE"; break;
}
}
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case MADV_NORMAL: s = "MADV_NORMAL"; break;
case MADV_RANDOM: s = "MADV_RANDOM"; break;
case MADV_SEQUENTIAL: s = "MADV_SEQUENTIAL"; break;
case MADV_WILLNEED: s = "MADV_WILLNEED"; break;
case MADV_DONTNEED: s = "MADV_DONTNEED"; break;
case MADV_FREE: s = "MADV_FREE"; break;
case MADV_ACCESS_DEFAULT: s = "MADV_ACCESS_DEFAULT"; break;
case MADV_ACCESS_LWP: s = "MADV_ACCESS_LWP"; break;
case MADV_ACCESS_MANY: s = "MADV_ACCESS_MANY"; break;
case MADV_PURGE: s = "MADV_PURGE"; break;
}
}
if (s == NULL)
else
}
void
{
if (val == 0)
else if (raw)
else {
char *s = NULL;
/* cheating -- look at memcntl func */
case MC_ADVISE:
return;
case MC_SYNC:
if (val & MS_INVALIDATE)
(void) strlcat(s, "|MS_INVALIDATE",
CBSIZE);
}
break;
case MC_LOCKAS:
case MC_UNLOCKAS:
if (val & MCL_CURRENT)
(void) strlcat(s, "|MCL_CURRENT",
CBSIZE);
if (val & MCL_FUTURE)
(void) strlcat(s, "|MCL_FUTURE",
CBSIZE);
}
break;
}
if (s == NULL || *s == '\0')
else
}
}
void
{
char *s;
if (val == 0)
else {
*s = '\0';
if (val & PROT_WRITE)
if (*s == '\0')
else
}
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case UL_GFILLIM: s = "UL_GFILLIM"; break;
case UL_SFILLIM: s = "UL_SFILLIM"; break;
case UL_GMEMLIM: s = "UL_GMEMLIM"; break;
case UL_GDESLIM: s = "UL_GDESLIM"; break;
}
}
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case RLIMIT_CPU: s = "RLIMIT_CPU"; break;
case RLIMIT_FSIZE: s = "RLIMIT_FSIZE"; break;
case RLIMIT_DATA: s = "RLIMIT_DATA"; break;
case RLIMIT_STACK: s = "RLIMIT_STACK"; break;
case RLIMIT_CORE: s = "RLIMIT_CORE"; break;
case RLIMIT_NOFILE: s = "RLIMIT_NOFILE"; break;
case RLIMIT_VMEM: s = "RLIMIT_VMEM"; break;
}
}
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case SI_SYSNAME: s = "SI_SYSNAME"; break;
case SI_HOSTNAME: s = "SI_HOSTNAME"; break;
case SI_RELEASE: s = "SI_RELEASE"; break;
case SI_VERSION: s = "SI_VERSION"; break;
case SI_MACHINE: s = "SI_MACHINE"; break;
case SI_ARCHITECTURE: s = "SI_ARCHITECTURE"; break;
case SI_ARCHITECTURE_32:s = "SI_ARCHITECTURE_32"; break;
case SI_ARCHITECTURE_64:s = "SI_ARCHITECTURE_64"; break;
case SI_ARCHITECTURE_K: s = "SI_ARCHITECTURE_K"; break;
case SI_HW_SERIAL: s = "SI_HW_SERIAL"; break;
case SI_HW_PROVIDER: s = "SI_HW_PROVIDER"; break;
case SI_SRPC_DOMAIN: s = "SI_SRPC_DOMAIN"; break;
case SI_SET_HOSTNAME: s = "SI_SET_HOSTNAME"; break;
case SI_SET_SRPC_DOMAIN: s = "SI_SET_SRPC_DOMAIN"; break;
case SI_PLATFORM: s = "SI_PLATFORM"; break;
case SI_ISALIST: s = "SI_ISALIST"; break;
case SI_DHCP_CACHE: s = "SI_DHCP_CACHE"; break;
}
}
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
if (s == NULL)
else
}
void
{
char *s;
if (val == 0)
else if (raw ||
else {
*s = '\0';
if (val & LWP_DAEMON)
if (val & LWP_DETACHED)
if (val & LWP_SUSPENDED)
}
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case ITIMER_REAL: s = "ITIMER_REAL"; break;
case ITIMER_VIRTUAL: s = "ITIMER_VIRTUAL"; break;
case ITIMER_PROF: s = "ITIMER_PROF"; break;
#ifdef ITIMER_REALPROF
case ITIMER_REALPROF: s = "ITIMER_REALPROF"; break;
#endif
}
}
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case MODLOAD: s = "MODLOAD"; break;
case MODUNLOAD: s = "MODUNLOAD"; break;
case MODINFO: s = "MODINFO"; break;
case MODRESERVED: s = "MODRESERVED"; break;
case MODSETMINIROOT: s = "MODSETMINIROOT"; break;
case MODADDMAJBIND: s = "MODADDMAJBIND"; break;
case MODGETPATH: s = "MODGETPATH"; break;
case MODGETPATHLEN: s = "MODGETPATHLEN"; break;
case MODREADSYSBIND: s = "MODREADSYSBIND"; break;
case MODGETMAJBIND: s = "MODGETMAJBIND"; break;
case MODGETNAME: s = "MODGETNAME"; break;
case MODSIZEOF_DEVID: s = "MODSIZEOF_DEVID"; break;
case MODGETDEVID: s = "MODGETDEVID"; break;
case MODSIZEOF_MINORNAME: s = "MODSIZEOF_MINORNAME"; break;
case MODGETMINORNAME: s = "MODGETMINORNAME"; break;
case MODGETFBNAME: s = "MODGETFBNAME"; break;
case MODEVENTS: s = "MODEVENTS"; break;
case MODREREADDACF: s = "MODREREADDACF"; break;
case MODLOADDRVCONF: s = "MODLOADDRVCONF"; break;
case MODUNLOADDRVCONF: s = "MODUNLOADDRVCONF"; break;
case MODREMMAJBIND: s = "MODREMMAJBIND"; break;
case MODDEVT2INSTANCE: s = "MODDEVT2INSTANCE"; break;
case MODGETDEVFSPATH_LEN: s = "MODGETDEVFSPATH_LEN"; break;
case MODGETDEVFSPATH: s = "MODGETDEVFSPATH"; break;
case MODDEVID2PATHS: s = "MODDEVID2PATHS"; break;
case MODSETDEVPOLICY: s = "MODSETDEVPOLICY"; break;
case MODGETDEVPOLICY: s = "MODGETDEVPOLICY"; break;
case MODALLOCPRIV: s = "MODALLOCPRIV"; break;
case MODGETDEVPOLICYBYNAME:
s = "MODGETDEVPOLICYBYNAME"; break;
case MODLOADMINORPERM: s = "MODLOADMINORPERM"; break;
case MODADDMINORPERM: s = "MODADDMINORPERM"; break;
case MODREMMINORPERM: s = "MODREMMINORPERM"; break;
case MODREMDRVCLEANUP: s = "MODREMDRVCLEANUP"; break;
case MODDEVEXISTS: s = "MODDEVEXISTS"; break;
case MODDEVREADDIR: s = "MODDEVREADDIR"; break;
case MODDEVEMPTYDIR: s = "MODDEVEMPTYDIR"; break;
case MODDEVNAME: s = "MODDEVNAME"; break;
case MODGETDEVFSPATH_MI_LEN:
s = "MODGETDEVFSPATH_MI_LEN"; break;
case MODGETDEVFSPATH_MI:
s = "MODGETDEVFSPATH_MI"; break;
case MODREMDRVALIAS: s = "MODREMDRVALIAS"; break;
case MODHPOPS: s = "MODHPOPS"; break;
}
}
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case GETACL: s = "GETACL"; break;
case SETACL: s = "SETACL"; break;
case GETACLCNT: s = "GETACLCNT"; break;
case ACE_GETACL: s = "ACE_GETACL"; break;
case ACE_SETACL: s = "ACE_SETACL"; break;
case ACE_GETACLCNT: s = "ACE_GETACLCNT"; break;
}
}
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
switch (val & ~AIO_POLL_BIT) {
case AIOREAD: s = "AIOREAD"; break;
case AIOWRITE: s = "AIOWRITE"; break;
case AIOWAIT: s = "AIOWAIT"; break;
case AIOCANCEL: s = "AIOCANCEL"; break;
case AIONOTIFY: s = "AIONOTIFY"; break;
case AIOINIT: s = "AIOINIT"; break;
case AIOSTART: s = "AIOSTART"; break;
case AIOLIO: s = "AIOLIO"; break;
case AIOSUSPEND: s = "AIOSUSPEND"; break;
case AIOERROR: s = "AIOERROR"; break;
case AIOLIOWAIT: s = "AIOLIOWAIT"; break;
case AIOAREAD: s = "AIOAREAD"; break;
case AIOAWRITE: s = "AIOAWRITE"; break;
/*
* We have to hardcode the values for the 64-bit versions of
* when compiled 64-bit. If our target is 32-bit, we still need
* to decode them correctly.
*/
case 13: s = "AIOLIO64"; break;
case 14: s = "AIOSUSPEND64"; break;
case 15: s = "AUIOERROR64"; break;
case 16: s = "AIOLIOWAIT64"; break;
case 17: s = "AIOAREAD64"; break;
case 18: s = "AIOAWRITE64"; break;
case 19: s = "AIOCANCEL64"; break;
/*
* AIOFSYNC doesn't correspond to a syscall.
*/
case AIOWAITN: s = "AIOWAITN"; break;
}
s = (const char *)buf;
}
}
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case BSM_GETAUID: s = "BSM_GETAUID"; break;
case BSM_SETAUID: s = "BSM_SETAUID"; break;
case BSM_GETAUDIT: s = "BSM_GETAUDIT"; break;
case BSM_SETAUDIT: s = "BSM_SETAUDIT"; break;
case BSM_AUDIT: s = "BSM_AUDIT"; break;
case BSM_AUDITCTL: s = "BSM_AUDITCTL"; break;
case BSM_GETAUDIT_ADDR: s = "BSM_GETAUDIT_ADDR"; break;
case BSM_SETAUDIT_ADDR: s = "BSM_SETAUDIT_ADDR"; break;
}
}
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case CC_SET_OPTIONS:
s = "CC_SET_OPTIONS"; break;
case CC_GET_OPTIONS:
s = "CC_GET_OPTIONS"; break;
case CC_SET_GLOBAL_PATH:
s = "CC_SET_GLOBAL_PATH"; break;
case CC_GET_GLOBAL_PATH:
s = "CC_GET_GLOBAL_PATH"; break;
case CC_SET_PROCESS_PATH:
s = "CC_SET_PROCESS_PATH"; break;
case CC_GET_PROCESS_PATH:
s = "CC_GET_PROCESS_PATH"; break;
case CC_SET_GLOBAL_CONTENT:
s = "CC_SET_GLOBAL_CONTENT"; break;
case CC_GET_GLOBAL_CONTENT:
s = "CC_GET_GLOBAL_CONTENT"; break;
case CC_SET_PROCESS_CONTENT:
s = "CC_SET_PROCESS_CONTENT"; break;
case CC_GET_PROCESS_CONTENT:
s = "CC_GET_PROCESS_CONTENT"; break;
case CC_SET_DEFAULT_PATH:
s = "CC_SET_DEFAULT_PATH"; break;
case CC_GET_DEFAULT_PATH:
s = "CC_GET_DEFAULT_PATH"; break;
case CC_SET_DEFAULT_CONTENT:
s = "CC_SET_DEFAULT_CONTENT"; break;
case CC_GET_DEFAULT_CONTENT:
s = "CC_GET_DEFAULT_CONTENT"; break;
}
}
if (s == NULL)
else
}
void
{
char *s;
if (val == 0)
else {
*s = '\0';
if (val & CC_GLOBAL_PATH)
if (val & CC_PROCESS_PATH)
if (val & CC_GLOBAL_SETID)
if (val & CC_PROCESS_SETID)
if (val & CC_GLOBAL_LOG)
if (*s == '\0')
else
}
}
void
{
else
}
void
{
else
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case CPC_BIND: s = "CPC_BIND"; break;
case CPC_SAMPLE: s = "CPC_SAMPLE"; break;
case CPC_INVALIDATE: s = "CPC_INVALIDATE"; break;
case CPC_RELE: s = "CPC_RELE"; break;
case CPC_EVLIST_SIZE: s = "CPC_EVLIST_SIZE"; break;
case CPC_LIST_EVENTS: s = "CPC_LIST_EVENTS"; break;
case CPC_ATTRLIST_SIZE: s = "CPC_ATTRLIST_SIZE"; break;
case CPC_LIST_ATTRS: s = "CPC_LIST_ATTRS"; break;
case CPC_IMPL_NAME: s = "CPC_IMPL_NAME"; break;
case CPC_CPUREF: s = "CPC_CPUREF"; break;
case CPC_USR_EVENTS: s = "CPC_USR_EVENTS"; break;
case CPC_SYS_EVENTS: s = "CPC_SYS_EVENTS"; break;
case CPC_NPIC: s = "CPC_NPIC"; break;
case CPC_CAPS: s = "CPC_CAPS"; break;
case CPC_ENABLE: s = "CPC_ENABLE"; break;
case CPC_DISABLE: s = "CPC_DISABLE"; break;
}
}
if (s == NULL)
else
}
void
{
}
void
{
}
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case CL_INITIALIZE: s = "CL_INITIALIZE"; break;
case CL_CONFIG: s = "CL_CONFIG"; break;
}
}
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
case CL_CONFIG:
case CL_NODEID:
s = "CL_NODEID"; break;
case CL_HIGHEST_NODEID:
s = "CL_HIGHEST_NODEID"; break;
}
break;
case CL_INITIALIZE:
case CL_GET_BOOTFLAG:
s = "CL_GET_BOOTFLAG"; break;
}
break;
}
}
if (s == NULL)
else
}
void
{
const char *s = NULL;
if (!raw) {
switch ((int)val) {
case SI_QUEUE: s = "SI_QUEUE"; break;
case SI_TIMER: s = "SI_TIMER"; break;
case SI_ASYNCIO: s = "SI_ASYNCIO"; break;
case SI_MESGQ: s = "SI_MESGQ"; break;
}
}
if (s == NULL)
else
}
/*
* print priocntlsys() (key, value) pair key.
*/
void
{
const char *s = NULL;
return;
}
if (val == PC_KY_CLNAME) {
s = "PC_KY_CLNAME";
} else
return;
}
return;
}
switch (val) {
case TS_KY_UPRILIM: s = "TS_KY_UPRILIM"; break;
case TS_KY_UPRI: s = "TS_KY_UPRI"; break;
default: break;
}
switch (val) {
case IA_KY_UPRILIM: s = "IA_KY_UPRILIM"; break;
case IA_KY_UPRI: s = "IA_KY_UPRI"; break;
case IA_KY_MODE: s = "IA_KY_MODE"; break;
default: break;
}
switch (val) {
case RT_KY_PRI: s = "RT_KY_PRI"; break;
case RT_KY_TQSECS: s = "RT_KY_TQSECS"; break;
case RT_KY_TQNSECS: s = "RT_KY_TQNSECS"; break;
case RT_KY_TQSIG: s = "RT_KY_TQSIG"; break;
default: break;
}
switch (val) {
case FSS_KY_UPRILIM: s = "FSS_KY_UPRILIM"; break;
case FSS_KY_UPRI: s = "FSS_KY_UPRI"; break;
default: break;
}
switch (val) {
case FX_KY_UPRILIM: s = "FX_KY_UPRILIM"; break;
case FX_KY_UPRI: s = "FX_KY_UPRI"; break;
case FX_KY_TQSECS: s = "FX_KY_TQSECS"; break;
case FX_KY_TQNSECS: s = "FX_KY_TQNSECS"; break;
default: break;
}
}
if (s == NULL)
else
}
/*
* print priocntlsys() fourth argument.
*/
/*ARGSUSED*/
void
{
/* look at pricntlsys function */
else if (val)
else
}
/*
* print priocntlsys() (key, value) pairs (5th argument).
*/
/*ARGSUSED*/
void
{
/* look at pricntlsys function */
return;
}
return;
}
return;
}
}
void
{
if (val == 0) {
return;
}
*str = '\0';
}
sizeof (str));
}
sizeof (str));
}
if (val != 0)
}
/*
* Print a psecflags(2) delta
*/
void
{
if ((raw != 0) ||
return;
}
}
/*
* Print a psecflagswhich_t
*/
void
{
char *s;
if (raw != 0) {
return;
}
switch (which) {
case PSF_EFFECTIVE:
s = "PSF_EFFECTIVE";
break;
case PSF_INHERIT:
s = "PSF_INHERIT";
break;
case PSF_LOWER:
s = "PSF_LOWER";
break;
case PSF_UPPER:
s = "PSF_UPPER";
break;
}
if (s == NULL)
else
}
/*
* Print processor set id, including logical expansion of "special" ids.
*/
void
{
const char *s = NULL;
if (!raw) {
case PS_NONE: s = "PS_NONE"; break;
case PS_QUERY: s = "PS_QUERY"; break;
case PS_MYID: s = "PS_MYID"; break;
}
}
if (s == NULL)
else
}
/*
* Print meminfo() argument.
*/
/*ARGSUSED*/
void
{
#ifdef _LP64
if (data_model == PR_MODEL_ILP32) {
sizeof (struct meminfo32)) {
return;
}
/*
* arrange the arguments in the order that user calls with
*/
return;
}
#endif
sizeof (struct meminfo)) {
return;
}
/*
* arrange the arguments in the order that user calls with
*/
}
/*
* Print so_socket() 1st argument.
*/
/*ARGSUSED*/
void
{
/* Protocol Families have same names as Address Families */
} else {
}
}
/*
* Print sockconfig() subcode.
*/
/*ARGSUSED*/
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case SOCKCONFIG_ADD_SOCK:
s = "SOCKCONFIG_ADD_SOCK"; break;
case SOCKCONFIG_REMOVE_SOCK:
s = "SOCKCONFIG_REMOVE_SOCK"; break;
case SOCKCONFIG_ADD_FILTER:
s = "SOCKCONFIG_ADD_FILTER"; break;
case SOCKCONFIG_REMOVE_FILTER:
s = "SOCKCONFIG_REMOVE_FILTER"; break;
}
}
if (s == NULL)
else
}
/*
* Print so_socket() 2nd argument.
*/
/*ARGSUSED*/
void
{
const char *s;
if ((val & SOCK_CLOEXEC) != 0) {
}
} else {
}
}
/*
* Print so_socket() 3rd argument.
*/
/*ARGSUSED*/
void
{
const char *s;
/* cheating -- look at the protocol-family */
case PF_INET6:
case PF_INET:
break;
}
/* FALLTHROUGH */
break;
}
}
/*
* Print so_socket() 5th argument.
*/
/*ARGSUSED*/
void
{
switch (val) {
}
}
/*
* Print accept4() flags argument.
*/
void
{
return;
}
if (val & SOCK_CLOEXEC) {
first = 0;
}
if (val & SOCK_NDELAY) {
first = 0;
}
if (val & SOCK_NONBLOCK) {
}
}
/*
* Print setsockopt()/getsockopt() 2nd argument.
*/
/*ARGSUSED*/
void
{
if (val == SOL_SOCKET) {
} else {
const struct protoent *p;
else
}
}
const char *
{
switch (val) {
case SO_SNDBUF: return ("SO_SNDBUF");
case SO_RCVBUF: return ("SO_RCVBUF");
case SO_SNDLOWAT: return ("SO_SNDLOWAT");
case SO_RCVLOWAT: return ("SO_RCVLOWAT");
case SO_SNDTIMEO: return ("SO_SNDTIMEO");
case SO_RCVTIMEO: return ("SO_RCVTIMEO");
case SO_ERROR: return ("SO_ERROR");
case SO_TYPE: return ("SO_TYPE");
case SO_PROTOTYPE: return ("SO_PROTOTYPE");
case SO_ANON_MLP: return ("SO_ANON_MLP");
case SO_MAC_EXEMPT: return ("SO_MAC_EXEMPT");
case SO_ALLZONES: return ("SO_ALLZONES");
case SO_MAC_IMPLICIT: return ("SO_MAC_IMPLICIT");
case SO_VRRP: return ("SO_VRRP");
case SO_EXCLBIND: return ("SO_EXCLBIND");
case SO_DOMAIN: return ("SO_DOMAIN");
"0x%lx", val);
}
} else {
long val2;
*s = '\0';
if (val2)
if (val & SO_ACCEPTCONN)
if (val & SO_REUSEADDR)
if (val & SO_KEEPALIVE)
if (val & SO_DONTROUTE)
if (val & SO_BROADCAST)
if (val & SO_USELOOPBACK)
if (val & SO_OOBINLINE)
if (val & SO_DGRAM_ERRIND)
if (val & SO_RECVUCRED)
return ((const char *)(s + 1));
}
}
const char *
{
switch (val) {
case RT_AWARE:
return ("RT_AWARE");
default:
"0x%lx", val);
}
}
const char *
{
switch (val) {
case TCP_NODELAY: return ("TCP_NODELAY");
case TCP_MAXSEG: return ("TCP_MAXSEG");
case TCP_KEEPALIVE: return ("TCP_KEEPALIVE");
case TCP_NOTIFY_THRESHOLD: return ("TCP_NOTIFY_THRESHOLD");
case TCP_ABORT_THRESHOLD: return ("TCP_ABORT_THRESHOLD");
case TCP_CONN_NOTIFY_THRESHOLD: return ("TCP_CONN_NOTIFY_THRESHOLD");
case TCP_CONN_ABORT_THRESHOLD: return ("TCP_CONN_ABORT_THRESHOLD");
case TCP_RECVDSTADDR: return ("TCP_RECVDSTADDR");
case TCP_ANONPRIVBIND: return ("TCP_ANONPRIVBIND");
case TCP_EXCLBIND: return ("TCP_EXCLBIND");
case TCP_INIT_CWND: return ("TCP_INIT_CWND");
case TCP_KEEPALIVE_THRESHOLD: return ("TCP_KEEPALIVE_THRESHOLD");
return ("TCP_KEEPALIVE_ABORT_THRESHOLD");
case TCP_CORK: return ("TCP_CORK");
case TCP_RTO_INITIAL: return ("TCP_RTO_INITIAL");
case TCP_RTO_MIN: return ("TCP_RTO_MIN");
case TCP_RTO_MAX: return ("TCP_RTO_MAX");
case TCP_LINGER2: return ("TCP_LINGER2");
case TCP_KEEPIDLE: return ("TCP_KEEPIDLE");
case TCP_KEEPCNT: return ("TCP_KEEPCNT");
case TCP_KEEPINTVL: return ("TCP_KEEPINTVL");
"0x%lx", val);
}
}
const char *
{
switch (val) {
case SCTP_RTOINFO: return ("SCTP_RTOINFO");
case SCTP_ASSOCINFO: return ("SCTP_ASSOCINFO");
case SCTP_INITMSG: return ("SCTP_INITMSG");
case SCTP_NODELAY: return ("SCTP_NODELAY");
case SCTP_AUTOCLOSE: return ("SCTP_AUTOCLOSE");
return ("SCTP_SET_PEER_PRIMARY_ADDR");
case SCTP_PRIMARY_ADDR: return ("SCTP_PRIMARY_ADDR");
case SCTP_ADAPTATION_LAYER: return ("SCTP_ADAPTATION_LAYER");
case SCTP_DISABLE_FRAGMENTS: return ("SCTP_DISABLE_FRAGMENTS");
case SCTP_PEER_ADDR_PARAMS: return ("SCTP_PEER_ADDR_PARAMS");
case SCTP_DEFAULT_SEND_PARAM: return ("SCTP_DEFAULT_SEND_PARAM");
case SCTP_EVENTS: return ("SCTP_EVENTS");
return ("SCTP_I_WANT_MAPPED_V4_ADDR");
case SCTP_MAXSEG: return ("SCTP_MAXSEG");
case SCTP_STATUS: return ("SCTP_STATUS");
case SCTP_GET_PEER_ADDR_INFO: return ("SCTP_GET_PEER_ADDR_INFO");
case SCTP_ADD_ADDR: return ("SCTP_ADD_ADDR");
case SCTP_REM_ADDR: return ("SCTP_REM_ADDR");
"0x%lx", val);
}
}
const char *
{
switch (val) {
case UDP_CHECKSUM: return ("UDP_CHECKSUM");
case UDP_ANONPRIVBIND: return ("UDP_ANONPRIVBIND");
case UDP_EXCLBIND: return ("UDP_EXCLBIND");
case UDP_RCVHDR: return ("UDP_RCVHDR");
case UDP_NAT_T_ENDPOINT: return ("UDP_NAT_T_ENDPOINT");
val);
}
}
/*
* Print setsockopt()/getsockopt() 3rd argument.
*/
/*ARGSUSED*/
void
{
/* cheating -- look at the level */
break;
break;
break;
break;
break;
break;
}
}
/*
* Print utrap type
*/
/*ARGSUSED*/
void
{
const char *s = NULL;
#ifdef __sparc
if (!raw) {
switch (val) {
case UT_INSTRUCTION_DISABLED:
s = "UT_INSTRUCTION_DISABLED"; break;
case UT_INSTRUCTION_ERROR:
s = "UT_INSTRUCTION_ERROR"; break;
s = "UT_INSTRUCTION_PROTECTION"; break;
case UT_ILLTRAP_INSTRUCTION:
s = "UT_ILLTRAP_INSTRUCTION"; break;
case UT_ILLEGAL_INSTRUCTION:
s = "UT_ILLEGAL_INSTRUCTION"; break;
case UT_PRIVILEGED_OPCODE:
s = "UT_PRIVILEGED_OPCODE"; break;
case UT_FP_DISABLED:
s = "UT_FP_DISABLED"; break;
case UT_FP_EXCEPTION_IEEE_754:
s = "UT_FP_EXCEPTION_IEEE_754"; break;
case UT_FP_EXCEPTION_OTHER:
s = "UT_FP_EXCEPTION_OTHER"; break;
case UT_TAG_OVERFLOW:
s = "UT_TAG_OVERFLOW"; break;
case UT_DIVISION_BY_ZERO:
s = "UT_DIVISION_BY_ZERO"; break;
case UT_DATA_EXCEPTION:
s = "UT_DATA_EXCEPTION"; break;
case UT_DATA_ERROR:
s = "UT_DATA_ERROR"; break;
case UT_DATA_PROTECTION:
s = "UT_DATA_PROTECTION"; break;
s = "UT_MEM_ADDRESS_NOT_ALIGNED"; break;
case UT_PRIVILEGED_ACTION:
s = "UT_PRIVILEGED_ACTION"; break;
case UT_ASYNC_DATA_ERROR:
s = "UT_ASYNC_DATA_ERROR"; break;
case UT_TRAP_INSTRUCTION_16:
s = "UT_TRAP_INSTRUCTION_16"; break;
case UT_TRAP_INSTRUCTION_17:
s = "UT_TRAP_INSTRUCTION_17"; break;
case UT_TRAP_INSTRUCTION_18:
s = "UT_TRAP_INSTRUCTION_18"; break;
case UT_TRAP_INSTRUCTION_19:
s = "UT_TRAP_INSTRUCTION_19"; break;
case UT_TRAP_INSTRUCTION_20:
s = "UT_TRAP_INSTRUCTION_20"; break;
case UT_TRAP_INSTRUCTION_21:
s = "UT_TRAP_INSTRUCTION_21"; break;
case UT_TRAP_INSTRUCTION_22:
s = "UT_TRAP_INSTRUCTION_22"; break;
case UT_TRAP_INSTRUCTION_23:
s = "UT_TRAP_INSTRUCTION_23"; break;
case UT_TRAP_INSTRUCTION_24:
s = "UT_TRAP_INSTRUCTION_24"; break;
case UT_TRAP_INSTRUCTION_25:
s = "UT_TRAP_INSTRUCTION_25"; break;
case UT_TRAP_INSTRUCTION_26:
s = "UT_TRAP_INSTRUCTION_26"; break;
case UT_TRAP_INSTRUCTION_27:
s = "UT_TRAP_INSTRUCTION_27"; break;
case UT_TRAP_INSTRUCTION_28:
s = "UT_TRAP_INSTRUCTION_28"; break;
case UT_TRAP_INSTRUCTION_29:
s = "UT_TRAP_INSTRUCTION_29"; break;
case UT_TRAP_INSTRUCTION_30:
s = "UT_TRAP_INSTRUCTION_30"; break;
case UT_TRAP_INSTRUCTION_31:
s = "UT_TRAP_INSTRUCTION_31"; break;
}
}
#endif /* __sparc */
if (s == NULL)
else
}
/*
* Print utrap handler
*/
void
{
const char *s = NULL;
if (!raw) {
switch (val) {
case (long)UTH_NOCHANGE: s = "UTH_NOCHANGE"; break;
}
}
if (s == NULL)
else
}
const char *
{
return (NULL);
/* NB: F_OK == 0 */
return ("F_OK");
return ("F_OK|E_OK");
*str = '\0';
return ((const char *)(str + 1));
}
/*
* Print access() flags.
*/
void
{
if (s == NULL)
else
}
/*
* Print shutdown() "how" (2nd) argument
*/
void
{
if (raw) {
return;
}
switch (val) {
}
}
/*
* Print fcntl() F_SETFL flags (3rd) argument or fdsync flag (2nd arg)
*/
static struct fcntl_flags {
long val;
const char *name;
} fcntl_flags[] = {
};
void
{
if (raw) {
return;
}
if (val == 0) {
return;
}
*s = '\0';
for (fp = fcntl_flags;
}
}
}
void
{
if (setsize == 0) {
}
int i;
for (i = 0; i < setsize / sizeof (priv_chunk_t); i++) {
((priv_chunk_t *)set)[i]);
}
} else {
}
}
/*
* Print privilege set operation.
*/
void
{
const char *s = NULL;
if (!raw) {
case PRIV_ON: s = "PRIV_ON"; break;
case PRIV_OFF: s = "PRIV_OFF"; break;
case PRIV_SET: s = "PRIV_SET"; break;
}
}
if (s == NULL)
else
}
/*
* Print privilege set name
*/
void
{
const char *s = NULL;
if (!raw)
s = priv_getsetbynum((int)val);
if (s == NULL)
else {
char *q;
/* Do the best we can in this case */
return;
}
q = dup;
while (*q != '\0') {
*q = toupper(*q);
q++;
}
}
}
/*
* Print process flag names.
*/
void
{
const char *s = NULL;
if (!raw) {
switch ((int)val) {
case PRIV_DEBUG: s = "PRIV_DEBUG"; break;
case PRIV_AWARE: s = "PRIV_AWARE"; break;
case PRIV_XPOLICY: s = "PRIV_XPOLICY"; break;
case PRIV_AWARE_RESET: s = "PRIV_AWARE_RESET"; break;
case PRIV_PFEXEC: s = "PRIV_PFEXEC"; break;
case NET_MAC_AWARE: s = "NET_MAC_AWARE"; break;
case NET_MAC_AWARE_INHERIT:
s = "NET_MAC_AWARE_INHERIT";
break;
}
}
if (s == NULL)
else
}
/*
* Print lgrp_affinity_{get,set}() arguments.
*/
/*ARGSUSED*/
void
{
sizeof (lgrp_affinity_args_t)) {
return;
}
/*
* arrange the arguments in the order that user calls with
*/
}
/*
* Print a key_t as IPC_PRIVATE if it is 0.
*/
void
{
else
}
/*
* Print zone_getattr() attribute types.
*/
void
{
const char *s = NULL;
if (!raw) {
switch ((int)val) {
case ZONE_ATTR_NAME: s = "ZONE_ATTR_NAME"; break;
case ZONE_ATTR_ROOT: s = "ZONE_ATTR_ROOT"; break;
case ZONE_ATTR_STATUS: s = "ZONE_ATTR_STATUS"; break;
case ZONE_ATTR_PRIVSET: s = "ZONE_ATTR_PRIVSET"; break;
case ZONE_ATTR_UNIQID: s = "ZONE_ATTR_UNIQID"; break;
case ZONE_ATTR_POOLID: s = "ZONE_ATTR_POOLID"; break;
case ZONE_ATTR_INITPID: s = "ZONE_ATTR_INITPID"; break;
case ZONE_ATTR_SLBL: s = "ZONE_ATTR_SLBL"; break;
case ZONE_ATTR_INITNAME: s = "ZONE_ATTR_INITNAME"; break;
case ZONE_ATTR_BOOTARGS: s = "ZONE_ATTR_BOOTARGS"; break;
case ZONE_ATTR_BRAND: s = "ZONE_ATTR_BRAND"; break;
case ZONE_ATTR_FLAGS: s = "ZONE_ATTR_FLAGS"; break;
case ZONE_ATTR_PHYS_MCAP: s = "ZONE_ATTR_PHYS_MCAP"; break;
}
}
if (s == NULL)
else
}
/*
* Print a file descriptor as AT_FDCWD if necessary
*/
void
{
if (raw)
else
} else {
}
}
/*
* Print Trusted Networking database operation codes (labelsys; tn*)
*/
static void
{
const char *s = NULL;
if (!raw) {
switch ((tsol_dbops_t)val) {
case TNDB_NOOP: s = "TNDB_NOOP"; break;
case TNDB_LOAD: s = "TNDB_LOAD"; break;
case TNDB_DELETE: s = "TNDB_DELETE"; break;
case TNDB_FLUSH: s = "TNDB_FLUSH"; break;
case TNDB_GET: s = "TNDB_GET"; break;
}
}
if (s == NULL)
else
}
/*
* Print LIO_XX flags
*/
void
{
if (raw)
else if (val == LIO_NOWAIT)
else
}
const char *
{
*str = '\0';
}
"|0x%X", attr);
}
return (str + 1);
}
/*
* Print door_create() flags
*/
void
{
if (raw)
else
}
/*
* Print door_*param() param argument
*/
void
{
if (raw)
else if (val == DOOR_PARAM_DESC_MAX)
else if (val == DOOR_PARAM_DATA_MIN)
else if (val == DOOR_PARAM_DATA_MAX)
else
}
/*
* Print rctlsys subcodes
*/
void
{
if (s == NULL)
else
}
/*
* Print getrctl flags
*/
void
{
if (raw)
else if (action == RCTL_FIRST)
else if (action == RCTL_USAGE)
else
}
/*
* Print setrctl flags
*/
void
{
if (raw) {
return;
} else if (action == RCTL_INSERT)
(void) strcpy(s, "RCTL_INSERT");
else if (action == RCTL_DELETE)
(void) strcpy(s, "RCTL_DELETE");
else if (action == RCTL_REPLACE)
(void) strcpy(s, "RCTL_REPLACE");
else {
return;
}
if (pval & RCTL_USE_RECIPIENT_PID) {
(void) strlcat(s, "|RCTL_USE_RECIPIENT_PID",
}
if ((pval & RCTLSYS_ACTION_MASK) != 0)
else if (*s != '\0')
else
}
/*
* Print rctlctl flags
*/
void
{
if (raw)
else if (action == RCTLCTL_GET)
else if (action == RCTLCTL_SET)
else
}
/*
* Print setprojrctl flags
*/
void
{
else
}
/*
* Print forkx() flags
*/
void
{
char *str;
if (val == 0)
else {
*str = '\0';
if (val & FORK_NOSIGCHLD)
if (val & FORK_WAITPID)
}
}
/*
* Print faccessat() flag
*/
void
{
if (val == 0)
else
}
/*
* Print unlinkat() flag
*/
void
{
if (val == 0)
else
}
/*
* Print AT_SYMLINK_NOFOLLOW / AT_SYMLINK_FOLLOW flag
*/
void
{
if (val == 0)
else
}
void
{
return;
}
if (val & GRND_NONBLOCK) {
first = 0;
}
if (val & GRND_RANDOM) {
first = 0;
}
}
/*
* Array of pointers to print functions, one for each format.
*/
void (* const Print[])() = {
prt_nov, /* NOV -- no value */
prt_dec, /* DEC -- print value in decimal */
prt_oct, /* OCT -- print value in octal */
prt_hex, /* HEX -- print value in hexadecimal */
prt_dex, /* DEX -- print value in hexadecimal if big enough */
prt_stg, /* STG -- print value as string */
prt_ioc, /* IOC -- print ioctl code */
prt_fcn, /* FCN -- print fcntl code */
prt_s86, /* S86 -- print sysi86 code */
prt_uts, /* UTS -- print utssys code */
prt_opn, /* OPN -- print open code */
prt_sig, /* SIG -- print signal name plus flags */
prt_uat, /* UAT -- print unlinkat() flag */
prt_msc, /* MSC -- print msgsys command */
prt_msf, /* MSF -- print msgsys flags */
prt_smc, /* SMC -- print semsys command */
prt_sef, /* SEF -- print semsys flags */
prt_shc, /* SHC -- print shmsys command */
prt_shf, /* SHF -- print shmsys flags */
prt_fat, /* FAT -- print faccessat( flag */
prt_sfs, /* SFS -- print sysfs code */
prt_rst, /* RST -- print string returned by syscall */
prt_smf, /* SMF -- print streams message flags */
prt_ioa, /* IOA -- print ioctl argument */
prt_pip, /* PIP -- print pipe flags */
prt_mtf, /* MTF -- print mount flags */
prt_mft, /* MFT -- print mount file system type */
prt_iob, /* IOB -- print contents of I/O buffer */
prt_hhx, /* HHX -- print value in hexadecimal (half size) */
prt_wop, /* WOP -- print waitsys() options */
prt_spm, /* SPM -- print sigprocmask argument */
prt_rlk, /* RLK -- print readlink buffer */
prt_mpr, /* MPR -- print mmap()/mprotect() flags */
prt_mty, /* MTY -- print mmap() mapping type flags */
prt_mcf, /* MCF -- print memcntl() function */
prt_mc4, /* MC4 -- print memcntl() (fourth) argument */
prt_mc5, /* MC5 -- print memcntl() (fifth) argument */
prt_mad, /* MAD -- print madvise() argument */
prt_ulm, /* ULM -- print ulimit() argument */
prt_cnf, /* CNF -- print sysconfig() argument */
prt_inf, /* INF -- print sysinfo() argument */
prt_fui, /* FUI -- print fusers() input argument */
prt_idt, /* IDT -- print idtype_t, waitid() argument */
prt_lwf, /* LWF -- print lwp_create() flags */
prt_itm, /* ITM -- print [get|set]itimer() arg */
prt_llo, /* LLO -- print long long offset arg */
prt_mod, /* MOD -- print modctl() subcode */
prt_whn, /* WHN -- print lseek() whence arguiment */
prt_acl, /* ACL -- print acl() code */
prt_aio, /* AIO -- print kaio() code */
prt_aud, /* AUD -- print auditsys() code */
prt_uns, /* DEC -- print value in unsigned decimal */
prt_clc, /* CLC -- print cladm command argument */
prt_clf, /* CLF -- print cladm flag argument */
prt_cor, /* COR -- print corectl() subcode */
prt_cco, /* CCO -- print corectl() options */
prt_ccc, /* CCC -- print corectl() content */
prt_rcc, /* RCC -- print corectl() returned content */
prt_cpc, /* CPC -- print cpc() subcode */
prt_sqc, /* SQC -- print sigqueue() si_code argument */
prt_pc4, /* PC4 -- print priocntlsys() (fourth) argument */
prt_pc5, /* PC5 -- print priocntlsys() (key, value) pairs */
prt_pst, /* PST -- print processor set id */
prt_mif, /* MIF -- print meminfo() arguments */
prt_pfm, /* PFM -- print so_socket() proto-family (1st) arg */
prt_skt, /* SKT -- print so_socket() socket-type (2nd) arg */
prt_skp, /* SKP -- print so_socket() protocol (3rd) arg */
prt_skv, /* SKV -- print socket version arg */
prt_sol, /* SOL -- print [sg]etsockopt() level (2nd) arg */
prt_son, /* SON -- print [sg]etsockopt() opt-name (3rd) arg */
prt_utt, /* UTT -- print utrap type */
prt_uth, /* UTH -- print utrap handler */
prt_acc, /* ACC -- print access() flags */
prt_sht, /* SHT -- print shutdown() how (2nd) argument */
prt_ffg, /* FFG -- print fcntl() flags (3rd) argument */
prt_prs, /* PRS -- print privilege set */
prt_pro, /* PRO -- print privilege set operation */
prt_prn, /* PRN -- print privilege set name */
prt_laf, /* LAF -- print lgrp_affinity arguments */
prt_key, /* KEY -- print key_t 0 as IPC_PRIVATE */
prt_zga, /* ZGA -- print zone_getattr attribute types */
prt_atc, /* ATC -- print AT_FDCWD or file descriptor */
prt_lio, /* LIO -- print LIO_XX flags */
prt_dfl, /* DFL -- print door_create() flags */
prt_dpm, /* DPM -- print DOOR_PARAM_XX flags */
prt_tnd, /* TND -- print trusted network data base opcode */
prt_rsc, /* RSC -- print rctlsys() subcodes */
prt_rgf, /* RGF -- print getrctl() flags */
prt_rsf, /* RSF -- print setrctl() flags */
prt_rcf, /* RCF -- print rctlsys_ctl() flags */
prt_fxf, /* FXF -- print forkx() flags */
prt_spf, /* SPF -- print rctlsys_projset() flags */
prt_un1, /* UN1 -- as prt_uns except for -1 */
prt_mob, /* MOB -- print mmapobj() flags */
prt_snf, /* SNF -- print AT_SYMLINK_[NO]FOLLOW flag */
prt_skc, /* SKC -- print sockconfig() subcode */
prt_acf, /* ACF -- print accept4 flags */
prt_pfd, /* PFD -- print pipe fds */
prt_grf, /* GRF -- print getrandom flags */
prt_psdelta, /* PSDLT -- print psecflags(2) delta */
prt_psfw, /* PSFW -- print psecflags(2) set */
prt_dec, /* HID -- hidden argument, make this the last one */
};