Category : OS/2 Files
Archive   : EMXDEV8F.ZIP
Filename : DIRENT.H

 
Output of file : DIRENT.H contained in archive : EMXDEV8F.ZIP
/* dirent.h (emx+gcc) */

#if !defined (_DIRENT_H)
#define _DIRENT_H

#include

#if defined (__cplusplus)
extern "C" {
#endif

struct _dircontents
{
char * _d_entry;
long _d_size;
unsigned short _d_mode;
unsigned short _d_time;
unsigned short _d_date;
struct _dircontents * _d_next;
};

struct _dirdesc
{
int dd_id;
long dd_loc;
struct _dircontents * dd_contents;
struct _dircontents * dd_cp;
};

typedef struct _dirdesc DIR;

DIR *opendir (__const__ char *name);
struct dirent *readdir (DIR *dirp);
void seekdir (DIR *dirp, long off);
long telldir (DIR *dirp);
int closedir (DIR *dirp);
void rewinddir (DIR *dirp);

#if defined (__cplusplus)
}
#endif

#endif /* !defined (_DIRENT_H) */
/* sys/dirent.h (emx+gcc) */

#if !defined (_SYS_DIRENT_H)
#define _SYS_DIRENT_H

#if !defined (MAXNAMLEN)
#define MAXNAMLEN 260
#endif

#if !defined (MAXPATHLEN)
#define MAXPATHLEN 260
#endif

#if !defined (A_RONLY)
#define A_RONLY 0x01
#define A_HIDDEN 0x02
#define A_SYSTEM 0x04
#define A_LABEL 0x08
#define A_DIR 0x10
#define A_ARCHIVE 0x20
#endif

struct dirent
{
ino_t d_ino; /* Almost not used */
int d_reclen; /* Almost not used */
int d_namlen; /* Length of d_name */
char d_name[MAXNAMLEN + 1]; /* File name, 0 terminated */
long d_size; /* File size (bytes) */
unsigned short d_mode; /* OS file attributes */
unsigned short d_time; /* OS file modification time */
unsigned short d_date; /* OS file modification date */
};

#endif /* !defined (SYS_DIRENT_H) */


  3 Responses to “Category : OS/2 Files
Archive   : EMXDEV8F.ZIP
Filename : DIRENT.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/