Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/acl.h
          +++ new/usr/src/uts/common/sys/acl.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 _SYS_ACL_H
  27   29  #define _SYS_ACL_H
  28   30  
  29   31  #include <sys/types.h>
  30   32  #include <sys/acl_impl.h>
  31   33  
↓ open down ↓ 248 lines elided ↑ open up ↑
 280  282  extern int acl_fromtext(const char *, acl_t **);
 281  283  extern int acl_check(acl_t *, int);
 282  284  
 283  285  #else   /* !defined(_KERNEL) */
 284  286  
 285  287  extern void ksort(caddr_t, int, int, int (*)(void *, void *));
 286  288  extern int cmp2acls(void *, void *);
 287  289  
 288  290  #endif  /* !defined(_KERNEL) */
 289  291  
 290      -#if defined(__STDC__)
 291  292  extern int acl(const char *path, int cmd, int cnt, void *buf);
 292  293  extern int facl(int fd, int cmd, int cnt, void *buf);
 293      -#else   /* !__STDC__ */
 294      -extern int acl();
 295      -extern int facl();
 296      -#endif  /* defined(__STDC__) */
 297  294  
 298  295  #ifdef  __cplusplus
 299  296  }
 300  297  #endif
 301  298  
 302  299  #endif /* _SYS_ACL_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX