mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-21 03:30:02 +00:00
Worked fine on my machine where padding seemed to be all zeroed out but that doesn't appear to be the case elsewhere. Could try https://codeberg.org/jbruchon/libjodycode/src/branch/master/dir.c#L92-L110 but needs to be tested.
26 lines
306 B
C++
26 lines
306 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <cstring>
|
|
|
|
namespace fs
|
|
{
|
|
struct dirent64
|
|
{
|
|
public:
|
|
uint64_t ino;
|
|
int64_t off;
|
|
uint16_t reclen;
|
|
uint8_t type;
|
|
char name[];
|
|
|
|
public:
|
|
size_t
|
|
namelen() const
|
|
{
|
|
return ::strlen(name);
|
|
}
|
|
};
|
|
}
|