Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/exec_attr.h
          +++ new/usr/src/head/exec_attr.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 _EXEC_ATTR_H
  27   29  #define _EXEC_ATTR_H
  28   30  
  29   31  #ifdef  __cplusplus
  30   32  extern "C" {
  31   33  #endif
↓ open down ↓ 90 lines elided ↑ open up ↑
 122  124          const char *name;
 123  125          const char *type;
 124  126          const char *id;
 125  127          const char *policy;
 126  128          int search_flag;
 127  129          execstr_t *head_exec;
 128  130          execstr_t *prev_exec;
 129  131  } _priv_execattr;               /* Un-supported. For Sun internal use only */
 130  132  
 131  133  
 132      -#ifdef    __STDC__
 133  134  extern execattr_t *getexecattr(void);
 134  135  extern execattr_t *getexecuser(const char *, const char *, const char *, int);
 135  136  extern execattr_t *getexecprof(const char *, const char *, const char *, int);
 136  137  extern execattr_t *match_execattr(execattr_t *, const char *, const char *, \
 137  138          const char *);
 138  139  extern void free_execattr(execattr_t *);
 139  140  extern void setexecattr(void);
 140  141  extern void endexecattr(void);
 141  142  
 142      -#else                           /* not __STDC__ */
 143      -
 144      -extern execattr_t *getexecattr();
 145      -extern execattr_t *getexecuser();
 146      -extern execattr_t *getexecprof();
 147      -extern execattr_t *match_execattr();
 148      -extern void setexecattr();
 149      -extern void endexecattr();
 150      -extern void free_execattr();
 151      -#endif
 152      -
 153  143  #ifdef __cplusplus
 154  144  }
 155  145  #endif
 156  146  
 157  147  #endif  /* _EXEC_ATTR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX