17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 57c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate * with the License. 87c478bd9Sstevel@tonic-gate * 97c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate * and limitations under the License. 137c478bd9Sstevel@tonic-gate * 147c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate * 207c478bd9Sstevel@tonic-gate * CDDL HEADER END 217c478bd9Sstevel@tonic-gate */ 22*462be471Sceastha /* 23*462be471Sceastha * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*462be471Sceastha * Use is subject to license terms. 25*462be471Sceastha */ 26*462be471Sceastha 277c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 287c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 297c478bd9Sstevel@tonic-gate 30*462be471Sceastha #ifndef LOG_H 31*462be471Sceastha #define LOG_H 327c478bd9Sstevel@tonic-gate 33*462be471Sceastha #pragma ident "%Z%%M% %I% %E% SMI" 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate #define MCHAR 'M' /* Indicates master */ 367c478bd9Sstevel@tonic-gate #define SCHAR 'S' /* Indicates slave */ 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate #define CLOSED (-1) /* Shows log file is closed. */ 397c478bd9Sstevel@tonic-gate #define EOR "\n" /* Unity end of record character. */ 407c478bd9Sstevel@tonic-gate #define LOGSIZE 1024 /* Maximum size of a log record. */ 417c478bd9Sstevel@tonic-gate #define MODSTR 50 /* Value to use for moderate sized strings. */ 427c478bd9Sstevel@tonic-gate #define COMPLETE 'C' /* Value to use for completed transfer. */ 437c478bd9Sstevel@tonic-gate #define PARTIAL 'P' /* Value to use for partial transfer. */ 447c478bd9Sstevel@tonic-gate #define NOTAVAIL "\"\"" /* String to show that a field is not 457c478bd9Sstevel@tonic-gate * available. */ 467c478bd9Sstevel@tonic-gate #define NOTIME (-1) /* Value to be used when no times have been 477c478bd9Sstevel@tonic-gate * recorded. */ 487c478bd9Sstevel@tonic-gate #ifndef STATIC_FUNC 497c478bd9Sstevel@tonic-gate #define STATIC_FUNC static /* For debugging may not want static 507c478bd9Sstevel@tonic-gate * functions. */ 517c478bd9Sstevel@tonic-gate #endif 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate /* Debug levels: */ 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate #define DB_IMPORTANT 1 /* This message is printed if debugging is 567c478bd9Sstevel@tonic-gate * turned on at all. Thus, it should be 577c478bd9Sstevel@tonic-gate * used for the most important messages. */ 587c478bd9Sstevel@tonic-gate #define DB_TRACE 4 /* This level is useful in tracing program 597c478bd9Sstevel@tonic-gate * actions. */ 607c478bd9Sstevel@tonic-gate #define DB_DETAIL 9 /* This level will only be printed when 617c478bd9Sstevel@tonic-gate * great detail is needed. */ 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gate extern void pfConnected(); /* perfstat.c */ 647c478bd9Sstevel@tonic-gate extern void pfEndFile(); /* perfstat.c */ 657c478bd9Sstevel@tonic-gate extern void pfEndXfer(); /* perfstat.c */ 667c478bd9Sstevel@tonic-gate extern void pfFindFile(); /* perfstat.c */ 677c478bd9Sstevel@tonic-gate extern void pfFound(); /* perfstat.c */ 687c478bd9Sstevel@tonic-gate extern void pfInit(); /* perfstat.c */ 697c478bd9Sstevel@tonic-gate extern void pfStrtConn(); /* perfstat.c */ 707c478bd9Sstevel@tonic-gate extern void pfStrtXfer(); /* perfstat.c */ 717c478bd9Sstevel@tonic-gate extern void pfPtcl(); /* perfstat.c */ 727c478bd9Sstevel@tonic-gate extern void acConnected(); /* account.c */ 737c478bd9Sstevel@tonic-gate extern void acDojob(); /* account.c */ 747c478bd9Sstevel@tonic-gate extern void acInc(); /* account.c */ 757c478bd9Sstevel@tonic-gate extern void acInit(); /* account.c */ 767c478bd9Sstevel@tonic-gate extern void acEnd(); /* account.c */ 777c478bd9Sstevel@tonic-gate extern void acRexe(); /* account.c */ 787c478bd9Sstevel@tonic-gate extern void acEndexe(); /* account.c */ 797c478bd9Sstevel@tonic-gate extern void scInit(); /* security.c */ 807c478bd9Sstevel@tonic-gate extern void scReqsys(); /* security.c */ 817c478bd9Sstevel@tonic-gate extern void scRequser(); /* security.c */ 827c478bd9Sstevel@tonic-gate extern void scDest(); /* security.c */ 837c478bd9Sstevel@tonic-gate extern void scSrc(); /* security.c */ 847c478bd9Sstevel@tonic-gate extern void scStime(); /* security.c */ 857c478bd9Sstevel@tonic-gate extern void scEtime(); /* security.c */ 867c478bd9Sstevel@tonic-gate extern void scWrite(); /* security.c */ 877c478bd9Sstevel@tonic-gate extern void scRexe(); /* security.c */ 887c478bd9Sstevel@tonic-gate extern void scWlog(); /* security.c */ 897c478bd9Sstevel@tonic-gate extern char * scMtime(); /* security.c */ 907c478bd9Sstevel@tonic-gate extern char * scOwn(); /* security.c */ 917c478bd9Sstevel@tonic-gate extern char * scSize(); /* security.c */ 927c478bd9Sstevel@tonic-gate extern void copyText(); /* perfstat.c */ 937c478bd9Sstevel@tonic-gate extern void writeLog(); /* perfstat.c */ 94*462be471Sceastha extern int openLog(); /* perfstat.c */ 957c478bd9Sstevel@tonic-gate extern void closeLog(); /* perfstat.c */ 967c478bd9Sstevel@tonic-gate extern char * gmt(); /* perfstat.c */ 977c478bd9Sstevel@tonic-gate extern time_t cpucycle(); /* account.c */ 98*462be471Sceastha 99*462be471Sceastha #endif /* LOG_H */ 100