toaruos/base/usr/include/kernel/mod/tmpfs.h
2018-03-19 11:38:11 +09:00

39 lines
587 B
C

#ifndef _TMPFS_H__
#define _TMPFS_H__
#include <kernel/fs.h>
fs_node_t * tmpfs_create(char * name);
struct tmpfs_file {
char * name;
int type;
int mask;
int uid;
int gid;
unsigned int atime;
unsigned int mtime;
unsigned int ctime;
size_t length;
size_t block_count;
size_t pointers;
char ** blocks;
char * target;
};
struct tmpfs_dir;
struct tmpfs_dir {
char * name;
int type;
int mask;
int uid;
int gid;
unsigned int atime;
unsigned int mtime;
unsigned int ctime;
list_t * files;
struct tmpfs_dir * parent;
};
#endif /* _TMPFS_H__ */