File: dirent.h

package info (click to toggle)
fdclone 3.01b-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 4,772 kB
  • ctags: 8,674
  • sloc: ansic: 100,552; makefile: 4,497; sh: 1,480; sed: 224
file content (45 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (3)
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
41
42
43
44
45
/*
 *	dirent.h
 *
 *	definitions for directory entry
 */

#ifndef	__DIRENT_H_
#define	__DIRENT_H_

#include "unixemu.h"

#if	defined (USESYSDIRH) || defined (USEDIRECT)
#include <sys/dir.h>
#endif
#if	MSDOS
# if	defined (__TURBOC__) || (defined (DJGPP) && DJGPP < 2)
# include <dir.h>
# endif
#else	/* !MSDOS */
# ifndef	USEDIRECT
# include <dirent.h>
# endif
#endif	/* !MSDOS */

#ifdef	USEDIRECT
#define	dirent			direct
#undef	DIRSIZ
#endif

#ifndef	DEV_BSIZE
#define	DEV_BSIZE		512
#endif
#if	!defined (MAXNAMLEN) && defined (FILENAME_MAX)
#define	MAXNAMLEN		FILENAME_MAX
#endif

#if	defined (DNAMESIZE) && DNAMESIZE < (MAXNAMLEN + 1)
typedef struct _st_dirent {
	char buf[(int)sizeof(struct dirent) - DNAMESIZE + MAXNAMLEN + 1];
} st_dirent;
#else
typedef struct dirent		st_dirent;
#endif

#endif	/* !__DIRENT_H_ */