Annotation of src/usr.bin/kdump/kdump_subr.h, Revision 1.23
1.23 ! guenther 1: /* $OpenBSD: kdump_subr.h,v 1.22 2018/11/05 17:05:50 anton Exp $ */
1.1 otto 2: /*
3: * Copyright(c) 2006 2006 David Kirchner <dpk@dpk.net>
4: *
5: * Permission to use, copy, modify, and distribute this software for any
6: * purpose with or without fee is hereby granted, provided that the above
7: * copyright notice and this permission notice appear in all copies.
8: *
9: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14: * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15: * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16: */
17:
18: /* $FreeBSD: src/usr.bin/kdump/kdump_subr.h,v 1.3 2007/04/09 22:04:27 emaste Exp $ */
19:
1.10 guenther 20:
21: /*
22: * These are simple support macros. print_or utilizes a variable
23: * defined in the calling function to track whether or not it should
24: * print a logical-OR character ('|') before a string. if_print_or
25: * simply handles the necessary "if" statement used in many lines
26: * of this file.
27: */
28: #define print_or(str,orflag) do { \
29: if (orflag) putchar('|'); else orflag = 1; \
30: printf ("%s", str); } \
31: while (0)
32: #define if_print_or(i,flag,orflag) do { \
33: if ((i & flag) == flag) \
34: print_or(#flag,orflag); } \
35: while (0)
36:
1.15 guenther 37: void fcntlcmdname(int);
1.1 otto 38: void rtprioname(int);
39: void modename(int);
1.13 guenther 40: void doflagsname(int, int);
1.1 otto 41: void flagsname(int);
1.15 guenther 42: void openflagsname(int);
1.4 matthew 43: void atflagsname(int);
1.1 otto 44: void accessmodename(int);
45: void mmapprotname(int);
46: void mmapflagsname(int);
47: void wait4optname(int);
1.23 ! guenther 48: void waitidoptname(int);
1.1 otto 49: void sendrecvflagsname(int);
50: void getfsstatflagsname(int);
51: void mountflagsname(int);
52: void rebootoptname(int);
53: void flockname(int);
54: void sockoptname(int);
55: void sockdomainname(int);
56: void sockipprotoname(int);
57: void socktypename(int);
1.13 guenther 58: void sockflagsname(int);
1.3 otto 59: void sockfamilyname(int);
1.1 otto 60: void thrcreateflagsname(int);
61: void mlockallname(int);
62: void shmatname(int);
63: void nfssvcname(int);
64: void whencename(int);
1.8 guenther 65: void pathconfname(int);
1.1 otto 66: void rlimitname(int);
67: void shutdownhowname(int);
68: void prioname(int);
69: void madvisebehavname(int);
70: void msyncflagsname(int);
1.9 guenther 71: void clocktypename(int);
1.1 otto 72: void schedpolicyname(int);
73: void kldunloadfflagsname(int);
74: void ksethrcmdname(int);
75: void extattrctlname(int);
76: void kldsymcmdname(int);
77: void sendfileflagsname(int);
78: void acltypename(int);
1.8 guenther 79: void rusagewho(int);
1.6 guenther 80: void sigactionflagname(int);
1.1 otto 81: void sigprocmaskhowname(int);
82: void lio_listioname(int);
83: void minheritname(int);
84: void quotactlname(int);
1.14 guenther 85: void quotactlcmdname(int);
1.1 otto 86: void ptraceopname(int);
1.11 otto 87: void sigill_name(int);
88: void sigtrap_name(int);
89: void sigemt_name(int);
90: void sigfpe_name(int);
91: void sigbus_name(int);
92: void sigsegv_name(int);
93: void sigchld_name(int);
1.12 guenther 94: void ktracefacname(int);
95: void itimername(int);
1.18 guenther 96: void evfiltername(int);
97: void evflagsname(int);
98: void evfflagsname(int, int);
1.20 deraadt 99: void pollfdeventname(int);
1.19 guenther 100: void syslogflagname(int);
1.21 mpi 101: void futexflagname(int);
1.22 anton 102: void flocktypename(int);
1.2 otto 103:
1.17 guenther 104: extern int decimal, fancy, basecol, arg1;