mvs.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 1999-Oct-05 or later
  4. (the contents of which are also included in zip.h) for terms of use.
  5. If, for some reason, both of these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.cdrom.com/pub/infozip/license.html
  7. */
  8. /* <dirent.h> definitions */
  9. #define NAMELEN 8
  10. struct dirent {
  11. struct dirent *d_next;
  12. char d_name[NAMELEN+1];
  13. };
  14. typedef struct _DIR {
  15. struct dirent *D_list;
  16. struct dirent *D_curpos;
  17. char D_path[FILENAME_MAX];
  18. } DIR;
  19. DIR * opendir(const char *dirname);
  20. struct dirent *readdir(DIR *dirp);
  21. void rewinddir(DIR *dirp);
  22. int closedir(DIR *dirp);
  23. char * readd(DIR *dirp);
  24. #define ALIAS_MASK (unsigned int) 0x80
  25. #define SKIP_MASK (unsigned int) 0x1F
  26. #define TTRLEN 3
  27. #define RECLEN 254
  28. typedef _Packed struct {
  29. unsigned short int count;
  30. char rest[RECLEN];
  31. } RECORD;
  32. char *endmark = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF";