/*
* 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 */
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* acctprc1 [ctmpfile]
* reads std. input (acct.h format), adds login names
*/
#include "acctdef.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
} * ur;
int ssize;
} * sr;
void readctmp(char *);
int aread(int);
char *uidtonam();
int
{
unsigned long mem;
int aread();
exit(3);
}
exit(3);
}
while (--argc > 0) {
if (**++argv == '-')
switch(*++*argv) {
}
else {
}
}
exit(1);
else
continue;
/*
*/
etime = 1;
exit(1);
}
if (stime)
else
printf("%ld\t%.*s\t%lu\t%lu\t%u\n",
}
exit(0);
}
/*
* return ptr to name corresponding to uid
* try ctmp first, then use uidtonam (internal list or passwd file)
*/
char *
{
char *p;
return (p);
}
/*
* read ctmp file, build up urec-srec data structures for
* later use by getnamc
*/
void
{
int i = 0, j = 0, k=0;
return;
}
exit(2);
}
}
}
exit(2);
}
}
sp++;
}
}
/*
* using urec-srec data (if any), make best guess at login name
* corresponding to uid, return ptr to the name.
* must match on tty; use start time to help guess
* for any urec having same uid as uid, search array of associated
* srecs for those having same tty
* if start time of process is within range of session, that's it
* if none can be found within range, give it to person of same uid
* who last logged off on that terminal
*/
char *
{
long latest;
char *guess;
latest = 0;
}
}
}
return(guess);
}
int
{
int ret;
if (ver != 2) {
/* copy SVR3 acct struct to SVR4 acct struct */
}
} else
}