#ifndef LONGNAME_H
#define LONGNAME_H

struct LongFile {
  FILE *fp;
  char *tmpName;
  char *resName;
};

struct LongName {
  VO_FILE *(*fopen_orig)(const char *fileName, const char *mode);
  ioresult (*fclose_orig)(register __i0 VO_FILE *fp);
  u_int16 fileMutex; /* InitMutex(1) */
  void *openMutexDisableP, *closeMutexDisableP;
  struct LongFile longFile[__FOPEN_MAX_FILES];
};

extern struct LongName longName;

#endif /* !LONGNAME_H */
