dir_3d.h revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1989-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> *
* Eduardo Krell <ekrell@adexus.cl> *
* *
***********************************************************************/
#pragma prototyped
/*
* AT&T Research
*
* directory stream access library private definitions
* handles 3d file system
*/
#ifndef _DIR3D_H
#define _DIR3D_H
#include "3d.h"
#if !_mem_DIR
#endif
#define DIRENT_ILLEGAL_ACCESS 1
#if defined(__STDPP__directive) && defined(__STDPP__hide)
__STDPP__directive pragma pp:hide rewinddir _rewinddir __rewinddir rewinddir64 _rewinddir64 __rewinddir64
__STDPP__directive pragma pp:hide _getdents __getdents getdents64 _getdents64 __getdents64 getdirentries
#else
#define opendir DIRopendir
#define _opendir _DIRopendir
#define __opendir __DIRopendir
#define readdir DIRreaddir
#define _readdir _DIRreaddir
#define __readdir __DIRreaddir
#define readdir64 DIRreaddir64
#define _readdir64 _DIRreaddir64
#define __readdir64 __DIRreaddir64
#if _lib_rewinddir
#define rewinddir DIRrewinddir
#define _rewinddir _DIRrewinddir
#define __rewinddir __DIRrewinddir
#define rewinddir64 DIRrewinddir64
#define _rewinddir64 _DIRrewinddir64
#define __rewinddir64 __DIRrewinddir64
#endif
#define seekdir DIRseekdir
#define _seekdir _DIRseekdir
#define __seekdir __DIRseekdir
#define seekdir64 DIRseekdir64
#define _seekdir64 _DIRseekdir64
#define __seekdir64 __DIRseekdir64
#if _lib_telldir
#define telldir DIRtelldir
#define _telldir _DIRtelldir
#define __telldir __DIRtelldir
#define telldir64 DIRtelldir64
#define _telldir64 _DIRtelldir64
#define __telldir64 __DIRtelldir64
#endif
#define closedir DIRclosedir
#define _closedir _DIRclosedir
#define __closedir __DIRclosedir
#define _getdents _DIRgetdents
#define __getdents __DIRgetdents
#define getdents64 DIRgetdents64
#define _getdents64 _DIRgetdents64
#define __getdents64 __DIRgetdents64
#define getdirentries DIRgetdirentries
#endif
#define _BLD_ast 1
#include <ast_dir.h>
#endif
#include <hash.h>
#if !defined(SYS3D_opendir)
#endif
#if !defined(SYS3D_readdir)
#endif
#if !defined(SYS3D_seekdir)
#endif
#if !defined(SYS3D_telldir)
#endif
#if !defined(SYS3D_rewinddir)
#endif
#if !defined(SYS3D_closedir)
#endif
#if defined(__STDPP__directive) && defined(__STDPP__hide)
__STDPP__directive pragma pp:nohide rewinddir _rewinddir __rewinddir rewinddir64 _rewinddir64 __rewinddir64
__STDPP__directive pragma pp:nohide _getdents __getdents getdents64 _getdents64 __getdents64 getdirentries
#else
#ifndef REWINDDIR
#if _lib_rewinddir
#else
#define REWINDDIR64(p) rewinddir64(p)
#endif
#endif
#ifndef TELLDIR
#if _lib_telldir
#else
#endif
#endif
#endif
#if _mem_DIR
#else
#define CHEATDIR(p)
#endif
typedef struct
{
int level; /* view level */
typedef struct
{
int fd; /* placeholder for dirfd() */
#if _mem_DIR
#endif
int boundary; /* return . at each view level */
} DIR; /* directory stream descriptor */
#if _HUH_2008_11_21
#endif
#if _lib_rewinddir && !defined(rewinddir)
#endif
#if _lib_telldir && !defined(telldir)
#endif
#endif