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