summaryrefslogtreecommitdiff
path: root/uisimulator/x11/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/x11/file.h')
-rw-r--r--uisimulator/x11/file.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/uisimulator/x11/file.h b/uisimulator/x11/file.h
index 28c2f2c17a..134019148c 100644
--- a/uisimulator/x11/file.h
+++ b/uisimulator/x11/file.h
@@ -21,13 +21,18 @@
21#include <sys/types.h> 21#include <sys/types.h>
22 22
23int x11_open(char *name, int opts); 23int x11_open(char *name, int opts);
24int x11_creat(char *name, int mode);
25int x11_remove(char *name);
24 26
25#define open(x,y) x11_open(x,y) 27#define open(x,y) x11_open(x,y)
28#define creat(x,y) x11_open(x,y)
29#define remove(x) x11_remove(x)
26 30
27#include "../../firmware/common/file.h" 31#include "../../firmware/common/file.h"
28 32
29extern int open(char* pathname, int flags); 33extern int open(char* pathname, int flags);
30extern int close(int fd); 34extern int close(int fd);
31extern int read(int fd, void* buf, int count); 35extern int read(int fd, void* buf, int count);
36extern int write(int fd, void* buf, int count);
32extern int lseek(int fd, int offset, int whence); 37extern int lseek(int fd, int offset, int whence);
33extern int printf(const char *format, ...); 38extern int printf(const char *format, ...);