1/*
2 * CDDL HEADER START
3 *
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
7 * with the License.
8 *
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.
13 *
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]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright (c) 2001 by Sun Microsystems, Inc.
24 * All rights reserved.
25 */
26
27#ifndef	_RDLIST_H
28#define	_RDLIST_H
29
30#pragma ident	"%Z%%M%	%I%	%E% SMI"
31
32#include <sys/processor.h>
33#include <sys/types.h>
34
35#include "rdimpl.h"
36#include <stdio.h>
37#include <stdlib.h>
38#include <sys/time.h>
39#include <strings.h>
40#include <limits.h>
41#include <unistd.h>
42#include <errno.h>
43#include <sys/stat.h>
44#include <fcntl.h>
45#include <time.h>
46#include "rdimpl.h"
47#include "rdprot.h"
48#include "rdutil.h"
49
50#define	LTDB_TIMESTAMP "TIMESTAMP"
51#define	LTDB_DECAYTIME 3600
52/* The current DB file version */
53#define	LTDB_VERSION_KEY  "VERSION"
54#define	LTDB_VERSION	100
55
56#ifdef	__cplusplus
57extern "C" {
58#endif
59
60extern void list_print(list_t *list, int xid);
61extern int list_write(int listt, int Po);
62extern int list_store();
63extern int list_restore();
64
65extern list_t   users;		/* list of users */
66extern list_t   projects;	/* list of projects */
67extern list_t   processes;	/* list of processes */
68extern list_t   lwps;
69extern char 	errmsg[];
70extern void	prtelement(FILE *fp, id_info_t *id);
71extern lwp_info_t *
72	list_add_lwp(list_t *list, pid_t pid, id_t lwpid);
73extern void 	err_exit();
74extern sys_info_t sys_info;
75
76#ifdef	__cplusplus
77}
78#endif
79
80#endif	/* _RDLIST_H */
81