priocntl.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 2001-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PRIOCNTL_H
#define _PRIOCNTL_H
#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.3 */
#ifdef __cplusplus
extern "C" {
#endif
#define BASENMSZ 16
/*
* The command string for the sub-command must be big enough for the
* path, the class specific options, and plenty of space for arguments.
*/
#define SUBCMDSZ 512
#define BADPID (-2)
extern void fatalerr();
extern id_t clname2cid(char *);
extern int getmyidstr(idtype_t, char *);
extern void free_pidlist(pid_t *);
extern long str2num(char *, long, long);
extern void itoa(long, char *);
/*
* supported by SunOS (which will support the POSIX definition). Priocntl
* uses the hrt routine _hrtnewres because it coincidentally does the
* right thing. These defines allow this routine to be locally included
* in priocntl (rather than exported in libc). This should be improved in
* the long term.
*/
#define HRT_TRUNC 0 /* Round results down. */
/* part >= .5 otherwise round down). */
/*
* Structure used to represent a high-resolution time-of-day
* or interval.
*/
typedef struct hrtimer {
long hrt_rem; /* A value less than a second. */
} hrtimer_t;
#ifdef __cplusplus
}
#endif
#endif /* _PRIOCNTL_H */