dirlib.h revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* AT&T Research
*
* directory stream access library private definitions
* library routines should include this file rather than <dirent.h>
*/
#ifndef _DIRLIB_H
#define _DIRLIB_H
#if defined(__STDPP__directive) && defined(__STDPP__hide)
#else
#define getdents ______getdents
#define getdirentries ______getdirentries
#endif
#include <ast.h>
#include <errno.h>
#define _dir_ok 1
#include <ls.h>
#ifndef _DIRENT_H
#if _hdr_dirent
#if _typ_off64_t
#endif
#include <dirent.h>
#if _typ_off64_t
#endif
#else
#if _hdr_ndir
#include <ndir.h>
#else
#endif
#ifndef dirent
#endif
#endif
#endif
#else
#if defined(__STDPP__directive) && defined(__STDPP__hide)
#else
#define closedir ______closedir
#define opendir ______opendir
#define readdir ______readdir
#define seekdir ______seekdir
#define telldir ______telldir
#endif
#include <ast_param.h>
#include <ls.h>
#include <limits.h>
#ifndef _DIRENT_H
#if _hdr_dirent
#if _typ_off64_t
#endif
#include <dirent.h>
#if _typ_off64_t
#endif
#else
#if _hdr_direntry
#include <direntry.h>
#else
#endif
#endif
#endif
#if defined(__STDPP__directive) && defined(__STDPP__hide)
#else
#endif
#define _DIR_PRIVATE_ \
int dd_loc; /* offset in block */ \
int dd_size; /* valid data in block */ \
char* dd_buf; /* directory block */
#ifdef _BLD_3d
#endif
#include "dirstd.h"
#ifndef _DIRENT_H
#define _DIRENT_H 1
#endif
#ifdef _BLD_3d
#endif
#ifndef DIRBLKSIZ
#ifdef DIRBLK
#else
#ifdef DIRBUF
#else
#define DIRBLKSIZ 8192
#endif
#endif
#endif
#endif
#if defined(__STDPP__directive) && defined(__STDPP__hide)
#else
#endif
#ifndef errno
extern int errno;
#endif
#endif