home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zip22.zip / cmsmvs / mvs.h < prev    next >
C/C++ Source or Header  |  1996-12-14  |  1KB  |  43 lines

  1. /*
  2.  
  3.  Copyright (C) 1990-1996 Mark Adler, Richard B. Wales, Jean-loup Gailly,
  4.  Kai Uwe Rommel, Onno van der Linden, George Petrov and Igor Mandrichenko.
  5.  Permission is granted to any individual or institution to use, copy, or
  6.  redistribute this software so long as all of the original files are included,
  7.  that it is not sold for profit, and that this copyright notice is retained.
  8.  
  9. */
  10.  
  11. /* <dirent.h> definitions */
  12.  
  13. #define NAMELEN     8
  14.  
  15. struct dirent {
  16.    struct dirent *d_next;
  17.    char   d_name[NAMELEN+1];
  18. };
  19.  
  20. typedef struct _DIR {
  21.    struct  dirent *D_list;
  22.    struct  dirent *D_curpos;
  23.    char            D_path[FILENAME_MAX];
  24. } DIR;
  25.  
  26. DIR *          opendir(const char *dirname);
  27. struct dirent *readdir(DIR *dirp);
  28. void           rewinddir(DIR *dirp);
  29. int            closedir(DIR *dirp);
  30. char *         readd(DIR *dirp);
  31.  
  32. #define ALIAS_MASK  (unsigned int) 0x80
  33. #define SKIP_MASK   (unsigned int) 0x1F
  34. #define TTRLEN      3
  35. #define RECLEN      254
  36.  
  37. typedef _Packed struct {
  38.    unsigned short int count;
  39.    char rest[RECLEN];
  40. } RECORD;
  41.  
  42. char    *endmark = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF";
  43.