Subversion Repositories HelenOS

Rev

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

Rev 2699 Rev 4482
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef LIBC_DIRENT_H_
35
#ifndef LIBC_DIRENT_H_
36
#define LIBC_DIRENT_H_
36
#define LIBC_DIRENT_H_
37
 
37
 
38
#define NAME_MAX    256 
38
#define NAME_MAX  256
39
 
39
 
40
struct dirent {
40
struct dirent {
41
    char d_name[NAME_MAX + 1];
41
    char d_name[NAME_MAX + 1];
42
};
42
};
43
 
43
 
44
typedef struct {
44
typedef struct {
45
    int fd;
45
    int fd;
46
    struct dirent res;
46
    struct dirent res;
47
} DIR;
47
} DIR;
48
 
48
 
49
 
-
 
50
extern DIR *opendir(const char *);
49
extern DIR *opendir(const char *);
51
extern struct dirent *readdir(DIR *);
50
extern struct dirent *readdir(DIR *);
52
extern void rewinddir(DIR *);
51
extern void rewinddir(DIR *);
53
extern int closedir(DIR *);
52
extern int closedir(DIR *);
54
 
53