《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
355 B

10 years ago
  1. #ifndef __USER_LIBS_DIR_H__
  2. #define __USER_LIBS_DIR_H__
  3. #include <defs.h>
  4. #include <dirent.h>
  5. typedef struct {
  6. int fd;
  7. struct dirent dirent;
  8. } DIR;
  9. DIR *opendir(const char *path);
  10. struct dirent *readdir(DIR *dirp);
  11. void closedir(DIR *dirp);
  12. int chdir(const char *path);
  13. int getcwd(char *buffer, size_t len);
  14. #endif /* !__USER_LIBS_DIR_H__ */