summaryrefslogtreecommitdiff
path: root/core.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2016-05-10 22:42:11 +0100
committerFreeArtMan <dos21h@gmail.com>2016-05-10 22:42:11 +0100
commit44dedb90f005bb0de9bddbd592a5c78f28bc67d1 (patch)
tree274b9cea44df3f96a965c564e26cdac42d3af94f /core.h
parentbb426577c85f6d97cc28ab677e98e2b1f73eadac (diff)
downloadihe-44dedb90f005bb0de9bddbd592a5c78f28bc67d1.tar.gz
ihe-44dedb90f005bb0de9bddbd592a5c78f28bc67d1.zip
Replace cmd first part
Diffstat (limited to 'core.h')
-rw-r--r--core.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/core.h b/core.h
index 02f072b..11ba289 100644
--- a/core.h
+++ b/core.h
@@ -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