Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/processor.h
          +++ new/usr/src/uts/common/sys/processor.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   *      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  23   23   *        All Rights Reserved
  24   24   *
  25   25   */
  26   26  
  27   27  /*
       28 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       29 + *
  28   30   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  29   31   * Use is subject to license terms.
  30   32   */
  31   33  
  32   34  #ifndef _SYS_PROCESSOR_H
  33   35  #define _SYS_PROCESSOR_H
  34   36  
  35   37  #include <sys/types.h>
  36   38  #include <sys/procset.h>
  37   39  
↓ open down ↓ 67 lines elided ↑ open up ↑
 105  107  #define PBIND_NONE      -1      /* LWP/thread is not bound */
 106  108  #define PBIND_QUERY     -2      /* don't set, just return the binding */
 107  109  #define PBIND_HARD      -3      /* prevents offlining CPU (default) */
 108  110  #define PBIND_SOFT      -4      /* allows offlining CPU */
 109  111  #define PBIND_QUERY_TYPE        -5      /* Return binding type */
 110  112  
 111  113  /*
 112  114   * User-level system call interface prototypes
 113  115   */
 114  116  #ifndef _KERNEL
 115      -#ifdef __STDC__
 116  117  
 117  118  extern int      p_online(processorid_t processorid, int flag);
 118  119  extern int      processor_info(processorid_t processorid,
 119  120                      processor_info_t *infop);
 120  121  extern int      processor_bind(idtype_t idtype, id_t id,
 121  122                      processorid_t processorid, processorid_t *obind);
 122  123  extern processorid_t getcpuid(void);
 123  124  extern lgrpid_t gethomelgroup(void);
 124  125  
 125      -#else
 126      -
 127      -extern int      p_online();
 128      -extern int      processor_info();
 129      -extern int      processor_bind();
 130      -extern processorid_t getcpuid();
 131      -extern lgrpid_t gethomelgroup();
 132      -
 133      -#endif /* __STDC__ */
 134      -
 135  126  #else   /* _KERNEL */
 136  127  
 137  128  /*
 138  129   * Internal interface prototypes
 139  130   */
 140  131  extern int      p_online_internal(processorid_t, int, int *);
 141  132  extern int      p_online_internal_locked(processorid_t, int, int *);
 142  133  
 143  134  #endif /* !_KERNEL */
 144  135  
 145  136  #ifdef __cplusplus
 146  137  }
 147  138  #endif
 148  139  
 149  140  #endif  /* _SYS_PROCESSOR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX