10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 50Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 60Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 70Sstevel@tonic-gate * with the License. 80Sstevel@tonic-gate * 90Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 100Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 110Sstevel@tonic-gate * See the License for the specific language governing permissions 120Sstevel@tonic-gate * and limitations under the License. 130Sstevel@tonic-gate * 140Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 150Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 160Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 170Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 180Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 190Sstevel@tonic-gate * 200Sstevel@tonic-gate * CDDL HEADER END 210Sstevel@tonic-gate */ 22*728Sceastha /* 23*728Sceastha * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*728Sceastha * Use is subject to license terms. 25*728Sceastha */ 26*728Sceastha 270Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 280Sstevel@tonic-gate /* All Rights Reserved */ 290Sstevel@tonic-gate 30*728Sceastha #ifndef LOG_H 31*728Sceastha #define LOG_H 320Sstevel@tonic-gate 33*728Sceastha #pragma ident "%Z%%M% %I% %E% SMI" 340Sstevel@tonic-gate 350Sstevel@tonic-gate #define MCHAR 'M' /* Indicates master */ 360Sstevel@tonic-gate #define SCHAR 'S' /* Indicates slave */ 370Sstevel@tonic-gate 380Sstevel@tonic-gate #define CLOSED (-1) /* Shows log file is closed. */ 390Sstevel@tonic-gate #define EOR "\n" /* Unity end of record character. */ 400Sstevel@tonic-gate #define LOGSIZE 1024 /* Maximum size of a log record. */ 410Sstevel@tonic-gate #define MODSTR 50 /* Value to use for moderate sized strings. */ 420Sstevel@tonic-gate #define COMPLETE 'C' /* Value to use for completed transfer. */ 430Sstevel@tonic-gate #define PARTIAL 'P' /* Value to use for partial transfer. */ 440Sstevel@tonic-gate #define NOTAVAIL "\"\"" /* String to show that a field is not 450Sstevel@tonic-gate * available. */ 460Sstevel@tonic-gate #define NOTIME (-1) /* Value to be used when no times have been 470Sstevel@tonic-gate * recorded. */ 480Sstevel@tonic-gate #ifndef STATIC_FUNC 490Sstevel@tonic-gate #define STATIC_FUNC static /* For debugging may not want static 500Sstevel@tonic-gate * functions. */ 510Sstevel@tonic-gate #endif 520Sstevel@tonic-gate 530Sstevel@tonic-gate /* Debug levels: */ 540Sstevel@tonic-gate 550Sstevel@tonic-gate #define DB_IMPORTANT 1 /* This message is printed if debugging is 560Sstevel@tonic-gate * turned on at all. Thus, it should be 570Sstevel@tonic-gate * used for the most important messages. */ 580Sstevel@tonic-gate #define DB_TRACE 4 /* This level is useful in tracing program 590Sstevel@tonic-gate * actions. */ 600Sstevel@tonic-gate #define DB_DETAIL 9 /* This level will only be printed when 610Sstevel@tonic-gate * great detail is needed. */ 620Sstevel@tonic-gate 630Sstevel@tonic-gate extern void pfConnected(); /* perfstat.c */ 640Sstevel@tonic-gate extern void pfEndFile(); /* perfstat.c */ 650Sstevel@tonic-gate extern void pfEndXfer(); /* perfstat.c */ 660Sstevel@tonic-gate extern void pfFindFile(); /* perfstat.c */ 670Sstevel@tonic-gate extern void pfFound(); /* perfstat.c */ 680Sstevel@tonic-gate extern void pfInit(); /* perfstat.c */ 690Sstevel@tonic-gate extern void pfStrtConn(); /* perfstat.c */ 700Sstevel@tonic-gate extern void pfStrtXfer(); /* perfstat.c */ 710Sstevel@tonic-gate extern void pfPtcl(); /* perfstat.c */ 720Sstevel@tonic-gate extern void acConnected(); /* account.c */ 730Sstevel@tonic-gate extern void acDojob(); /* account.c */ 740Sstevel@tonic-gate extern void acInc(); /* account.c */ 750Sstevel@tonic-gate extern void acInit(); /* account.c */ 760Sstevel@tonic-gate extern void acEnd(); /* account.c */ 770Sstevel@tonic-gate extern void acRexe(); /* account.c */ 780Sstevel@tonic-gate extern void acEndexe(); /* account.c */ 790Sstevel@tonic-gate extern void scInit(); /* security.c */ 800Sstevel@tonic-gate extern void scReqsys(); /* security.c */ 810Sstevel@tonic-gate extern void scRequser(); /* security.c */ 820Sstevel@tonic-gate extern void scDest(); /* security.c */ 830Sstevel@tonic-gate extern void scSrc(); /* security.c */ 840Sstevel@tonic-gate extern void scStime(); /* security.c */ 850Sstevel@tonic-gate extern void scEtime(); /* security.c */ 860Sstevel@tonic-gate extern void scWrite(); /* security.c */ 870Sstevel@tonic-gate extern void scRexe(); /* security.c */ 880Sstevel@tonic-gate extern void scWlog(); /* security.c */ 890Sstevel@tonic-gate extern char * scMtime(); /* security.c */ 900Sstevel@tonic-gate extern char * scOwn(); /* security.c */ 910Sstevel@tonic-gate extern char * scSize(); /* security.c */ 920Sstevel@tonic-gate extern void copyText(); /* perfstat.c */ 930Sstevel@tonic-gate extern void writeLog(); /* perfstat.c */ 94*728Sceastha extern int openLog(); /* perfstat.c */ 950Sstevel@tonic-gate extern void closeLog(); /* perfstat.c */ 960Sstevel@tonic-gate extern char * gmt(); /* perfstat.c */ 970Sstevel@tonic-gate extern time_t cpucycle(); /* account.c */ 98*728Sceastha 99*728Sceastha #endif /* LOG_H */ 100