30 #ifndef CLIENT_LINUX_MINIDUMP_WRITER_DIRECTORY_READER_H_ 31 #define CLIENT_LINUX_MINIDUMP_WRITER_DIRECTORY_READER_H_ 62 struct kernel_dirent*
const dent =
63 reinterpret_cast<kernel_dirent*
>(buf_);
67 const int n = sys_getdents(fd_, dent,
sizeof(buf_));
77 if (buf_used_ == 0 && hit_eof_)
80 assert(buf_used_ > 0);
90 const struct kernel_dirent*
const dent =
91 reinterpret_cast<kernel_dirent*
>(buf_);
93 buf_used_ -= dent->d_reclen;
94 my_memmove(buf_, buf_ + dent->d_reclen, buf_used_);
101 uint8_t buf_[
sizeof(
struct kernel_dirent) + NAME_MAX + 1];
106 #endif // CLIENT_LINUX_MINIDUMP_WRITER_DIRECTORY_READER_H_
bool GetNextEntry(const char **name)