Annotation of src/usr.bin/kdump/kdump_subr.h, Revision 1.14
1.14 ! guenther 1: /* $OpenBSD: kdump_subr.h,v 1.13 2014/09/17 19:12:55 guenther 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.2 otto 37: void fcntlcmdname(int, 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.4 matthew 42: void atflagsname(int);
1.1 otto 43: void accessmodename(int);
44: void mmapprotname(int);
45: void mmapflagsname(int);
46: void wait4optname(int);
47: void sendrecvflagsname(int);
48: void getfsstatflagsname(int);
49: void mountflagsname(int);
50: void rebootoptname(int);
51: void flockname(int);
52: void sockoptname(int);
53: void sockdomainname(int);
54: void sockipprotoname(int);
55: void socktypename(int);
1.13 guenther 56: void sockflagsname(int);
1.3 otto 57: void sockfamilyname(int);
1.1 otto 58: void thrcreateflagsname(int);
59: void mlockallname(int);
60: void shmatname(int);
61: void nfssvcname(int);
62: void whencename(int);
1.8 guenther 63: void pathconfname(int);
1.1 otto 64: void rlimitname(int);
65: void shutdownhowname(int);
66: void prioname(int);
67: void madvisebehavname(int);
68: void msyncflagsname(int);
1.9 guenther 69: void clocktypename(int);
1.1 otto 70: void schedpolicyname(int);
71: void kldunloadfflagsname(int);
72: void ksethrcmdname(int);
73: void extattrctlname(int);
74: void kldsymcmdname(int);
75: void sendfileflagsname(int);
76: void acltypename(int);
1.8 guenther 77: void rusagewho(int);
1.6 guenther 78: void sigactionflagname(int);
1.1 otto 79: void sigprocmaskhowname(int);
80: void lio_listioname(int);
81: void minheritname(int);
82: void quotactlname(int);
1.14 ! guenther 83: void quotactlcmdname(int);
1.1 otto 84: void ptraceopname(int);
1.11 otto 85: void sigill_name(int);
86: void sigtrap_name(int);
87: void sigemt_name(int);
88: void sigfpe_name(int);
89: void sigbus_name(int);
90: void sigsegv_name(int);
91: void sigchld_name(int);
1.12 guenther 92: void ktracefacname(int);
93: void itimername(int);
1.2 otto 94:
1.8 guenther 95: extern int decimal, resolv, fancy;