diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-01-28 23:14:41 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-01-28 23:14:41 +0000 |
commit | 2ba4fedd6400cb74c604ba4c9e3c56c6e2f79e78 (patch) | |
tree | c86ef5adb17723f9f59c84e3c9a94d89fa0b0844 /uisimulator/x11/file.h | |
parent | b82241b970f3506feed692c8d30e08ce026a750b (diff) | |
download | rockbox-2ba4fedd6400cb74c604ba4c9e3c56c6e2f79e78.tar.gz rockbox-2ba4fedd6400cb74c604ba4c9e3c56c6e2f79e78.zip |
Added close() and proper creat() to x11 emulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3179 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/file.h')
-rw-r--r-- | uisimulator/x11/file.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uisimulator/x11/file.h b/uisimulator/x11/file.h index 63ccfe108c..49c49116fb 100644 --- a/uisimulator/x11/file.h +++ b/uisimulator/x11/file.h | |||
@@ -21,12 +21,14 @@ | |||
21 | #include <sys/types.h> | 21 | #include <sys/types.h> |
22 | 22 | ||
23 | int x11_open(char *name, int opts); | 23 | int x11_open(char *name, int opts); |
24 | int x11_close(int fd); | ||
24 | int x11_creat(char *name, int mode); | 25 | int x11_creat(char *name, int mode); |
25 | int x11_remove(char *name); | 26 | int x11_remove(char *name); |
26 | int x11_rename(char *oldpath, char *newpath); | 27 | int x11_rename(char *oldpath, char *newpath); |
27 | 28 | ||
28 | #define open(x,y) x11_open(x,y) | 29 | #define open(x,y) x11_open(x,y) |
29 | #define creat(x,y) x11_open(x,y) | 30 | #define close(x) x11_close(x) |
31 | #define creat(x,y) x11_creat(x,y) | ||
30 | #define remove(x) x11_remove(x) | 32 | #define remove(x) x11_remove(x) |
31 | #define rename(x,y) x11_rename(x,y) | 33 | #define rename(x,y) x11_rename(x,y) |
32 | 34 | ||