Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/lgrp_user.h
          +++ new/usr/src/uts/common/sys/lgrp_user.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  #ifndef _LGRP_USER_H
  28   30  #define _LGRP_USER_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  /*
  33   33   * latency group definitions for user
  34   34   */
  35   35  
  36   36  #ifdef  __cplusplus
  37   37  extern "C" {
  38   38  #endif
  39   39  
  40   40  
  41   41  #include <sys/inttypes.h>
↓ open down ↓ 195 lines elided ↑ open up ↑
 237  237          caddr32_t       ss_children;    /* lgroup children bit masks */
 238  238          caddr32_t       ss_rsets;       /* lgroup resource set bit masks */
 239  239          caddr32_t       ss_latencies;   /* latencies between lgroups */
 240  240  } lgrp_snapshot_header32_t;
 241  241  
 242  242  #endif  /* _SYSCALL32 */
 243  243  
 244  244  
 245  245  #if (!defined(_KERNEL) && !defined(_KMEMUSER))
 246  246  
 247      -#ifdef  __STDC__
 248      -
 249  247  lgrp_affinity_t lgrp_affinity_get(idtype_t idtype, id_t id, lgrp_id_t lgrp);
 250  248  
 251  249  int             lgrp_affinity_set(idtype_t idtype, id_t id, lgrp_id_t lgrp,
 252  250      lgrp_affinity_t aff);
 253  251  
 254  252  int             lgrp_children(lgrp_cookie_t cookie, lgrp_id_t lgrp,
 255  253      lgrp_id_t *children, uint_t count);
 256  254  
 257  255  int             lgrp_cookie_stale(lgrp_cookie_t cookie);
 258  256  
↓ open down ↓ 21 lines elided ↑ open up ↑
 280  278  
 281  279  int             lgrp_resources(lgrp_cookie_t cookie, lgrp_id_t lgrp,
 282  280      lgrp_id_t *lgrps, uint_t count, lgrp_rsrc_t type);
 283  281  
 284  282  lgrp_id_t       lgrp_root(lgrp_cookie_t cookie);
 285  283  
 286  284  int             lgrp_version(int version);
 287  285  
 288  286  lgrp_view_t     lgrp_view(lgrp_cookie_t cookie);
 289  287  
 290      -#else   /* __STDC__ */
 291      -lgrp_affinity_t lgrp_affinity_get();
 292      -int             lgrp_affinity_set();
 293      -int             lgrp_children();
 294      -int             lgrp_cookie_stale();
 295      -int             lgrp_cpus();
 296      -int             lgrp_fini();
 297      -lgrp_id_t       lgrp_home();
 298      -int             lgrp_init();
 299      -int             lgrp_latency();
 300      -spgcnt_t        lgrp_mem_size();
 301      -int             lgrp_nlgrps();
 302      -int             lgrp_parents();
 303      -int             lgrp_resources();
 304      -lgrp_id_t       lgrp_root();
 305      -int             lgrp_version();
 306      -lgrp_view_t     lgrp_view();
 307      -#endif  /* __STDC__ */
 308      -
 309  288  #endif  /* !_KERNEL && !_KMEMUSER */
 310  289  
 311  290  #ifdef  __cplusplus
 312  291  }
 313  292  #endif
 314  293  
 315  294  #endif /* _LGRP_USER_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX