Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/user_attr.h
          +++ new/usr/src/head/user_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>
  22   23   * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23   24   */
  24   25  
  25   26  #ifndef _USER_ATTR_H
  26   27  #define _USER_ATTR_H
  27   28  
  28   29  #ifdef  __cplusplus
  29   30  extern "C" {
  30   31  #endif
  31   32  
↓ open down ↓ 90 lines elided ↑ open up ↑
 122  123   * API representation of user attributes.
 123  124   */
 124  125  typedef struct userattr_s {
 125  126          char   *name;           /* user name */
 126  127          char   *qualifier;      /* reserved for future use */
 127  128          char   *res1;           /* reserved for future use */
 128  129          char   *res2;           /* reserved for future use */
 129  130          kva_t  *attr;           /* array of key-value pair attributes */
 130  131  } userattr_t;
 131  132  
 132      -#ifdef  __STDC__
 133  133  extern userattr_t *getusernam(const char *);
 134  134  extern userattr_t *getuseruid(uid_t uid);
 135  135  extern userattr_t *getuserattr(void);
 136  136  extern userattr_t *fgetuserattr(struct __FILE *);
 137  137  extern void setuserattr(void);
 138  138  extern void enduserattr(void);
 139  139  extern void free_userattr(userattr_t *);
 140  140  
 141      -#else                           /* not __STDC__ */
 142      -
 143      -extern userattr_t *getusernam();
 144      -extern userattr_t *getuseruid();
 145      -extern userattr_t *getuserattr();
 146      -extern userattr_t *fgetuserattr();
 147      -extern void setuserattr();
 148      -extern void enduserattr();
 149      -extern void free_userattr();
 150      -#endif
 151      -
 152  141  #ifdef  __cplusplus
 153  142  }
 154  143  #endif
 155  144  
 156  145  #endif  /* _USER_ATTR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX