17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*289b68b2Sraf * Common Development and Distribution License (the "License"). 6*289b68b2Sraf * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 21*289b68b2Sraf 227c478bd9Sstevel@tonic-gate /* 23*289b68b2Sraf * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate * Use is subject to license terms. 257c478bd9Sstevel@tonic-gate */ 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate /* Copyright (c) 1988 AT&T */ 287c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #ifndef _DIRENT_H 317c478bd9Sstevel@tonic-gate #define _DIRENT_H 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.6.1.5 */ 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate #include <sys/feature_tests.h> 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate #include <sys/types.h> 387c478bd9Sstevel@tonic-gate #include <sys/dirent.h> 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate #ifdef __cplusplus 417c478bd9Sstevel@tonic-gate extern "C" { 427c478bd9Sstevel@tonic-gate #endif 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gate #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gate #define MAXNAMLEN 512 /* maximum filename length */ 477c478bd9Sstevel@tonic-gate #define DIRBUF 8192 /* buffer size for fs-indep. dirs */ 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate #endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) */ 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gate #if !defined(__XOPEN_OR_POSIX) 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate typedef struct { 547c478bd9Sstevel@tonic-gate int dd_fd; /* file descriptor */ 557c478bd9Sstevel@tonic-gate int dd_loc; /* offset in block */ 567c478bd9Sstevel@tonic-gate int dd_size; /* amount of valid data */ 577c478bd9Sstevel@tonic-gate char *dd_buf; /* directory block */ 587c478bd9Sstevel@tonic-gate } DIR; /* stream data from opendir() */ 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gate #else 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gate typedef struct { 647c478bd9Sstevel@tonic-gate int d_fd; /* file descriptor */ 657c478bd9Sstevel@tonic-gate int d_loc; /* offset in block */ 667c478bd9Sstevel@tonic-gate int d_size; /* amount of valid data */ 677c478bd9Sstevel@tonic-gate char *d_buf; /* directory block */ 687c478bd9Sstevel@tonic-gate } DIR; /* stream data from opendir() */ 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate #endif /* !defined(__XOPEN_OR_POSIX) */ 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate #if defined(__STDC__) 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate /* large file compilation environment setup */ 757c478bd9Sstevel@tonic-gate #if !defined(_LP64) && _FILE_OFFSET_BITS == 64 767c478bd9Sstevel@tonic-gate #ifdef __PRAGMA_REDEFINE_EXTNAME 777c478bd9Sstevel@tonic-gate #pragma redefine_extname readdir readdir64 787c478bd9Sstevel@tonic-gate #pragma redefine_extname scandir scandir64 797c478bd9Sstevel@tonic-gate #pragma redefine_extname alphasort alphasort64 807c478bd9Sstevel@tonic-gate #else 817c478bd9Sstevel@tonic-gate #define readdir readdir64 827c478bd9Sstevel@tonic-gate #define scandir scandir64 837c478bd9Sstevel@tonic-gate #define alphasort alphasort64 847c478bd9Sstevel@tonic-gate #endif 857c478bd9Sstevel@tonic-gate #endif /* _FILE_OFFSET_BITS == 64 */ 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate /* In the LP64 compilation environment, all APIs are already large file */ 887c478bd9Sstevel@tonic-gate #if defined(_LP64) && defined(_LARGEFILE64_SOURCE) 897c478bd9Sstevel@tonic-gate #ifdef __PRAGMA_REDEFINE_EXTNAME 907c478bd9Sstevel@tonic-gate #pragma redefine_extname readdir64 readdir 917c478bd9Sstevel@tonic-gate #pragma redefine_extname scandir64 scandir 927c478bd9Sstevel@tonic-gate #pragma redefine_extname alphasort64 alphasort 937c478bd9Sstevel@tonic-gate #else 947c478bd9Sstevel@tonic-gate #define readdir64 readdir 957c478bd9Sstevel@tonic-gate #define scandir64 scandir 967c478bd9Sstevel@tonic-gate #define alphsort64 alphasort 977c478bd9Sstevel@tonic-gate #endif 987c478bd9Sstevel@tonic-gate #endif /* _LP64 && _LARGEFILE64_SOURCE */ 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gate extern DIR *opendir(const char *); 1017c478bd9Sstevel@tonic-gate #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \ 1027c478bd9Sstevel@tonic-gate defined(_ATFILE_SOURCE) 1037c478bd9Sstevel@tonic-gate extern DIR *fdopendir(int); 104*289b68b2Sraf extern int dirfd(DIR *); 1057c478bd9Sstevel@tonic-gate #endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */ 1067c478bd9Sstevel@tonic-gate #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) 1077c478bd9Sstevel@tonic-gate extern int scandir(const char *, struct dirent *(*[]), 1087c478bd9Sstevel@tonic-gate int (*)(const struct dirent *), 1097c478bd9Sstevel@tonic-gate int (*)(const struct dirent **, 1107c478bd9Sstevel@tonic-gate const struct dirent **)); 1117c478bd9Sstevel@tonic-gate extern int alphasort(const struct dirent **, 1127c478bd9Sstevel@tonic-gate const struct dirent **); 1137c478bd9Sstevel@tonic-gate #endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) */ 1147c478bd9Sstevel@tonic-gate extern struct dirent *readdir(DIR *); 1157c478bd9Sstevel@tonic-gate #if defined(__EXTENSIONS__) || !defined(_POSIX_C_SOURCE) || \ 1167c478bd9Sstevel@tonic-gate defined(_XOPEN_SOURCE) 1177c478bd9Sstevel@tonic-gate extern long telldir(DIR *); 1187c478bd9Sstevel@tonic-gate extern void seekdir(DIR *, long); 1197c478bd9Sstevel@tonic-gate #endif /* defined(__EXTENSIONS__) || !defined(_POSIX_C_SOURCE) ... */ 1207c478bd9Sstevel@tonic-gate extern void rewinddir(DIR *); 1217c478bd9Sstevel@tonic-gate extern int closedir(DIR *); 1227c478bd9Sstevel@tonic-gate 1237c478bd9Sstevel@tonic-gate /* transitional large file interface */ 1247c478bd9Sstevel@tonic-gate #if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \ 1257c478bd9Sstevel@tonic-gate !defined(__PRAGMA_REDEFINE_EXTNAME)) 1267c478bd9Sstevel@tonic-gate extern struct dirent64 *readdir64(DIR *); 1277c478bd9Sstevel@tonic-gate #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) 1287c478bd9Sstevel@tonic-gate extern int scandir64(const char *, struct dirent64 *(*[]), 1297c478bd9Sstevel@tonic-gate int (*)(const struct dirent64 *), 1307c478bd9Sstevel@tonic-gate int (*)(const struct dirent64 **, 1317c478bd9Sstevel@tonic-gate const struct dirent64 **)); 1327c478bd9Sstevel@tonic-gate extern int alphasort64(const struct dirent64 **, const struct dirent64 **); 1337c478bd9Sstevel@tonic-gate #endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) */ 1347c478bd9Sstevel@tonic-gate #endif 1357c478bd9Sstevel@tonic-gate 1367c478bd9Sstevel@tonic-gate #else 1377c478bd9Sstevel@tonic-gate 1387c478bd9Sstevel@tonic-gate extern DIR *opendir(); 1397c478bd9Sstevel@tonic-gate #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \ 1407c478bd9Sstevel@tonic-gate defined(_ATFILE_SOURCE) 1417c478bd9Sstevel@tonic-gate extern DIR *fdopendir(); 142*289b68b2Sraf extern int dirfd(); 1437c478bd9Sstevel@tonic-gate #endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */ 1447c478bd9Sstevel@tonic-gate extern struct dirent *readdir(); 1457c478bd9Sstevel@tonic-gate #if defined(__EXTENSIONS__) || !defined(_POSIX_C_SOURCE) || \ 1467c478bd9Sstevel@tonic-gate defined(_XOPEN_SOURCE) 1477c478bd9Sstevel@tonic-gate extern long telldir(); 1487c478bd9Sstevel@tonic-gate extern void seekdir(); 1497c478bd9Sstevel@tonic-gate #endif /* defined(__EXTENSIONS__) || !defined(_POSIX_C_SOURCE) ... */ 1507c478bd9Sstevel@tonic-gate extern void rewinddir(); 1517c478bd9Sstevel@tonic-gate extern int closedir(); 1527c478bd9Sstevel@tonic-gate 1537c478bd9Sstevel@tonic-gate /* transitional large file interface */ 1547c478bd9Sstevel@tonic-gate #if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \ 1557c478bd9Sstevel@tonic-gate !defined(__PRAGMA_REDEFINE_EXTNAME)) 1567c478bd9Sstevel@tonic-gate extern struct dirent64 *readdir64(); 1577c478bd9Sstevel@tonic-gate #endif 1587c478bd9Sstevel@tonic-gate 1597c478bd9Sstevel@tonic-gate #endif 1607c478bd9Sstevel@tonic-gate 1617c478bd9Sstevel@tonic-gate #if defined(__EXTENSIONS__) || !defined(_POSIX_C_SOURCE) || \ 1627c478bd9Sstevel@tonic-gate defined(_XOPEN_SOURCE) 1637c478bd9Sstevel@tonic-gate #define rewinddir(dirp) seekdir(dirp, 0L) 1647c478bd9Sstevel@tonic-gate #endif 1657c478bd9Sstevel@tonic-gate 1667c478bd9Sstevel@tonic-gate /* 1677c478bd9Sstevel@tonic-gate * readdir_r() prototype is defined here. 1687c478bd9Sstevel@tonic-gate * 1697c478bd9Sstevel@tonic-gate * There are several variations, depending on whether compatibility with old 1707c478bd9Sstevel@tonic-gate * POSIX draft specifications or the final specification is desired and on 1717c478bd9Sstevel@tonic-gate * whether the large file compilation environment is active. To combat a 1727c478bd9Sstevel@tonic-gate * combinatorial explosion, enabling large files implies using the final 1737c478bd9Sstevel@tonic-gate * specification (since the definition of the large file environment 1747c478bd9Sstevel@tonic-gate * considerably postdates that of the final readdir_r specification). 1757c478bd9Sstevel@tonic-gate * 1767c478bd9Sstevel@tonic-gate * In the LP64 compilation environment, all APIs are already large file, 1777c478bd9Sstevel@tonic-gate * and since there are no 64-bit applications that can have seen the 1787c478bd9Sstevel@tonic-gate * draft implementation, again, we use the final POSIX specification. 1797c478bd9Sstevel@tonic-gate */ 1807c478bd9Sstevel@tonic-gate 1817c478bd9Sstevel@tonic-gate #if defined(__EXTENSIONS__) || defined(_REENTRANT) || \ 1827c478bd9Sstevel@tonic-gate !defined(__XOPEN_OR_POSIX) || (_POSIX_C_SOURCE - 0 >= 199506L) || \ 1837c478bd9Sstevel@tonic-gate defined(_POSIX_PTHREAD_SEMANTICS) 1847c478bd9Sstevel@tonic-gate 1857c478bd9Sstevel@tonic-gate #if defined(__STDC__) 1867c478bd9Sstevel@tonic-gate 1877c478bd9Sstevel@tonic-gate #if !defined(_LP64) && _FILE_OFFSET_BITS == 32 1887c478bd9Sstevel@tonic-gate 1897c478bd9Sstevel@tonic-gate #if (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS) 1907c478bd9Sstevel@tonic-gate 1917c478bd9Sstevel@tonic-gate #ifdef __PRAGMA_REDEFINE_EXTNAME 1927c478bd9Sstevel@tonic-gate #pragma redefine_extname readdir_r __posix_readdir_r 1937c478bd9Sstevel@tonic-gate extern int readdir_r(DIR *_RESTRICT_KYWD, struct dirent *_RESTRICT_KYWD, 1947c478bd9Sstevel@tonic-gate struct dirent **_RESTRICT_KYWD); 1957c478bd9Sstevel@tonic-gate #else /* __PRAGMA_REDEFINE_EXTNAME */ 1967c478bd9Sstevel@tonic-gate 1977c478bd9Sstevel@tonic-gate extern int __posix_readdir_r(DIR *_RESTRICT_KYWD, 1987c478bd9Sstevel@tonic-gate struct dirent *_RESTRICT_KYWD, struct dirent **_RESTRICT_KYWD); 1997c478bd9Sstevel@tonic-gate 2007c478bd9Sstevel@tonic-gate #ifdef __lint 2017c478bd9Sstevel@tonic-gate #define readdir_r __posix_readdir_r 2027c478bd9Sstevel@tonic-gate #else /* !__lint */ 2037c478bd9Sstevel@tonic-gate 2047c478bd9Sstevel@tonic-gate static int 2057c478bd9Sstevel@tonic-gate readdir_r(DIR *_RESTRICT_KYWD __dp, struct dirent *_RESTRICT_KYWD __ent, 2067c478bd9Sstevel@tonic-gate struct dirent **_RESTRICT_KYWD __res) { 2077c478bd9Sstevel@tonic-gate return (__posix_readdir_r(__dp, __ent, __res)); 2087c478bd9Sstevel@tonic-gate } 2097c478bd9Sstevel@tonic-gate 2107c478bd9Sstevel@tonic-gate #endif /* !__lint */ 2117c478bd9Sstevel@tonic-gate #endif /* __PRAGMA_REDEFINE_EXTNAME */ 2127c478bd9Sstevel@tonic-gate 2137c478bd9Sstevel@tonic-gate #else /* (_POSIX_C_SOURCE - 0 >= 199506L) || ... */ 2147c478bd9Sstevel@tonic-gate 2157c478bd9Sstevel@tonic-gate extern struct dirent *readdir_r(DIR *__dp, struct dirent *__ent); 2167c478bd9Sstevel@tonic-gate 2177c478bd9Sstevel@tonic-gate #endif /* (_POSIX_C_SOURCE - 0 >= 199506L) || ... */ 2187c478bd9Sstevel@tonic-gate 2197c478bd9Sstevel@tonic-gate #else /* !_LP64 && _FILE_OFFSET_BITS == 32 */ 2207c478bd9Sstevel@tonic-gate 2217c478bd9Sstevel@tonic-gate #if defined(_LP64) 2227c478bd9Sstevel@tonic-gate #ifdef __PRAGMA_REDEFINE_EXTNAME 2237c478bd9Sstevel@tonic-gate #pragma redefine_extname readdir64_r readdir_r 2247c478bd9Sstevel@tonic-gate #else 2257c478bd9Sstevel@tonic-gate #define readdir64_r readdir_r 2267c478bd9Sstevel@tonic-gate #endif 2277c478bd9Sstevel@tonic-gate #else /* _LP64 */ 2287c478bd9Sstevel@tonic-gate #ifdef __PRAGMA_REDEFINE_EXTNAME 2297c478bd9Sstevel@tonic-gate #pragma redefine_extname readdir_r readdir64_r 2307c478bd9Sstevel@tonic-gate #else 2317c478bd9Sstevel@tonic-gate #define readdir_r readdir64_r 2327c478bd9Sstevel@tonic-gate #endif 2337c478bd9Sstevel@tonic-gate #endif /* _LP64 */ 2347c478bd9Sstevel@tonic-gate extern int readdir_r(DIR *_RESTRICT_KYWD, struct dirent *_RESTRICT_KYWD, 2357c478bd9Sstevel@tonic-gate struct dirent **_RESTRICT_KYWD); 2367c478bd9Sstevel@tonic-gate 2377c478bd9Sstevel@tonic-gate #endif /* !_LP64 && _FILE_OFFSET_BITS == 32 */ 2387c478bd9Sstevel@tonic-gate 2397c478bd9Sstevel@tonic-gate #if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \ 2407c478bd9Sstevel@tonic-gate !defined(__PRAGMA_REDEFINE_EXTNAME)) 2417c478bd9Sstevel@tonic-gate /* transitional large file interface */ 2427c478bd9Sstevel@tonic-gate extern int readdir64_r(DIR *_RESTRICT_KYWD, struct dirent64 *_RESTRICT_KYWD, 2437c478bd9Sstevel@tonic-gate struct dirent64 **_RESTRICT_KYWD); 2447c478bd9Sstevel@tonic-gate #endif 2457c478bd9Sstevel@tonic-gate 2467c478bd9Sstevel@tonic-gate #else /* __STDC__ */ 2477c478bd9Sstevel@tonic-gate 2487c478bd9Sstevel@tonic-gate #if !defined(_LP64) && _FILE_OFFSET_BITS == 32 2497c478bd9Sstevel@tonic-gate 2507c478bd9Sstevel@tonic-gate #if (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS) 2517c478bd9Sstevel@tonic-gate 2527c478bd9Sstevel@tonic-gate #ifdef __PRAGMA_REDEFINE_EXTNAME 2537c478bd9Sstevel@tonic-gate #pragma redefine_extname readdir_r __posix_readdir_r 2547c478bd9Sstevel@tonic-gate extern int readdir_r(); 2557c478bd9Sstevel@tonic-gate #else /* __PRAGMA_REDEFINE_EXTNAME */ 2567c478bd9Sstevel@tonic-gate 2577c478bd9Sstevel@tonic-gate extern int __posix_readdir_r(); 2587c478bd9Sstevel@tonic-gate 2597c478bd9Sstevel@tonic-gate #ifdef __lint 2607c478bd9Sstevel@tonic-gate #define readdir_r __posix_readdir_r 2617c478bd9Sstevel@tonic-gate #else /* !__lint */ 2627c478bd9Sstevel@tonic-gate 2637c478bd9Sstevel@tonic-gate static int 2647c478bd9Sstevel@tonic-gate readdir_r(DIR *_RESTRICT_KYWD __dp, struct dirent *_RESTRICT_KYWD __ent, 2657c478bd9Sstevel@tonic-gate struct dirent **_RESTRICT_KYWD __res) 2667c478bd9Sstevel@tonic-gate { 2677c478bd9Sstevel@tonic-gate return (__posix_readdir_r(__dp, __ent, __res)); 2687c478bd9Sstevel@tonic-gate } 2697c478bd9Sstevel@tonic-gate 2707c478bd9Sstevel@tonic-gate #endif /* !__lint */ 2717c478bd9Sstevel@tonic-gate #endif /* __PRAGMA_REDEFINE_EXTNAME */ 2727c478bd9Sstevel@tonic-gate 2737c478bd9Sstevel@tonic-gate #else /* (_POSIX_C_SOURCE - 0 >= 199506L) || ... */ 2747c478bd9Sstevel@tonic-gate 2757c478bd9Sstevel@tonic-gate extern struct dirent *readdir_r(); 2767c478bd9Sstevel@tonic-gate 2777c478bd9Sstevel@tonic-gate #endif /* (_POSIX_C_SOURCE - 0 >= 199506L) || ... */ 2787c478bd9Sstevel@tonic-gate 2797c478bd9Sstevel@tonic-gate #else /* !_LP64 && _FILE_OFFSET_BITS == 32 */ 2807c478bd9Sstevel@tonic-gate 2817c478bd9Sstevel@tonic-gate #if defined(_LP64) 2827c478bd9Sstevel@tonic-gate #ifdef __PRAGMA_REDEFINE_EXTNAME 2837c478bd9Sstevel@tonic-gate #pragma redefine_extname readdir64_r readdir_r 2847c478bd9Sstevel@tonic-gate #else 2857c478bd9Sstevel@tonic-gate #define readdir64_r readdir 2867c478bd9Sstevel@tonic-gate #endif 2877c478bd9Sstevel@tonic-gate #else /* _LP64 */ 2887c478bd9Sstevel@tonic-gate #ifdef __PRAGMA_REDEFINE_EXTNAME 2897c478bd9Sstevel@tonic-gate #pragma redefine_extname readdir_r readdir64_r 2907c478bd9Sstevel@tonic-gate #else 2917c478bd9Sstevel@tonic-gate #define readdir_r readdir64_r 2927c478bd9Sstevel@tonic-gate #endif 2937c478bd9Sstevel@tonic-gate #endif /* _LP64 */ 2947c478bd9Sstevel@tonic-gate extern int readdir_r(); 2957c478bd9Sstevel@tonic-gate 2967c478bd9Sstevel@tonic-gate #endif /* !_LP64 && _FILE_OFFSET_BITS == 32 */ 2977c478bd9Sstevel@tonic-gate 2987c478bd9Sstevel@tonic-gate #if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \ 2997c478bd9Sstevel@tonic-gate !defined(__PRAGMA_REDEFINE_EXTNAME)) 3007c478bd9Sstevel@tonic-gate /* transitional large file interface */ 3017c478bd9Sstevel@tonic-gate extern int readdir64_r(); 3027c478bd9Sstevel@tonic-gate #endif 3037c478bd9Sstevel@tonic-gate 3047c478bd9Sstevel@tonic-gate #endif /* __STDC__ */ 3057c478bd9Sstevel@tonic-gate 3067c478bd9Sstevel@tonic-gate #endif /* defined(__EXTENSIONS__) || defined(_REENTRANT)... */ 3077c478bd9Sstevel@tonic-gate 3087c478bd9Sstevel@tonic-gate #ifdef __cplusplus 3097c478bd9Sstevel@tonic-gate } 3107c478bd9Sstevel@tonic-gate #endif 3117c478bd9Sstevel@tonic-gate 3127c478bd9Sstevel@tonic-gate #endif /* _DIRENT_H */ 313