/*
 *
 * BSD-like directory searching for Manx C
 * Edwin Hoogerbeets 1989
 *
 */

#include <libraries/dosextens.h>

#define MAXNAMELEN 31

struct direct {
  ULONG  d_ino;
  USHORT d_reclen;
  USHORT d_namlen;
  char   d_name[MAXNAMELEN + 1];
};

#if 0
typedef struct FileInfoBlock
  dirent;

#define d_name fib_FileName

#endif

typedef struct DIR {
  struct FileLock *lock;      /* lock on the directory */
  char name[MAXNAMELEN+1];    /* name of the directory */
  struct FileInfoBlock *fib;  /* pointer to temporary space for searching */
  long loc;                   /* current location of the search */
} DIR;

extern DIR *opendir();
extern struct direct *readdir();
extern void closedir();



