prtable.h revision f48205be61a214698b763ff550ab9e657525104c
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PRTABLE_H
#define _PRTABLE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <limits.h>
#include <zone.h>
#include "prstat.h"
#define LWP_ACTIVE 1
typedef struct {
long *t_list;
} table_t;
typedef struct {
} name_t;
typedef struct {
} nametbl_t;
typedef struct {
char z_name[ZONENAME_MAX];
} zonename_t;
typedef struct {
} zonetbl_t;
typedef struct plwp { /* linked list of pointers to lwps */
int l_active;
} plwp_t;
extern void pwd_getname(uid_t, char *, int);
extern void add_element(table_t *, long);
extern int has_element(table_t *, long);
extern void convert_zone(zonetbl_t *);
extern int foreach_element(table_t *, void *, void (*)(long, void *));
extern void lwpid_init();
extern int lwpid_pidcheck(pid_t);
#ifdef __cplusplus
}
#endif
#endif /* _PRTABLE_H */