diff options
author | FreeArtMan <dos21h@gmail.com> | 2016-05-10 22:42:11 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2016-05-10 22:42:11 +0100 |
commit | 44dedb90f005bb0de9bddbd592a5c78f28bc67d1 (patch) | |
tree | 274b9cea44df3f96a965c564e26cdac42d3af94f /core.h | |
parent | bb426577c85f6d97cc28ab677e98e2b1f73eadac (diff) | |
download | ihe-44dedb90f005bb0de9bddbd592a5c78f28bc67d1.tar.gz ihe-44dedb90f005bb0de9bddbd592a5c78f28bc67d1.zip |
Replace cmd first part
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 |