priocntl.h revision 0209230bf1261579beab4f55226bb509e6b850cb
/*
* 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 (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PRIOCNTL_H
#define _SYS_PRIOCNTL_H
#pragma ident "%Z%%M% %I% %E% SMI" /* from SVR4 1.6 */
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __STDC__
extern long priocntlset(procset_t *, int, ...);
#else
extern long priocntl(), priocntlset();
#endif /* __STDC__ */
/*
* The following are the possible values of the command
* argument for the priocntl system call.
*/
#define PC_GETCID 0 /* Get class ID */
/* dispadmin(1M), not for general use) */
/* posix.4 scheduling, not for general use */
#define PC_CLNULL -1
#define PC_CLNMSZ 16
#define PC_CLINFOSZ (32 / sizeof (int))
#define PC_CLPARMSZ (32 / sizeof (int))
#define PC_GETNICE 0
#define PC_SETNICE 1
typedef struct pcinfo {
} pcinfo_t;
typedef struct pcparms {
} pcparms_t;
typedef struct pcnice {
int pc_val; /* nice value */
int pc_op; /* type of operation, set or get */
} pcnice_t;
/*
* The following is used by the priocntl(2) varargs interface (command
* codes: PC_SETXPARMS and PC_GETXPARMS).
*/
#define PC_KY_NULL 0 /* terminates the (key, value) pair chain */
typedef struct pc_vaparm {
int pc_key; /* describing key */
} pc_vaparm_t;
typedef struct pc_vaparms {
} pc_vaparms_t;
#if defined(_SYSCALL32) && \
/*
* These structures are needed by the 64-bit kernel on certain architectures
* to translate pc_vaparms_t/pc_vaparm_t data structures from 32-bit userland.
*/
#pragma pack(4)
typedef struct {
#pragma pack()
typedef struct {
#endif /* _SYSCALL32 && ... */
/*
* The following is used by libc for posix.4
* scheduler interfaces and is not for general use.
*/
typedef struct pcpri {
} pcpri_t;
/*
* The following is used by the dispadmin(1M) command for
* scheduler administration and is not for general use.
*/
#ifdef _SYSCALL32
/* Data structure for ILP32 clients */
typedef struct pcadmin32 {
} pcadmin32_t;
#endif /* _SYSCALL32 */
typedef struct pcadmin {
} pcadmin_t;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PRIOCNTL_H */