/*
* 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 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ifndef _SYS_PRIOCNTL_H
#define _SYS_PRIOCNTL_H
#ifdef __cplusplus
extern "C" {
#endif
extern long priocntlset(procset_t *, int, ...);
/*
* The following are the possible values of the command
* argument for the priocntl system call.
*/
/* dispadmin(1M), not for general use) */
/* posix.4 scheduling, not for general use */
#define PC_GETNICE 0
#define PC_GETPRIO 0
typedef struct pcinfo {
} pcinfo_t;
typedef struct pcparms {
} pcparms_t;
typedef struct pcnice {
} pcnice_t;
typedef struct pcprio {
} pcprio_t;
/*
* The following is used by the priocntl(2) varargs interface (command
* codes: PC_SETXPARMS and PC_GETXPARMS).
*/
typedef struct pc_vaparm {
} 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 */