Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/pset.h
          +++ new/usr/src/uts/common/sys/pset.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  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 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  #ifndef _SYS_PSET_H
  27   29  #define _SYS_PSET_H
  28   30  
  29   31  #ifdef  __cplusplus
  30   32  extern "C" {
  31   33  #endif
↓ open down ↓ 12 lines elided ↑ open up ↑
  44   46  #define PS_MYID         -3
  45   47  #define PS_SOFT         -4
  46   48  #define PS_HARD         -5
  47   49  #define PS_QUERY_TYPE   -6
  48   50  
  49   51  /* types of processor sets */
  50   52  #define PS_SYSTEM       1
  51   53  #define PS_PRIVATE      2
  52   54  
  53   55  #ifndef _KERNEL
  54      -#ifdef  __STDC__
  55   56  
  56   57  extern int      pset_create(psetid_t *);
  57   58  extern int      pset_destroy(psetid_t);
  58   59  extern int      pset_assign(psetid_t, processorid_t, psetid_t *);
  59   60  extern int      pset_info(psetid_t, int *, uint_t *, processorid_t *);
  60   61  extern int      pset_bind(psetid_t, idtype_t, id_t, psetid_t *);
  61   62  extern int      pset_bind_lwp(psetid_t, id_t, pid_t, psetid_t *);
  62   63  extern int      pset_getloadavg(psetid_t, double [], int);
  63   64  extern int      pset_list(psetid_t *, uint_t *);
  64   65  extern int      pset_setattr(psetid_t, uint_t);
  65   66  extern int      pset_getattr(psetid_t, uint_t *);
  66   67  
  67      -#else
  68      -
  69      -extern int      pset_create();
  70      -extern int      pset_destroy();
  71      -extern int      pset_assign();
  72      -extern int      pset_info();
  73      -extern int      pset_bind();
  74      -extern int      pset_bind_lwp();
  75      -extern int      pset_getloadavg();
  76      -extern int      pset_list();
  77      -extern int      pset_setattr();
  78      -extern int      pset_getattr();
  79      -
  80      -#endif  /* __STDC__ */
  81   68  #endif  /* ! _KERNEL */
  82   69  
  83   70  #endif  /* !defined(_ASM) */
  84   71  
  85   72  /* system call subcodes */
  86   73  #define PSET_CREATE             0
  87   74  #define PSET_DESTROY            1
  88   75  #define PSET_ASSIGN             2
  89   76  #define PSET_INFO               3
  90   77  #define PSET_BIND               4
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX