feat(fs): add VFS, initrd, and filesystem interface headers
This commit is contained in:
1 parent
455e81de5e
commit
94747d8c53
3 files changed
+98
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#ifndef FROSTBYTE_FS_H
|
||||
#define FROSTBYTE_FS_H
|
||||
|
||||
#define oReadOnly 0x0
|
||||
#define oWriteOnly 0x1
|
||||
#define oReadWrite 0x2
|
||||
#define oCreate 0x40
|
||||
#define oTrunc 0x200
|
||||
#define oAppend 0x400
|
||||
|
||||
#define seekSet 0
|
||||
#define seekCur 1
|
||||
#define seekEnd 2
|
||||
|
||||
#define fsTypeFile 1
|
||||
#define fsTypeDir 2
|
||||
|
||||
#define fsNameMax 64
|
||||
|
||||
typedef struct FbStat {
|
||||
unsigned long size;
|
||||
unsigned int type;
|
||||
unsigned int mode;
|
||||
} FbStat;
|
||||
|
||||
typedef struct FbDirent {
|
||||
unsigned int type;
|
||||
unsigned int nameLength;
|
||||
char name[fsNameMax];
|
||||
} FbDirent;
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user