Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/fcntl.h
          +++ new/usr/src/head/fcntl.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  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   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*      Copyright (c) 1988 AT&T */
  28   30  /*        All Rights Reserved   */
  29   31  
  30   32  #ifndef _FCNTL_H
  31   33  #define _FCNTL_H
  32   34  
  33      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.6.1.7 */
  34      -
  35   35  #include <sys/feature_tests.h>
  36   36  #if defined(__EXTENSIONS__) || defined(_XPG4)
  37   37  #include <sys/stat.h>
  38   38  #endif
  39   39  #include <sys/types.h>
  40   40  #include <sys/fcntl.h>
  41   41  
  42   42  #ifdef  __cplusplus
  43   43  extern "C" {
  44   44  #endif
↓ open down ↓ 76 lines elided ↑ open up ↑
 121  121  #define posix_fallocate64               posix_fallocate
 122  122  #endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || ... */
 123  123  #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
 124  124          defined(_ATFILE_SOURCE)
 125  125  #define openat64                        openat
 126  126  #define attropen64                      attropen
 127  127  #endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
 128  128  #endif
 129  129  #endif  /* _LP64 && _LARGEFILE64_SOURCE */
 130  130  
 131      -#if defined(__STDC__)
 132      -
 133  131  extern int fcntl(int, int, ...);
 134  132  extern int open(const char *, int, ...);
 135  133  extern int creat(const char *, mode_t);
 136  134  #if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
 137  135  extern int posix_fadvise(int, off_t, off_t, int);
 138  136  extern int posix_fallocate(int, off_t, off_t);
 139  137  #endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || ... */
 140  138  #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
 141  139          defined(_ATFILE_SOURCE)
 142  140  extern int openat(int, const char *, int, ...);
↓ open down ↓ 12 lines elided ↑ open up ↑
 155  153  extern int posix_fadvise64(int, off64_t, off64_t, int);
 156  154  extern int posix_fallocate64(int, off64_t, off64_t);
 157  155  #endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || ... */
 158  156  #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
 159  157          defined(_ATFILE_SOURCE)
 160  158  extern int openat64(int, const char *, int, ...);
 161  159  extern int attropen64(const char *, const char *, int, ...);
 162  160  #endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
 163  161  #endif
 164  162  
 165      -#else   /* defined(__STDC__) */
 166      -
 167      -extern int fcntl();
 168      -extern int open();
 169      -extern int creat();
 170      -#if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
 171      -extern int posix_fadvise();
 172      -extern int posix_fallocate();
 173      -#endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || ... */
 174      -#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
 175      -        defined(_ATFILE_SOURCE)
 176      -extern int openat();
 177      -extern int attropen();
 178      -#endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
 179      -
 180      -#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX)
 181      -extern int directio();
 182      -#endif
 183      -
 184      -/* transitional large file interface versions */
 185      -#if     defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 186      -            !defined(__PRAGMA_REDEFINE_EXTNAME))
 187      -extern int open64();
 188      -extern int creat64();
 189      -#if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
 190      -extern int posix_fadvise64();
 191      -extern int posix_fallocate64();
 192      -#endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || ... */
 193      -#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
 194      -        defined(_ATFILE_SOURCE)
 195      -extern int openat64();
 196      -extern int attropen64();
 197      -#endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
 198      -#endif
 199      -
 200      -#endif  /* defined(__STDC__) */
 201      -
 202  163  #ifdef  __cplusplus
 203  164  }
 204  165  #endif
 205  166  
 206  167  #endif  /* _FCNTL_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX