mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-22 16:06:27 -05:00
23 lines
300 B
C++
23 lines
300 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace fs
|
|
{
|
|
struct dirent64
|
|
{
|
|
public:
|
|
uint64_t ino;
|
|
int64_t off;
|
|
uint16_t reclen;
|
|
uint8_t type;
|
|
char name[];
|
|
|
|
public:
|
|
int namelen() const
|
|
{
|
|
return (reclen - offsetof(dirent64,name));
|
|
}
|
|
};
|
|
}
|