xref: /illumos-gate/usr/src/cmd/bnu/log.h (revision 7c478bd9)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23*7c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
24*7c478bd9Sstevel@tonic-gate 
25*7c478bd9Sstevel@tonic-gate 
26*7c478bd9Sstevel@tonic-gate #ident	"%Z%%M%	%I%	%E% SMI"	/* from SVR4 bnu:log.h 1.1 */
27*7c478bd9Sstevel@tonic-gate 
28*7c478bd9Sstevel@tonic-gate #define	MCHAR		'M'	/* Indicates master */
29*7c478bd9Sstevel@tonic-gate #define SCHAR		'S'	/* Indicates slave */
30*7c478bd9Sstevel@tonic-gate 
31*7c478bd9Sstevel@tonic-gate #define	CLOSED		(-1)	/* Shows log file is closed. */
32*7c478bd9Sstevel@tonic-gate #define	EOR		"\n"	/* Unity end of record character. */
33*7c478bd9Sstevel@tonic-gate #define	LOGSIZE		1024	/* Maximum size of a log record. */
34*7c478bd9Sstevel@tonic-gate #define	MODSTR		50	/* Value to use for moderate sized strings. */
35*7c478bd9Sstevel@tonic-gate #define	COMPLETE	'C'	/* Value to use for completed transfer. */
36*7c478bd9Sstevel@tonic-gate #define	PARTIAL		'P'	/* Value to use for partial transfer. */
37*7c478bd9Sstevel@tonic-gate #define	NOTAVAIL	"\"\""	/* String to show that a field is not
38*7c478bd9Sstevel@tonic-gate 				 *   available. */
39*7c478bd9Sstevel@tonic-gate #define	NOTIME		(-1)	/* Value to be used when no times have been
40*7c478bd9Sstevel@tonic-gate 				 *   recorded. */
41*7c478bd9Sstevel@tonic-gate #ifndef STATIC_FUNC
42*7c478bd9Sstevel@tonic-gate #define	STATIC_FUNC	static	/* For debugging may not want static
43*7c478bd9Sstevel@tonic-gate 				 *   functions. */
44*7c478bd9Sstevel@tonic-gate #endif
45*7c478bd9Sstevel@tonic-gate 
46*7c478bd9Sstevel@tonic-gate /* Debug levels: */
47*7c478bd9Sstevel@tonic-gate 
48*7c478bd9Sstevel@tonic-gate #define	DB_IMPORTANT	1	/* This message is printed if debugging is
49*7c478bd9Sstevel@tonic-gate 				 *   turned on at all.  Thus, it should be
50*7c478bd9Sstevel@tonic-gate 				 *   used for the most important messages. */
51*7c478bd9Sstevel@tonic-gate #define DB_TRACE	4	/* This level is useful in tracing program
52*7c478bd9Sstevel@tonic-gate 				 *   actions. */
53*7c478bd9Sstevel@tonic-gate #define	DB_DETAIL	9	/* This level will only be printed when
54*7c478bd9Sstevel@tonic-gate 				 *   great detail is needed. */
55*7c478bd9Sstevel@tonic-gate 
56*7c478bd9Sstevel@tonic-gate extern void pfConnected();		/* perfstat.c */
57*7c478bd9Sstevel@tonic-gate extern void pfEndFile();		/* perfstat.c */
58*7c478bd9Sstevel@tonic-gate extern void pfEndXfer();		/* perfstat.c */
59*7c478bd9Sstevel@tonic-gate extern void pfFindFile();		/* perfstat.c */
60*7c478bd9Sstevel@tonic-gate extern void pfFound();			/* perfstat.c */
61*7c478bd9Sstevel@tonic-gate extern void pfInit();			/* perfstat.c */
62*7c478bd9Sstevel@tonic-gate extern void pfStrtConn();		/* perfstat.c */
63*7c478bd9Sstevel@tonic-gate extern void pfStrtXfer();		/* perfstat.c */
64*7c478bd9Sstevel@tonic-gate extern void pfPtcl();			/* perfstat.c */
65*7c478bd9Sstevel@tonic-gate extern void acConnected();		/* account.c */
66*7c478bd9Sstevel@tonic-gate extern void acDojob();			/* account.c */
67*7c478bd9Sstevel@tonic-gate extern void acInc();			/* account.c */
68*7c478bd9Sstevel@tonic-gate extern void acInit();			/* account.c */
69*7c478bd9Sstevel@tonic-gate extern void acEnd();			/* account.c */
70*7c478bd9Sstevel@tonic-gate extern void acRexe();			/* account.c */
71*7c478bd9Sstevel@tonic-gate extern void acEndexe();			/* account.c */
72*7c478bd9Sstevel@tonic-gate extern void scInit();			/* security.c */
73*7c478bd9Sstevel@tonic-gate extern void scReqsys();			/* security.c */
74*7c478bd9Sstevel@tonic-gate extern void scRequser();		/* security.c */
75*7c478bd9Sstevel@tonic-gate extern void scDest();			/* security.c */
76*7c478bd9Sstevel@tonic-gate extern void scSrc();			/* security.c */
77*7c478bd9Sstevel@tonic-gate extern void scStime();			/* security.c */
78*7c478bd9Sstevel@tonic-gate extern void scEtime();			/* security.c */
79*7c478bd9Sstevel@tonic-gate extern void scWrite();			/* security.c */
80*7c478bd9Sstevel@tonic-gate extern void scRexe();			/* security.c */
81*7c478bd9Sstevel@tonic-gate extern void scWlog();			/* security.c */
82*7c478bd9Sstevel@tonic-gate extern char * scMtime();		/* security.c */
83*7c478bd9Sstevel@tonic-gate extern char * scOwn();			/* security.c */
84*7c478bd9Sstevel@tonic-gate extern char * scSize();			/* security.c */
85*7c478bd9Sstevel@tonic-gate extern void copyText();			/* perfstat.c */
86*7c478bd9Sstevel@tonic-gate extern void writeLog();			/* perfstat.c */
87*7c478bd9Sstevel@tonic-gate extern openLog();			/* perfstat.c */
88*7c478bd9Sstevel@tonic-gate extern void closeLog();			/* perfstat.c */
89*7c478bd9Sstevel@tonic-gate extern char *	gmt();			/* perfstat.c */
90*7c478bd9Sstevel@tonic-gate extern time_t  	cpucycle();		/* account.c */
91