File: directory.h

package info (click to toggle)
ifmail 2.14tx8.10-32
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,056 kB
  • sloc: ansic: 30,328; perl: 4,955; yacc: 839; makefile: 716; sh: 424; cpp: 235; lex: 206; awk: 24
file content (40 lines) | stat: -rw-r--r-- 807 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * This routines have been written to replace the stuff of the Motorola
 * BSD Compatibility Package on a M88k with System V Release 4.1, which
 * did not seem to do the things described on the manual pages when I
 * tried to compile IFMail.
 * I don't know, if they are useful on other systems as well.
 *
 * Written by stefan@space.s-link.de (Stefan Westerfeld)
 */

#include <dirent.h>

#ifdef DONT_HAVE_DIRENT

#include <fcntl.h>

#define opendir my_opendir
#define readdir my_readdir
#define rewinddir my_rewinddir
#define closedir my_closedir


struct e_dirent
{
	struct dirent *dp;
	char buf[1024],*bp;
	int fd;
	long nbytes;
};

typedef struct e_dirent E_DIR;

#define DIR E_DIR

DIR *opendir(char *name);
void closedir(DIR *de);
void rewinddir(DIR *de);
struct dirent *readdir(DIR *de);

#endif