File: linux_dirent64.h

package info (click to toggle)
mergerfs 2.40.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,000 kB
  • sloc: cpp: 58,559; ansic: 17,241; makefile: 348; python: 156; sh: 119
file content (16 lines) | stat: -rw-r--r-- 268 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <stdint.h>
#include <string.h>

#define DIRENT_NAMELEN(X) (strlen((X)->name))

typedef struct linux_dirent64_t linux_dirent64_t;
struct linux_dirent64_t
{
  uint64_t ino;
  int64_t  off;
  uint16_t reclen;
  uint8_t  type;
  char     name[];
};