Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/sched.h
          +++ new/usr/src/head/sched.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  #ifndef _SCHED_H
  28   30  #define _SCHED_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  #include <sys/types.h>
  33   33  #include <time.h>
  34   34  
  35   35  #ifdef  __cplusplus
  36   36  extern "C" {
  37   37  #endif
  38   38  
  39   39  struct sched_param {
  40   40          int     sched_priority; /* scheduling priority */
  41   41          int     sched_pad[8];
↓ open down ↓ 7 lines elided ↑ open up ↑
  49   49  #define SCHED_RR        2       /* real-time class: round-robin */
  50   50  #define SCHED_SYS       3       /* system scheduling class */
  51   51  #define SCHED_IA        4       /* interactive time-sharing class */
  52   52  #define SCHED_FSS       5       /* fair-share scheduling class */
  53   53  #define SCHED_FX        6       /* fixed-priority scheduling class */
  54   54  #define _SCHED_NEXT     7       /* first unassigned policy number */
  55   55  
  56   56  /*
  57   57   * function prototypes
  58   58   */
  59      -#if     defined(__STDC__)
  60   59  int     sched_getparam(pid_t, struct sched_param *);
  61   60  int     sched_setparam(pid_t, const struct sched_param *);
  62   61  int     sched_getscheduler(pid_t);
  63   62  int     sched_setscheduler(pid_t, int, const struct sched_param *);
  64   63  int     sched_yield(void);
  65   64  int     sched_get_priority_max(int);
  66   65  int     sched_get_priority_min(int);
  67   66  int     sched_rr_get_interval(pid_t, struct timespec *);
  68      -#else
  69      -int     sched_getparam();
  70      -int     sched_setparam();
  71      -int     sched_getscheduler();
  72      -int     sched_setscheduler();
  73      -int     sched_yield();
  74      -int     sched_get_priority_max();
  75      -int     sched_get_priority_min();
  76      -int     sched_rr_get_interval();
  77      -#endif  /* __STDC__ */
  78   67  
  79   68  #ifdef  __cplusplus
  80   69  }
  81   70  #endif
  82   71  
  83   72  #endif  /* _SCHED_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX