Category : C Source Code
Archive   : DMAKE38B.ZIP
Filename : DIRLIB.H

 
Output of file : DIRLIB.H contained in archive : DMAKE38B.ZIP
/* DIRLIB.H by M. J. Weinstein Released to public domain 1-Jan-89 */

#ifndef _DIRLIB_h_
#define _DIRLIB_h_

#include
#include "stdmacs.h"

#define MAXNAMLEN 15

struct direct {
long d_ino;
unsigned short d_reclen;
unsigned short d_namlen;
char d_name[MAXNAMLEN+1];
};

typedef struct {
char fcb[21];
char attr;
short time;
short date;
long size;
char name[13];
} DTA;

typedef struct {
DTA dd_dta; /* disk transfer area for this dir. */
short dd_stat; /* status return from last lookup */
char dd_name[1]; /* full name of file -- struct is extended */
} DIR;

extern DIR *opendir ANSI((char *));
extern struct direct *readdir ANSI((DIR *));
extern long telldir ANSI((DIR *));
extern void seekdir ANSI((DIR *, long));
extern void closedir ANSI((DIR *));
extern DTA *findfirst ANSI((char *, DTA *));
extern DTA *findnext ANSI((DTA *));

#define rewinddir(dirp) seekdir(dirp,0L)
#endif


  3 Responses to “Category : C Source Code
Archive   : DMAKE38B.ZIP
Filename : DIRLIB.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/