#ifndef NDIR_H
#if 0
#ifndef FAB$C_BID
#include <fab.h>
#endif
#endif
#ifndef NAM$C_BID
#include <nam.h>
#endif
#if 0
#ifndef RMS$_SUC
#include <rmsdef.h>
#endif
#include <dir.h>
#else
#define DIR$S_NAME 80
#endif
#define DIRBLKSIZ 512
#ifdef VMS
#define MAXNAMLEN (DIR$S_NAME + 7)
#define MAXFULLSPEC NAM$C_MAXRSS
#else
#define MAXNAMLEN 15
#endif
struct direct
{
long d_ino;
unsigned short d_reclen;
unsigned short d_namlen;
char d_name[MAXNAMLEN+1];
};
typedef struct
{
int dd_fd;
int dd_loc;
int dd_size;
char dd_buf[DIRBLKSIZ];
} DIR;
extern DIR *vms_opendir();
extern struct direct *vms_readdir();
#ifndef VMS
extern long telldir();
extern void seekdir();
#endif
extern int vms_closedir();
#define rewinddir( dirp ) seekdir( dirp, 0L )
#define NDIR_H 1
#endif