#ifndef SHARE_SYSDEFS_FS_H_
#define SHARE_SYSDEFS_FS_H_

#define FS_OF_READ     (1<<0)
#define FS_OF_WRITE    (1<<1)
#define FS_OF_MAKE     (1<<2)

#define FSSTAT_DIR   0
#define FSSTAT_FILE  1

#include <stdint.h>
#include <stddef.h>

typedef struct {
  size_t size;
  int32_t type;
} FsStat;

typedef struct {
  FsStat stat;
  char name[0x100];
} FsDirent;

typedef int32_t fsh_t;

#endif // SHARE_SYSDEFS_FS_H_
