xref: /titanic_52/usr/src/cmd/bnu/log.h (revision 1cb6af97c6f66f456d4f726ef056e1ebc0f73305)
1 /*
2  * CDDL HEADER START
3  *
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
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ident	"%Z%%M%	%I%	%E% SMI"	/* from SVR4 bnu:log.h 1.1 */
27 
28 #define	MCHAR		'M'	/* Indicates master */
29 #define SCHAR		'S'	/* Indicates slave */
30 
31 #define	CLOSED		(-1)	/* Shows log file is closed. */
32 #define	EOR		"\n"	/* Unity end of record character. */
33 #define	LOGSIZE		1024	/* Maximum size of a log record. */
34 #define	MODSTR		50	/* Value to use for moderate sized strings. */
35 #define	COMPLETE	'C'	/* Value to use for completed transfer. */
36 #define	PARTIAL		'P'	/* Value to use for partial transfer. */
37 #define	NOTAVAIL	"\"\""	/* String to show that a field is not
38 				 *   available. */
39 #define	NOTIME		(-1)	/* Value to be used when no times have been
40 				 *   recorded. */
41 #ifndef STATIC_FUNC
42 #define	STATIC_FUNC	static	/* For debugging may not want static
43 				 *   functions. */
44 #endif
45 
46 /* Debug levels: */
47 
48 #define	DB_IMPORTANT	1	/* This message is printed if debugging is
49 				 *   turned on at all.  Thus, it should be
50 				 *   used for the most important messages. */
51 #define DB_TRACE	4	/* This level is useful in tracing program
52 				 *   actions. */
53 #define	DB_DETAIL	9	/* This level will only be printed when
54 				 *   great detail is needed. */
55 
56 extern void pfConnected();		/* perfstat.c */
57 extern void pfEndFile();		/* perfstat.c */
58 extern void pfEndXfer();		/* perfstat.c */
59 extern void pfFindFile();		/* perfstat.c */
60 extern void pfFound();			/* perfstat.c */
61 extern void pfInit();			/* perfstat.c */
62 extern void pfStrtConn();		/* perfstat.c */
63 extern void pfStrtXfer();		/* perfstat.c */
64 extern void pfPtcl();			/* perfstat.c */
65 extern void acConnected();		/* account.c */
66 extern void acDojob();			/* account.c */
67 extern void acInc();			/* account.c */
68 extern void acInit();			/* account.c */
69 extern void acEnd();			/* account.c */
70 extern void acRexe();			/* account.c */
71 extern void acEndexe();			/* account.c */
72 extern void scInit();			/* security.c */
73 extern void scReqsys();			/* security.c */
74 extern void scRequser();		/* security.c */
75 extern void scDest();			/* security.c */
76 extern void scSrc();			/* security.c */
77 extern void scStime();			/* security.c */
78 extern void scEtime();			/* security.c */
79 extern void scWrite();			/* security.c */
80 extern void scRexe();			/* security.c */
81 extern void scWlog();			/* security.c */
82 extern char * scMtime();		/* security.c */
83 extern char * scOwn();			/* security.c */
84 extern char * scSize();			/* security.c */
85 extern void copyText();			/* perfstat.c */
86 extern void writeLog();			/* perfstat.c */
87 extern openLog();			/* perfstat.c */
88 extern void closeLog();			/* perfstat.c */
89 extern char *	gmt();			/* perfstat.c */
90 extern time_t  	cpucycle();		/* account.c */
91