diff options
Diffstat (limited to 'core.h')
-rw-r--r-- | core.h | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -6,14 +6,15 @@ #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> +#include <dirent.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <errno.h> -/* +/******************************************************************************* BASIC FILE OPERATIONS ON FILE -*/ + ******************************************************************************/ #define FD_RO O_RDONLY #define FD_WO O_WRONLY @@ -76,9 +77,9 @@ search and check for more */ -/* +/******************************************************************************* FILE OPERATION MANAGMENT STRUCTURE -*/ + ******************************************************************************/ #define DEFAULT_BLK_SIZE 256 @@ -101,10 +102,20 @@ int file_read_blk( file_t *ft, uint8_t *buf ); int file_read( file_t *ft, uint8_t *buf, size_t count ); int file_write_blk( file_t *ft, uint8_t *buf ); int file_write( file_t *ft, uint8_t *buf, size_t count ); -int file_seek( file_t *ft, off_t offset ); +int file_seek( file_t *ft, off_t offset ); //seek by offset +int file_seekp( file_t *ft, off_t offset ); int file_pos( file_t *ft ); int file_size( file_t *ft ); int file_s_mode( file_t *ft, int mode ); int file_close( file_t *ft ); +/******************************************************************************* +UTILITITIES + ******************************************************************************/ + +/* +LIST DIRECTORY FILES +*/ +uint8_t **dir_list( char *path ); + #endif
\ No newline at end of file |