1 /***********************************************************************
3 * This software is part of the ast package *
4 * Copyright (c) 1985-2010 AT&T Intellectual Property *
5 * and is licensed under the *
6 * Common Public License, Version 1.0 *
7 * by AT&T Intellectual Property *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
13 * Information and Software Systems Research *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
21 ***********************************************************************/
26 * directory stream access library private definitions
27 * library routines should include this file rather than <dirent.h>
33 #if defined(__STDPP__directive) && defined(__STDPP__hide)
34 __STDPP__directive pragma pp
:hide getdents getdirentries
37 #define getdents ______getdents
39 #define getdirentries ______getdirentries
45 #if _lib_opendir && ( _hdr_dirent || _hdr_ndir || _sys_dir )
72 #define DIRdirent dirent
76 #define dirent DIRdirent
78 #if defined(__STDPP__directive) && defined(__STDPP__hide)
79 __STDPP__directive pragma pp
:hide
DIR closedir opendir readdir seekdir telldir
84 #define closedir ______closedir
86 #define opendir ______opendir
88 #define readdir ______readdir
90 #define seekdir ______seekdir
92 #define telldir ______telldir
95 #include <ast_param.h>
107 #define off_t off64_t
111 #include <direntry.h>
119 #if defined(__STDPP__directive) && defined(__STDPP__hide)
120 __STDPP__directive pragma pp
:nohide
DIR closedir opendir readdir seekdir telldir
130 #define _DIR_PRIVATE_ \
131 int dd_loc; /* offset in block */ \
132 int dd_size; /* valid data in block */ \
133 char* dd_buf; /* directory block */
149 #define DIRBLKSIZ DIRBLK
152 #define DIRBLKSIZ DIRBUF
154 #define DIRBLKSIZ 8192
161 #if defined(__STDPP__directive) && defined(__STDPP__hide)
162 __STDPP__directive pragma pp
:nohide getdents getdirentries
172 extern ssize_t
getdents(int, void*, size_t);