1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef _FS_H #define _FS_H #include <stdint.h> #include <sys/types.h> #define BLOCK_SIZE 1024 #define NRFILE 128 #define NROPEN 32 struct file { uint16_t f_mode; uint16_t f_flags; /* TODO: inode pointer here */ off_t f_pos; }; #endif