4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 /* Copyright (c) 1988 AT&T */
26 /* All Rights Reserved */
41 #define MM_NOSTD 0x100
43 #define MM_NOGET 0x200
45 #define MM_ACTION 0x400
47 #define MM_NOCONSOLE 0
48 #define MM_CONSOLE 0x800
52 #define MM_HARD 0x1000
53 #define MM_SOFT 0x2000
54 #define MM_FIRM 0x4000
55 #define MM_APPL 0x8000
56 #define MM_UTIL 0x10000
57 #define MM_OPSYS 0x20000
59 /* Most commonly used combinations */
60 #define MM_SVCMD MM_UTIL|MM_SOFT
67 int pfmt(FILE *, long, const char *, ...);
68 int lfmt(FILE *, long, const char *, ...);
69 int vpfmt(FILE *, long, const char *, va_list);
70 int vlfmt(FILE *, long, const char *, va_list);
71 const char *setcat(const char *);
72 int setlabel(const char *);
73 int addsev(int, const char *);
75 #define DB_NAME_LEN 15