summaryrefslogtreecommitdiff
path: root/src/export/mystdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/export/mystdlib.h')
-rw-r--r--src/export/mystdlib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/export/mystdlib.h b/src/export/mystdlib.h
index 2e9499f..dd08137 100644
--- a/src/export/mystdlib.h
+++ b/src/export/mystdlib.h
@@ -1,7 +1,8 @@
1#include <sys/types.h> 1#include <sys/types.h>
2#include <stdint.h>
2#include <stdio.h> 3#include <stdio.h>
3 4
4typedef struct { int fh; unsigned char *addr; size_t size; } *MAP; 5typedef struct { int fh; uint8_t *addr; size_t size; } *MAP;
5 6
6/* Mapps a file into memory 7/* Mapps a file into memory
7 returns pointer to the mapping struct, 8 returns pointer to the mapping struct,
@@ -28,5 +29,5 @@ void unmap_file ( MAP *pMap );
28 29
29/* Gets file size of open file 30/* Gets file size of open file
30 returns != 0 in case of error */ 31 returns != 0 in case of error */
31inline int getfilesize( int fd, unsigned long *size ); 32inline int getfilesize( int fd, size_t *size );
32 33