Lines Matching refs:val

100 prt_nov(private_t *pri, int raw, long val)	/* print nothing */
106 prt_dec(private_t *pri, int raw, long val) /* print as decimal */
111 "%d", (int)val);
114 "%ld", val);
119 prt_uns(private_t *pri, int raw, long val) /* print as unsigned decimal */
124 "%u", (int)val);
127 "%lu", val);
132 prt_un1(private_t *pri, int raw, long val)
134 if ((int)val == -1)
135 prt_dec(pri, raw, val);
137 prt_uns(pri, raw, val);
142 prt_oct(private_t *pri, int raw, long val) /* print as octal */
147 "%#o", (int)val);
150 "%#lo", val);
155 prt_hex(private_t *pri, int raw, long val) /* print as hexadecimal */
160 "0x%.8X", (int)val);
163 "0x%.8lX", val);
169 prt_hhx(private_t *pri, int raw, long val)
174 "0x%.4X", (int)val);
177 "0x%.4lX", val);
183 prt_dex(private_t *pri, int raw, long val)
185 if (val & 0xff000000)
186 prt_hex(pri, 0, val);
188 prt_dec(pri, 0, val);
255 prt_stg(private_t *pri, int raw, long val) /* print as string */
257 char *s = raw? NULL : fetchstring(pri, (long)val, PATH_MAX);
260 prt_hex(pri, 0, val);
267 prt_rst(private_t *pri, int raw, long val)
270 fetchstring(pri, (long)val, PATH_MAX);
273 prt_hex(pri, 0, val);
283 prt_rlk(private_t *pri, int raw, long val)
286 fetchstring(pri, (long)val,
290 prt_hex(pri, 0, val);
299 prt_ioc(private_t *pri, int raw, long val) /* print ioctl code */
301 const char *s = raw? NULL : ioctlname(pri, (int)val);
304 prt_hex(pri, 0, val);
310 prt_ioa(private_t *pri, int raw, long val) /* print ioctl argument */
323 val + offsetof(kstat32_t, ks_name[0]));
327 val + offsetof(kstat_t, ks_name[0]));
332 prt_rst(pri, raw, val);
336 prt_stg(pri, raw, val);
341 prt_dec(pri, 0, val);
344 if (raw || (s = strrdopt(val)) == NULL)
345 prt_dec(pri, 0, val);
350 if (raw || (s = strevents(pri, val)) == NULL)
351 prt_hex(pri, 0, val);
356 if (raw || (s = strflush(val)) == NULL)
357 prt_dec(pri, 0, val);
367 prt_dec(pri, 0, val);
371 prt_hex(pri, 0, val);
377 prt_pip(private_t *pri, int raw, long val) /* print pipe code */
382 switch (val) {
396 prt_dex(pri, 0, val);
402 prt_pfd(private_t *pri, int raw, long val) /* print pipe code */
410 Pread(Proc, fds, sizeof (fds), (long)val) == sizeof (fds)) {
414 prt_hex(pri, 0, val);
419 prt_fcn(private_t *pri, int raw, long val) /* print fcntl code */
421 const char *s = raw? NULL : fcntlname(val);
424 prt_dec(pri, 0, val);
430 prt_s86(private_t *pri, int raw, long val) /* print sysi86 code */
433 const char *s = raw? NULL : si86name(val);
436 prt_dec(pri, 0, val);
442 prt_uts(private_t *pri, int raw, long val) /* print utssys code */
444 const char *s = raw? NULL : utscode(val);
447 prt_dec(pri, 0, val);
453 prt_msc(private_t *pri, int raw, long val) /* print msgsys command */
455 const char *s = raw? NULL : msgcmd(val);
458 prt_dec(pri, 0, val);
464 prt_msf(private_t *pri, int raw, long val) /* print msgsys flags */
466 const char *s = raw? NULL : msgflags(pri, (int)val);
469 prt_oct(pri, 0, val);
475 prt_smc(private_t *pri, int raw, long val) /* print semsys command */
477 const char *s = raw? NULL : semcmd(val);
480 prt_dec(pri, 0, val);
486 prt_sef(private_t *pri, int raw, long val) /* print semsys flags */
488 const char *s = raw? NULL : semflags(pri, (int)val);
491 prt_oct(pri, 0, val);
497 prt_shc(private_t *pri, int raw, long val) /* print shmsys command */
499 const char *s = raw? NULL : shmcmd(val);
502 prt_dec(pri, 0, val);
508 prt_shf(private_t *pri, int raw, long val) /* print shmsys flags */
510 const char *s = raw? NULL : shmflags(pri, (int)val);
513 prt_oct(pri, 0, val);
519 prt_sfs(private_t *pri, int raw, long val) /* print sysfs code */
521 const char *s = raw? NULL : sfsname(val);
524 prt_dec(pri, 0, val);
530 prt_opn(private_t *pri, int raw, long val) /* print open code */
532 const char *s = raw? NULL : openarg(pri, val);
535 prt_oct(pri, 0, val);
541 prt_sig(private_t *pri, int raw, long val) /* print signal name */
543 const char *s = raw? NULL : signame(pri, (int)val);
546 prt_hex(pri, 0, val);
552 prt_smf(private_t *pri, int raw, long val) /* print streams message flags */
554 switch (val) {
556 prt_dec(pri, 0, val);
560 prt_hhx(pri, 0, val);
565 prt_hhx(pri, 0, val);
571 prt_mtf(private_t *pri, int raw, long val) /* print mount flags */
573 const char *s = raw? NULL : mountflags(pri, val);
576 prt_hex(pri, 0, val);
582 prt_mft(private_t *pri, int raw, long val) /* print mount file system type */
584 if (val >= 0 && val < 256)
585 prt_dec(pri, 0, val);
587 prt_hex(pri, 0, val);
589 prt_stg(pri, raw, val);
601 prt_iob(private_t *pri, int raw, long val)
621 prt_hex(pri, 0, val);
625 if (Pread(Proc, buffer, (size_t)nb, (long)val) != nb)
626 prt_hex(pri, 0, val);
635 prt_hex(pri, 0, val);
645 prt_idt(private_t *pri, int raw, long val) /* print idtype_t, waitid() arg */
647 const char *s = raw? NULL : idtype_enum(pri, val);
650 prt_dec(pri, 0, val);
656 prt_wop(private_t *pri, int raw, long val) /* print waitid() options */
658 const char *s = raw? NULL : woptions(pri, (int)val);
661 prt_oct(pri, 0, val);
667 prt_whn(private_t *pri, int raw, long val) /* print lseek() whence argument */
669 const char *s = raw? NULL : whencearg(val);
672 prt_dec(pri, 0, val);
679 prt_spm(private_t *pri, int raw, long val) /* print sigprocmask argument */
684 switch (val) {
692 prt_dec(pri, 0, val);
767 prt_mpr(private_t *pri, int raw, long val) /* print mmap()/mprotect() flags */
769 const char *s = raw? NULL : mmap_protect(pri, val);
772 prt_hhx(pri, 0, val);
778 prt_mty(private_t *pri, int raw, long val) /* print mmap() mapping type flags */
780 const char *s = raw? NULL : mmap_type(pri, val);
783 prt_hhx(pri, 0, val);
789 prt_mob(private_t *pri, int raw, long val) /* print mmapobj() flags */
791 if (val == 0)
792 prt_dec(pri, 0, val);
793 else if (raw || (val & ~(MMOBJ_PADDING|MMOBJ_INTERPRET)) != 0)
794 prt_hhx(pri, 0, val);
800 if (val & MMOBJ_PADDING)
802 if (val & MMOBJ_INTERPRET)
811 prt_mcf(private_t *pri, int raw, long val) /* print memcntl() function */
816 switch (val) {
828 prt_dec(pri, 0, val);
834 prt_mad(private_t *pri, int raw, long val) /* print madvise() argument */
839 switch (val) {
854 prt_dec(pri, 0, val);
860 prt_mc4(private_t *pri, int raw, long val) /* print memcntl() (4th) argument */
862 if (val == 0)
863 prt_dec(pri, 0, val);
865 prt_hhx(pri, 0, val);
873 prt_mad(pri, 0, val);
877 if ((val & ~(MS_SYNC|MS_ASYNC|MS_INVALIDATE)) == 0) {
879 if (val & MS_SYNC)
881 if (val & MS_ASYNC)
883 if (val & MS_INVALIDATE)
891 if ((val & ~(MCL_CURRENT|MCL_FUTURE)) == 0) {
893 if (val & MCL_CURRENT)
896 if (val & MCL_FUTURE)
905 prt_hhx(pri, 0, val);
912 prt_mc5(private_t *pri, int raw, long val) /* print memcntl() (5th) argument */
917 if (val == 0)
918 prt_dec(pri, 0, val);
919 else if (raw || (val & ~VALID_ATTR))
920 prt_hhx(pri, 0, val);
924 if (val & SHARED)
926 if (val & PRIVATE)
928 if (val & PROT_READ)
930 if (val & PROT_WRITE)
932 if (val & PROT_EXEC)
935 prt_hhx(pri, 0, val);
943 prt_ulm(private_t *pri, int raw, long val) /* print ulimit() argument */
948 switch (val) {
957 prt_dec(pri, 0, val);
963 prt_rlm(private_t *pri, int raw, long val) /* print get/setrlimit() argument */
968 switch (val) {
980 prt_dec(pri, 0, val);
986 prt_cnf(private_t *pri, int raw, long val) /* print sysconfig code */
988 const char *s = raw? NULL : sconfname(val);
991 prt_dec(pri, 0, val);
997 prt_inf(private_t *pri, int raw, long val) /* print sysinfo code */
1002 switch (val) {
1024 prt_dec(pri, 0, val);
1030 prt_ptc(private_t *pri, int raw, long val) /* print pathconf code */
1032 const char *s = raw? NULL : pathconfname(val);
1035 prt_dec(pri, 0, val);
1041 prt_fui(private_t *pri, int raw, long val) /* print fusers() input argument */
1043 const char *s = raw? NULL : fuiname(val);
1046 prt_hhx(pri, 0, val);
1052 prt_lwf(private_t *pri, int raw, long val) /* print lwp_create() flags */
1056 if (val == 0)
1057 prt_dec(pri, 0, val);
1059 (val & ~(LWP_DAEMON|LWP_DETACHED|LWP_SUSPENDED)))
1060 prt_hhx(pri, 0, val);
1065 if (val & LWP_DAEMON)
1067 if (val & LWP_DETACHED)
1069 if (val & LWP_SUSPENDED)
1077 prt_itm(private_t *pri, int raw, long val) /* print [get|set]itimer() arg */
1082 switch (val) {
1093 prt_dec(pri, 0, val);
1099 prt_mod(private_t *pri, int raw, long val) /* print modctl() code */
1104 switch (val) {
1153 prt_dec(pri, 0, val);
1159 prt_acl(private_t *pri, int raw, long val) /* print acl() code */
1164 switch (val) {
1175 prt_dec(pri, 0, val);
1181 prt_aio(private_t *pri, int raw, long val) /* print kaio() code */
1187 switch (val & ~AIO_POLL_BIT) {
1220 if (s != NULL && (val & AIO_POLL_BIT)) {
1228 prt_dec(pri, 0, val);
1234 prt_aud(private_t *pri, int raw, long val) /* print auditsys() code */
1239 switch (val) {
1252 prt_dec(pri, 0, val);
1258 prt_cor(private_t *pri, int raw, long val) /* print corectl() subcode */
1263 switch (val) {
1296 prt_dec(pri, 0, val);
1302 prt_cco(private_t *pri, int raw, long val) /* print corectl() options */
1306 if (val == 0)
1307 prt_dec(pri, 0, val);
1308 else if (raw || (val & ~CC_OPTIONS))
1309 prt_hhx(pri, 0, val);
1314 if (val & CC_GLOBAL_PATH)
1316 if (val & CC_PROCESS_PATH)
1318 if (val & CC_GLOBAL_SETID)
1320 if (val & CC_PROCESS_SETID)
1322 if (val & CC_GLOBAL_LOG)
1325 prt_hhx(pri, 0, val);
1333 prt_ccc(private_t *pri, int raw, long val) /* print corectl() content */
1337 if (Pread(Proc, &ccc, sizeof (ccc), val) != sizeof (ccc))
1338 prt_hex(pri, 0, val);
1347 prt_rcc(private_t *pri, int raw, long val) /* print corectl() ret. cont. */
1351 if (pri->Errno || Pread(Proc, &ccc, sizeof (ccc), val) != sizeof (ccc))
1352 prt_hex(pri, 0, val);
1361 prt_cpc(private_t *pri, int raw, long val) /* print cpc() subcode */
1366 switch (val) {
1387 prt_dec(pri, 0, val);
1411 prt_clc(private_t *pri, int raw, long val)
1416 switch (val) {
1423 prt_dec(pri, 0, val);
1429 prt_clf(private_t *pri, int raw, long val)
1453 prt_dec(pri, 0, val);
1459 prt_sqc(private_t *pri, int raw, long val) /* print sigqueue() si_code */
1464 switch ((int)val) {
1473 prt_dec(pri, 0, val);
1482 print_pck(private_t *pri, int raw, long val)
1488 pri->sys_args[2] != PC_SETXPARMS) || val == 0 || raw) {
1489 prt_dec(pri, 0, val);
1494 if (val == PC_KY_CLNAME) {
1498 prt_dec(pri, 0, val);
1503 prt_dec(pri, 0, val);
1508 switch (val) {
1514 switch (val) {
1521 switch (val) {
1529 switch (val) {
1535 switch (val) {
1545 prt_dec(pri, 0, val);
1555 prt_pc4(private_t *pri, int raw, long val)
1560 prt_hex(pri, 0, val);
1561 else if (val)
1562 prt_stg(pri, 0, val);
1564 prt_dec(pri, 0, val);
1572 prt_pc5(private_t *pri, int raw, long val)
1581 pri->sys_args[2] != PC_SETXPARMS) || val == 0) {
1586 if (Pread(Proc, &prms, sizeof (prms), val) != sizeof (prms)) {
1587 prt_hex(pri, 0, val);
1606 prt_psflags(private_t *pri, secflagset_t val)
1610 if (val == 0) {
1616 if (secflag_isset(val, PROC_SEC_ASLR)) {
1618 secflag_clear(&val, PROC_SEC_ASLR);
1620 if (secflag_isset(val, PROC_SEC_FORBIDNULLMAP)) {
1623 secflag_clear(&val, PROC_SEC_FORBIDNULLMAP);
1625 if (secflag_isset(val, PROC_SEC_NOEXECSTACK)) {
1628 secflag_clear(&val, PROC_SEC_NOEXECSTACK);
1631 if (val != 0)
1632 (void) snprintf(str, sizeof (str), "%s|%#x", str, val);
1700 prt_pst(private_t *pri, int raw, long val)
1705 switch ((psetid_t)val) {
1713 prt_dec(pri, 0, val);
1723 prt_mif(private_t *pri, int raw, long val)
1731 if (Pread(Proc, &minfo32, sizeof (struct meminfo32), val) !=
1735 prt_hex(pri, 0, val);
1755 if (Pread(Proc, &minfo, sizeof (struct meminfo), val) !=
1759 prt_hex(pri, 0, val);
1784 prt_pfm(private_t *pri, int raw, long val)
1787 if ((ulong_t)val < MAX_AFCODES) {
1789 outstring(pri, afcodes[val]);
1791 prt_dec(pri, 0, val);
1800 prt_skc(private_t *pri, int raw, long val)
1805 switch (val) {
1817 prt_dec(pri, 0, val);
1826 prt_skt(private_t *pri, int raw, long val)
1829 long type = val & SOCK_TYPE_MASK;
1834 if ((val & SOCK_CLOEXEC) != 0) {
1838 prt_dec(pri, 0, val);
1848 prt_skp(private_t *pri, int raw, long val)
1856 case PF_NCA: if ((s = ipprotos((int)val)) != NULL) {
1861 default: prt_dec(pri, 0, val);
1872 prt_skv(private_t *pri, int raw, long val)
1874 switch (val) {
1880 default: prt_dec(pri, 0, val); break;
1888 prt_acf(private_t *pri, int raw, long val)
1891 if (raw || !val ||
1892 (val & ~(SOCK_CLOEXEC|SOCK_NDELAY|SOCK_NONBLOCK))) {
1893 prt_dex(pri, 0, val);
1897 if (val & SOCK_CLOEXEC) {
1901 if (val & SOCK_NDELAY) {
1905 if (val & SOCK_NONBLOCK) {
1916 prt_sol(private_t *pri, int raw, long val)
1918 if (val == SOL_SOCKET) {
1920 } else if (val == SOL_ROUTE) {
1927 if ((p = getprotobynumber_r(val, &res,
1931 prt_dec(pri, 0, val);
1937 sol_optname(private_t *pri, long val)
1940 if (val >= SO_SNDBUF) {
1941 switch (val) {
1960 "0x%lx", val);
1969 val2 = val & ~(SO_DEBUG|SO_ACCEPTCONN|SO_REUSEADDR|SO_KEEPALIVE|
1974 if (val & SO_DEBUG)
1976 if (val & SO_ACCEPTCONN)
1978 if (val & SO_REUSEADDR)
1980 if (val & SO_KEEPALIVE)
1982 if (val & SO_DONTROUTE)
1984 if (val & SO_BROADCAST)
1986 if (val & SO_USELOOPBACK)
1988 if (val & SO_LINGER)
1990 if (val & SO_OOBINLINE)
1992 if (val & SO_DGRAM_ERRIND)
1994 if (val & SO_RECVUCRED)
1996 if (used >= CBSIZE || val == 0)
1997 (void) snprintf(s + 1, CBSIZE-1, "0x%lx", val);
2004 route_optname(private_t *pri, long val)
2006 switch (val) {
2011 "0x%lx", val);
2017 tcp_optname(private_t *pri, long val)
2019 switch (val) {
2045 "0x%lx", val);
2052 sctp_optname(private_t *pri, long val)
2054 switch (val) {
2079 "0x%lx", val);
2086 udp_optname(private_t *pri, long val)
2088 switch (val) {
2097 val);
2108 prt_son(private_t *pri, int raw, long val)
2112 case SOL_SOCKET: outstring(pri, sol_optname(pri, val));
2114 case SOL_ROUTE: outstring(pri, route_optname(pri, val));
2116 case IPPROTO_TCP: outstring(pri, tcp_optname(pri, val));
2118 case IPPROTO_UDP: outstring(pri, udp_optname(pri, val));
2120 case IPPROTO_SCTP: outstring(pri, sctp_optname(pri, val));
2122 default: prt_dec(pri, 0, val);
2133 prt_utt(private_t *pri, int raw, long val)
2139 switch (val) {
2211 prt_dec(pri, 0, val);
2221 prt_uth(private_t *pri, int raw, long val)
2226 switch (val) {
2232 prt_hex(pri, 0, val);
2269 prt_acc(private_t *pri, int raw, long val)
2271 const char *s = raw? NULL : access_flags(pri, val);
2274 prt_dex(pri, 0, val);
2283 prt_sht(private_t *pri, int raw, long val)
2286 prt_dex(pri, 0, val);
2289 switch (val) {
2293 default: prt_dec(pri, 0, val); break;
2301 long val;
2326 prt_ffg(private_t *pri, int raw, long val)
2334 (void) snprintf(s, CBSIZE, "0x%lx", val);
2338 if (val == 0) {
2346 if (val & fp->val) {
2348 val &= ~fp->val;
2352 if (val != 0 && used <= CBSIZE)
2353 used += snprintf(s + used, CBSIZE - used, "|0x%lx", val);
2356 (void) snprintf(s + 1, CBSIZE-1, "0x%lx", val);
2362 prt_prs(private_t *pri, int raw, long val)
2374 Pread(Proc, set, setsize, val) == setsize) {
2387 prt_hex(pri, 0, val);
2398 prt_pro(private_t *pri, int raw, long val)
2403 switch ((priv_op_t)val) {
2411 prt_dec(pri, 0, val);
2420 prt_prn(private_t *pri, int raw, long val)
2425 s = priv_getsetbynum((int)val);
2428 prt_dec(pri, 0, val);
2456 prt_pfl(private_t *pri, int raw, long val)
2461 switch ((int)val) {
2475 prt_dec(pri, 0, val);
2485 prt_laf(private_t *pri, int raw, long val)
2489 if (Pread(Proc, &laff, sizeof (lgrp_affinity_args_t), val) !=
2491 prt_hex(pri, 0, val);
2511 prt_key(private_t *pri, int raw, long val)
2513 if (!raw && val == 0)
2516 prt_dec(pri, 0, val);
2524 prt_zga(private_t *pri, int raw, long val)
2529 switch ((int)val) {
2547 prt_dec(pri, 0, val);
2556 prt_atc(private_t *pri, int raw, long val)
2558 if ((int)val == AT_FDCWD) {
2564 prt_dec(pri, 0, val);
2572 prt_tnd(private_t *pri, int raw, long val)
2577 switch ((tsol_dbops_t)val) {
2587 prt_dec(pri, 0, val);
2596 prt_lio(private_t *pri, int raw, long val)
2599 prt_dec(pri, 0, val);
2600 else if (val == LIO_WAIT)
2602 else if (val == LIO_NOWAIT)
2605 prt_dec(pri, 0, val);
2609 door_flags(private_t *pri, long val)
2611 door_attr_t attr = (door_attr_t)val;
2644 prt_dfl(private_t *pri, int raw, long val)
2647 prt_hex(pri, 0, val);
2649 outstring(pri, door_flags(pri, val));
2656 prt_dpm(private_t *pri, int raw, long val)
2659 prt_hex(pri, 0, val);
2660 else if (val == DOOR_PARAM_DESC_MAX)
2662 else if (val == DOOR_PARAM_DATA_MIN)
2664 else if (val == DOOR_PARAM_DATA_MAX)
2667 prt_hex(pri, 0, val);
2674 prt_rsc(private_t *pri, int raw, long val) /* print utssys code */
2676 const char *s = raw? NULL : rctlsyscode(val);
2679 prt_dec(pri, 0, val);
2688 prt_rgf(private_t *pri, int raw, long val)
2690 long action = val & (~RCTLSYS_ACTION_MASK);
2693 prt_hex(pri, 0, val);
2701 prt_hex(pri, 0, val);
2708 prt_rsf(private_t *pri, int raw, long val)
2710 long action = val & (~RCTLSYS_ACTION_MASK);
2711 long pval = val & RCTL_LOCAL_ACTION_MASK;
2715 prt_hex(pri, 0, val);
2724 prt_hex(pri, 0, val);
2735 prt_hex(pri, 0, val);
2739 prt_hex(pri, 0, val);
2746 prt_rcf(private_t *pri, int raw, long val)
2748 long action = val & (~RCTLSYS_ACTION_MASK);
2751 prt_hex(pri, 0, val);
2757 prt_hex(pri, 0, val);
2764 prt_spf(private_t *pri, int raw, long val)
2766 long action = val & TASK_PROJ_MASK;
2771 prt_hex(pri, 0, val);
2778 prt_fxf(private_t *pri, int raw, long val)
2782 if (val == 0)
2784 else if (raw || (val & ~(FORK_NOSIGCHLD | FORK_WAITPID)))
2785 prt_hhx(pri, 0, val);
2789 if (val & FORK_NOSIGCHLD)
2792 if (val & FORK_WAITPID)
2803 prt_fat(private_t *pri, int raw, long val)
2805 if (val == 0)
2807 else if (!raw && val == AT_EACCESS)
2810 prt_hex(pri, 0, val);
2817 prt_uat(private_t *pri, int raw, long val)
2819 if (val == 0)
2821 else if (!raw && val == AT_REMOVEDIR)
2824 prt_hex(pri, 0, val);
2831 prt_snf(private_t *pri, int raw, long val)
2833 if (val == 0)
2835 else if (!raw && val == AT_SYMLINK_NOFOLLOW)
2837 else if (!raw && val == AT_SYMLINK_FOLLOW)
2840 prt_hex(pri, 0, val);
2844 prt_grf(private_t *pri, int raw, long val)
2848 if (raw != 0 || val == 0 ||
2849 (val & ~(GRND_NONBLOCK | GRND_RANDOM)) != 0) {
2854 if (val & GRND_NONBLOCK) {
2858 if (val & GRND_RANDOM) {