Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/stat.h
          +++ new/usr/src/uts/common/sys/stat.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>
  23   24   * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  24   25   */
  25   26  
  26   27  /*      Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
  27   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T   */
  28   29  /*      All Rights Reserved     */
  29   30  
  30   31  #ifndef _SYS_STAT_H
  31   32  #define _SYS_STAT_H
  32   33  
↓ open down ↓ 440 lines elided ↑ open up ↑
 473  474  #if defined(__EXTENSIONS__) || \
 474  475          (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
 475  476          /* || defined(_XPG7) */
 476  477  /* for use with futimens() and utimensat() */
 477  478  #define UTIME_NOW       -1L
 478  479  #define UTIME_OMIT      -2L
 479  480  #endif  /* defined(__EXTENSIONS__) ... */
 480  481  
 481  482  #if !defined(_KERNEL) || defined(_BOOT)
 482  483  
 483      -#if defined(__STDC__)
 484      -
 485  484  #if !defined(__XOPEN_OR_POSIX) || (_POSIX_C_SOURCE > 2) || \
 486  485          defined(_XPG4_2) || defined(__EXTENSIONS__)
 487  486  extern int fchmod(int, mode_t);
 488  487  #endif /* !defined(__XOPEN_OR_POSIX) || (_POSIX_C_SOURCE > 2)... */
 489  488  
 490  489  extern int chmod(const char *, mode_t);
 491  490  extern int mkdir(const char *, mode_t);
 492  491  extern int mkfifo(const char *, mode_t);
 493  492  extern mode_t umask(mode_t);
 494  493  
↓ open down ↓ 13 lines elided ↑ open up ↑
 508  507          (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
 509  508          /* || defined(_XPG7) */
 510  509  extern int mkdirat(int, const char *, mode_t);
 511  510  extern int mkfifoat(int, const char *, mode_t);
 512  511  extern int mknodat(int, const char *, mode_t, dev_t);
 513  512  extern int fchmodat(int, const char *, mode_t, int);
 514  513  extern int futimens(int, const struct timespec[2]);
 515  514  extern int utimensat(int, const char *, const struct timespec[2], int);
 516  515  #endif  /* defined(__EXTENSIONS__) ... */
 517  516  
 518      -#else /* !__STDC__ */
 519      -
 520      -#if !defined(__XOPEN_OR_POSIX) || (_POSIX_C_SOURCE > 2) || \
 521      -        defined(_XPG4_2) || defined(__EXTENSIONS__)
 522      -extern int fchmod();
 523      -#endif /* !defined(__XOPEN_OR_POSIX) || (_POSIX_C_SOURCE > 2)... */
 524      -
 525      -extern int chmod();
 526      -extern int mkdir();
 527      -extern int mkfifo();
 528      -extern mode_t umask();
 529      -
 530      -/* transitional large file interfaces */
 531      -#if     defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 532      -            !defined(__PRAGMA_REDEFINE_EXTNAME))
 533      -extern int fstat64();
 534      -extern int stat64();
 535      -extern int lstat64();
 536      -#if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) || \
 537      -        defined(_ATFILE_SOURCE)
 538      -extern int fstatat64();
 539      -#endif /* defined (_ATFILE_SOURCE) */
 540      -#endif
 541      -
 542      -#if defined(__EXTENSIONS__) || defined(_ATFILE_SOURCE) || \
 543      -        (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX))
 544      -        /* || defined(_XPG7) */
 545      -extern int mkdirat();
 546      -extern int mkfifoat();
 547      -extern int mknodat();
 548      -extern int fchmodat();
 549      -extern int futimens();
 550      -extern int utimensat();
 551      -#endif  /* defined(__EXTENSIONS__) ... */
 552      -
 553      -#endif /* defined(__STDC__) */
 554      -
 555  517  #include <sys/stat_impl.h>
 556  518  
 557  519  #endif /* !defined(_KERNEL) */
 558  520  
 559  521  #ifdef  __cplusplus
 560  522  }
 561  523  #endif
 562  524  
 563  525  #endif  /* _SYS_STAT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX