Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
2
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
3
#ifndef __dj_include_dirent_h_
4
#define __dj_include_dirent_h_
5
 
6
#ifdef __cplusplus
7
extern "C" {
8
#endif
9
 
10
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
11
 
12
#ifndef __STRICT_ANSI__
13
 
14
/* Definition of DIR requires many other headers; not included here to
15
   avoid namespace pollution. */
16
//typedef struct __dj_DIR DIR;
17
#include 
18
 
19
struct dirent {
20
  char d_namlen;
21
  char d_name[256];
22
};
23
 
24
typedef struct
25
{
26
	struct systree_info2 fileinfo;
27
	struct dirent entry;
28
	__u8 bdfeheader[0x20];
29
	struct bdfe_item bdfebase;
30
	__u8 bdfename[264];
31
} DIR;
32
 
33
int		closedir(DIR *dirp);
34
DIR *		opendir(const char *_dirname);
35
struct dirent *	readdir(DIR *_dirp);
36
//void		rewinddir(DIR *_dirp);
37
 
38
#ifndef _POSIX_SOURCE
39
 
40
extern int __opendir_flags; /* default is zero, used only by opendir */
41
#define __OPENDIR_PRESERVE_CASE	0001
42
#define __OPENDIR_FIND_HIDDEN	0002 /* ignored; on by default */
43
#define __OPENDIR_FIND_LABEL	0004
44
#define __OPENDIR_NO_HIDDEN	0x08 /* NOT 0002 for back-compatibility */
45
 
46
void seekdir(DIR *_dir, long _loc);
47
long telldir(DIR *_dir);
48
void __set_need_fake_dot_dotdot(DIR *_dir);
49
void _lfn_find_close(int _handle);
50
 
51
#endif /* !_POSIX_SOURCE */
52
#endif /* !__STRICT_ANSI__ */
53
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
54
 
55
#ifndef __dj_ENFORCE_FUNCTION_CALLS
56
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
57
 
58
#ifdef __cplusplus
59
}
60
#endif
61
 
62
#endif /* !__dj_include_dirent_h_ */