Subversion Repositories Kolibri OS

Rev

Rev 5602 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5602 Rev 8759
Line 6... Line 6...
6
 
6
 
7
#ifdef __cplusplus
7
#ifdef __cplusplus
8
extern "C" {
8
extern "C" {
Line -... Line 9...
-
 
9
#endif
-
 
10
 
-
 
11
#define DT_DIR 16
-
 
12
#define DT_REG 0
-
 
13
 
-
 
14
#include 
9
#endif
15
#include   
-
 
16
 
10
 
17
struct dirent{
11
struct dirent {
18
   ino_t    d_ino;
12
  char d_namlen;
19
   unsigned d_type;
Line 13... Line 20...
13
  char d_name[256];
20
   char     d_name[256];
14
};
-
 
15
 
-
 
16
typedef struct
21
};
17
{
-
 
18
//    struct systree_info2 fileinfo;
22
 
19
    struct dirent entry;
23
typedef struct{
20
//    __u8 bdfeheader[0x20];
24
    struct dirent* objs;
Line 21... Line 25...
21
//    struct bdfe_item bdfebase;
25
    ino_t pos;
22
//    __u8 bdfename[264];
26
    ino_t num_objs;  
23
} DIR;
27
}DIR;
24
 
28
 
-
 
29
extern int  closedir(DIR *dir);
-
 
30
extern DIR* opendir(const char *path);
-
 
31
extern struct dirent* readdir(DIR *);
-
 
32
extern void rewinddir(DIR *dir);
-
 
33
extern void seekdir(DIR *dir, unsigned pos);
Line 25... Line 34...
25
int     closedir(DIR *dirp);
34
extern unsigned telldir(DIR *dir);
26
DIR *       opendir(const char *_dirname);
35
 
27
struct dirent * readdir(DIR *_dirp);
36
extern int scandir(const char *path, struct dirent ***res, int (*sel)(const struct dirent *), int (*cmp)(const struct dirent **, const struct dirent **));