mergerfs/libfuse/include/fs_dirent64.hpp
trapexit 2f3e807e9d
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled
Add getdents based readdir functions for Linux (#1533)
2025-09-23 23:51:21 -05:00

23 lines
316 B
C++

#pragma once
#include <cstddef>
#include <cstdint>
namespace fs
{
struct dirent64
{
public:
uint64_t d_ino;
int64_t d_off;
uint16_t d_reclen;
uint8_t d_type;
char d_name[];
public:
int d_namelen() const
{
return (d_reclen - offsetof(dirent64,d_name));
}
};
}