Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/statvfs.h
          +++ new/usr/src/uts/common/sys/statvfs.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25      -
  26   25  /*
       26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       27 + *
  27   28   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   29   * Use is subject to license terms.
  29   30   */
  30   31  
  31   32  #ifndef _SYS_STATVFS_H
  32   33  #define _SYS_STATVFS_H
  33   34  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.10 */
  35      -
  36   35  #include <sys/feature_tests.h>
  37   36  #include <sys/types.h>
  38   37  
  39   38  #ifdef  __cplusplus
  40   39  extern "C" {
  41   40  #endif
  42   41  
  43   42  /*
  44   43   * Structure returned by statvfs(2).
  45   44   */
↓ open down ↓ 135 lines elided ↑ open up ↑
 181  180  #ifdef __PRAGMA_REDEFINE_EXTNAME
 182  181  #pragma redefine_extname        statvfs64       statvfs
 183  182  #pragma redefine_extname        fstatvfs64      fstatvfs
 184  183  #else
 185  184  #define statvfs64_t             statvfs_t
 186  185  #define statvfs64               statvfs
 187  186  #define fstatvfs64              fstatvfs
 188  187  #endif
 189  188  #endif  /* _LP64 && _LARGEFILE64_SOURCE */
 190  189  
 191      -#if defined(__STDC__)
 192  190  int statvfs(const char *_RESTRICT_KYWD, statvfs_t *_RESTRICT_KYWD);
 193  191  int fstatvfs(int, statvfs_t *);
 194  192  
 195  193  /* transitional large file interface versions */
 196  194  #if     defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 197  195              !defined(__PRAGMA_REDEFINE_EXTNAME))
 198  196  int statvfs64(const char *_RESTRICT_KYWD, statvfs64_t *_RESTRICT_KYWD);
 199  197  int fstatvfs64(int, statvfs64_t *);
 200  198  #endif  /* _LARGEFILE64_SOURCE... */
 201      -#endif  /* defined(__STDC__) */
 202  199  #endif  /* !defined(_KERNEL) */
 203  200  
 204  201  #ifdef  __cplusplus
 205  202  }
 206  203  #endif
 207  204  
 208  205  #endif  /* _SYS_STATVFS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX