Print this page
remove support for non-ANSI compilation

@@ -17,10 +17,12 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*      Copyright (c) 1988 AT&T */

@@ -28,12 +30,10 @@
 
 
 #ifndef _FTW_H
 #define _FTW_H
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <sys/feature_tests.h>
 
 #include <sys/types.h>
 #include <sys/stat.h>
 

@@ -120,12 +120,10 @@
 #define nftw64          nftw
 #endif
 #endif  /* __PRAGMA_REDEFINE_EXTNAME */
 #endif  /* _LP64 && _LARGEFILE64_SOURCE */
 
-#if defined(__STDC__)
-
 extern int ftw(const char *,
         int (*)(const char *, const struct stat *, int), int);
 extern int _xftw(int, const char *,
         int (*)(const char *, const struct stat *, int), int);
 #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) || defined(_XPG4_2)

@@ -148,30 +146,10 @@
         int (*)(const char *, const struct stat64 *, int, struct FTW *),
         int, int);
 #endif /* !defined(_XOPEN_SOURCE) */
 #endif /* _LARGEFILE64_SOURCE .. */
 
-#else /* __STDC__ */
-
-extern int ftw(), _xftw();
-
-#if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) || defined(_XPG4_2)
-extern int nftw();
-#endif /* defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) ... */
-
-/* transitional large file interface versions */
-#if     defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
-            !defined(__PRAGMA_REDEFINE_EXTNAME))
-extern int ftw64();
-extern int _xftw64();
-#if !defined(_XOPEN_SOURCE)
-extern int nftw64();
-#endif /* !defined(_XOPEN_SOURCE) */
-#endif /* _LARGEFILE64_SOURCE .. */
-
-#endif /* __STDC__ */
-
 #define _XFTWVER        2       /* version of file tree walk */
 
 #define ftw(path, fn, depth)    _xftw(_XFTWVER, (path), (fn), (depth))
 
 #if     defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \