Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/priv.h
          +++ new/usr/src/uts/common/sys/priv.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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  23   25   */
  24   26  
  25   27  #ifndef _SYS_PRIV_H
  26   28  #define _SYS_PRIV_H
  27   29  
  28   30  #include <sys/types.h>
  29   31  #include <sys/cred.h>
  30   32  #include <sys/priv_names.h>
  31   33  
↓ open down ↓ 11 lines elided ↑ open up ↑
  43   45   */
  44   46  typedef int priv_ptype_t;
  45   47  typedef int priv_t;
  46   48  
  47   49  #else /* _KERNEL */
  48   50  
  49   51  /*
  50   52   * Userland type definitions.
  51   53   */
  52   54  
  53      -#ifdef __STDC__
  54   55  typedef const char *priv_ptype_t;
  55   56  typedef const char *priv_t;
  56      -#else
  57      -typedef char *priv_ptype_t;
  58      -typedef char *priv_t;
  59      -#endif
  60   57  
  61   58  #endif /* _KERNEL */
  62   59  
  63   60  /*
  64   61   * priv_op_t indicates a privilege operation type
  65   62   */
  66   63  typedef enum priv_op {
  67   64          PRIV_ON,
  68   65          PRIV_OFF,
  69   66          PRIV_SET
↓ open down ↓ 185 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX