dirent.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:1k
- /*
- * dirent.h
- *
- * Copyright (C) ST Microelectronics Ltd. 2000
- *
- * Directory operations
- */
- #ifndef __dirent_h
- #define __dirent_h
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef NAME_MAX
- #define MAXNAME NAME_MAX
- #else
- #define MAXNAME 255
- #endif
- typedef struct dir_s
- {
- int d_file;
- int d_loc;
- int d_size;
- char* d_buf;
- } DIR;
- struct dirent
- {
- int unused[3]; /* extra attributes? */
- char d_name[MAXNAME+1];
- };
- DIR* opendir(const char *path);
- int closedir(DIR *dirp);
- struct dirent* readdir(DIR *dirp);
- #ifdef __cplusplus
- }
- #endif
- #endif
- /* end of dirent.h */