Print this page
remove support for non-ANSI compilation


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*


  23  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 #ifndef _SYS_PRIOCNTL_H
  31 #define _SYS_PRIOCNTL_H
  32 
  33 #pragma ident   "%Z%%M% %I%     %E% SMI"        /* from SVR4 1.6 */
  34 
  35 #include <sys/types.h>
  36 #include <sys/procset.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #define PC_VERSION      1       /* First version of priocntl */
  43 
  44 #ifdef __STDC__
  45 extern long     priocntl(idtype_t, id_t, int, ...);
  46 extern long     priocntlset(procset_t *, int, ...);
  47 #else
  48 extern long     priocntl(), priocntlset();
  49 #endif  /* __STDC__ */
  50 
  51 /*
  52  * The following are the possible values of the command
  53  * argument for the priocntl system call.
  54  */
  55 
  56 #define PC_GETCID       0       /* Get class ID */
  57 #define PC_GETCLINFO    1       /* Get info about a configured class */
  58 #define PC_SETPARMS     2       /* Set scheduling parameters */
  59 #define PC_GETPARMS     3       /* Get scheduling parameters */
  60 #define PC_ADMIN        4       /* Scheduler administration (used by */
  61                                 /* dispadmin(1M), not for general use) */
  62 #define PC_GETPRIRANGE  5       /* Get priority range for a class */
  63                                 /* posix.4 scheduling, not for general use */
  64 #define PC_DONICE       6       /* Set or get nice value */
  65 #define PC_SETXPARMS    7       /* Set extended scheduling parameters */
  66 #define PC_GETXPARMS    8       /* Get extended scheduling parameters */
  67 #define PC_SETDFLCL     9       /* Set default class, not for general use */
  68 #define PC_GETDFLCL     10      /* Get default class, not for general use */
  69 #define PC_DOPRIO       11      /* Set or get priority, not for general use */




   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24  *
  25  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  30 /*        All Rights Reserved   */
  31 
  32 #ifndef _SYS_PRIOCNTL_H
  33 #define _SYS_PRIOCNTL_H
  34 


  35 #include <sys/types.h>
  36 #include <sys/procset.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #define PC_VERSION      1       /* First version of priocntl */
  43 

  44 extern long     priocntl(idtype_t, id_t, int, ...);
  45 extern long     priocntlset(procset_t *, int, ...);



  46 
  47 /*
  48  * The following are the possible values of the command
  49  * argument for the priocntl system call.
  50  */
  51 
  52 #define PC_GETCID       0       /* Get class ID */
  53 #define PC_GETCLINFO    1       /* Get info about a configured class */
  54 #define PC_SETPARMS     2       /* Set scheduling parameters */
  55 #define PC_GETPARMS     3       /* Get scheduling parameters */
  56 #define PC_ADMIN        4       /* Scheduler administration (used by */
  57                                 /* dispadmin(1M), not for general use) */
  58 #define PC_GETPRIRANGE  5       /* Get priority range for a class */
  59                                 /* posix.4 scheduling, not for general use */
  60 #define PC_DONICE       6       /* Set or get nice value */
  61 #define PC_SETXPARMS    7       /* Set extended scheduling parameters */
  62 #define PC_GETXPARMS    8       /* Get extended scheduling parameters */
  63 #define PC_SETDFLCL     9       /* Set default class, not for general use */
  64 #define PC_GETDFLCL     10      /* Get default class, not for general use */
  65 #define PC_DOPRIO       11      /* Set or get priority, not for general use */