/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ident "%Z%%M% %I% %E% SMI" /* from SVR4 bnu:account.c 1.3 */
/*
*/
#include "uucp.h"
#include "log.h"
#include <pwd.h>
/*
* SYMBOL DEFINITIONS
*/
/*
* STRUCTURE DEFINITIONS
*/
{
name */
first hop */
hop */
};
/*
* LOCAL DATA
*/
* data. */
/*
* LOCAL FUNCTIONS
*/
/* Declarations of functions: */
STATIC_FUNC void reportJob();
/*
* Local Function: reportJob - Write Job accounting information to Log
*
* This function writes accounting information about the current job to the log
* file.
*
* Parameters:
*
* none.
*/
STATIC_FUNC void
reportJob ()
{
/* Terminate the record and write it out. */
}
/*
* EXTERNAL FUNCTIONS
*/
/*
* Function: acConnected - Report Connection Completion
*
* Parameters:
*
* remote - name of the remote system.
*
* device - the type of device being used for communicaitons.
*/
void
char * remote;
char * device;
{
}
/* Function: acDojob - Found Another Job
*
* acDojob is called when a new job has been found.
*
* Parameters:
*
* jobid - The name of the job that was found.
*
* system - Originating system's name.
*
* user - Originator's login name.
*/
void
char * jobid;
char * system;
char * user;
{
return;
reportJob();
}
break;
}
}
}
/* End recording the accounting log */
void
char status;
{
reportJob();
}
}
/* increment job size */
void
acInc()
{
}
/*
* Function: acInit - Initialize Accounting Package
*
* This function allows the accounting package to initialize its internal
* data structures. It should be called when uucico starts running on master
* or changes the role from slave to master, or uuxqt is invoked.
*
* Parameters:
*
* type: file transfer or remote exec.
*/
void
char * type;
{
/*
* Attempt to open the log file. If we can't do it, then we
* won't collect statistics.
*/
Collecting = TRUE;
}
else
Collecting = FALSE;
}
/*
* It is called when uuxqt is running
*
* jobid - jobid after X. prefix
* origsys - Originating system's name.
* origuser - Originator's login name.
* connsys - local system
* connuser - login user
* cmd - command to be execed by uuxqt
*/
void
char * jobid;
char * origsys;
char * origuser;
char * connsys;
char * connuser;
char * cmd;
{
}
/*
* It is called when the command to be execed is finished
*
* cpucycle: cpu time the command is consumed
*/
void
char status;
{
reportJob();
}
/*
* cpucycle()
*
* return cputime(utime+stime) since last time called
*/
cpucycle()
{
return(rval);
}