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.

15 lines
276 B

  1. #pragma once
  2. #include <stdint.h>
  3. #define DIRENT_NAMELEN(X) ((X)->reclen - offsetof(linux_dirent64_t,name))
  4. typedef struct linux_dirent64_t linux_dirent64_t;
  5. struct linux_dirent64_t
  6. {
  7. uint64_t ino;
  8. int64_t off;
  9. uint16_t reclen;
  10. uint8_t type;
  11. char name[];
  12. };