dirent.h 482 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _LINUX_DIRENT_H
  2. #define _LINUX_DIRENT_H
  3. struct dirent {
  4. long d_ino;
  5. __kernel_off_t d_off;
  6. unsigned short d_reclen;
  7. char d_name[256]; /* We must not include limits.h! */
  8. };
  9. struct dirent64 {
  10. __u64 d_ino;
  11. __s64 d_off;
  12. unsigned short d_reclen;
  13. unsigned char d_type;
  14. char d_name[256];
  15. };
  16. #ifdef __KERNEL__
  17. struct linux_dirent64 {
  18. u64 d_ino;
  19. s64 d_off;
  20. unsigned short d_reclen;
  21. unsigned char d_type;
  22. char d_name[0];
  23. };
  24. #endif /* __KERNEL__ */
  25. #endif