4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1999-2000 by Sun Microsystems, Inc.
24 * All rights reserved.
30 #pragma ident "%Z%%M% %I% %E% SMI"
38 #include <sys/fcntl.h>
39 #include <sys/mkdev.h>
40 #include <sys/param.h>
42 #include <sys/types.h>
58 #define fldsiz(str, fld) (sizeof (((struct str *)0)->fld))
61 #define NACCT (BUF_MAX / sizeof (struct acct))
62 #define BUF_SIZ (NACCT * sizeof (struct acct))
64 #define EXACCT_CREATOR "SunOS"
67 * utmpx defines wider fields for user and line. For compatibility of output,
68 * we are limiting these to the old maximums in utmp. Define UTMPX_NAMELEN
69 * to use the full lengths.
72 /* XXX - utmp - fix name length */
73 #define NMAX (_POSIX_LOGIN_NAME_MAX - 1)
75 #else /* UTMPX_NAMELEN */
76 static struct utmpx dummy
;
77 #define NMAX (sizeof (dummy.ut_user))
78 #define LMAX (sizeof (dummy.ut_line))
79 #endif /* UTMPX_NAMELEN */
81 extern char *getdev(dev_t
);
82 extern char *getname(uid_t
);
83 extern char *flagbits(int);
85 extern int lc_pacct(char *, int, char **, int);
86 extern int lc_exacct(char *, int, char **, int);
92 #endif /* _LASTCOMM_H */