Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/priocntl.h
          +++ new/usr/src/uts/common/sys/priocntl.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   30  /*        All Rights Reserved   */
  29   31  
  30   32  #ifndef _SYS_PRIOCNTL_H
  31   33  #define _SYS_PRIOCNTL_H
  32   34  
  33      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* from SVR4 1.6 */
  34      -
  35   35  #include <sys/types.h>
  36   36  #include <sys/procset.h>
  37   37  
  38   38  #ifdef  __cplusplus
  39   39  extern "C" {
  40   40  #endif
  41   41  
  42   42  #define PC_VERSION      1       /* First version of priocntl */
  43   43  
  44      -#ifdef __STDC__
  45   44  extern long     priocntl(idtype_t, id_t, int, ...);
  46   45  extern long     priocntlset(procset_t *, int, ...);
  47      -#else
  48      -extern long     priocntl(), priocntlset();
  49      -#endif  /* __STDC__ */
  50   46  
  51   47  /*
  52   48   * The following are the possible values of the command
  53   49   * argument for the priocntl system call.
  54   50   */
  55   51  
  56   52  #define PC_GETCID       0       /* Get class ID */
  57   53  #define PC_GETCLINFO    1       /* Get info about a configured class */
  58   54  #define PC_SETPARMS     2       /* Set scheduling parameters */
  59   55  #define PC_GETPARMS     3       /* Get scheduling parameters */
↓ open down ↓ 121 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX