diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-06-29 16:43:15 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-06-29 16:43:15 +0000 |
commit | 3f54121fde834041970ddeda09edd06ba1939850 (patch) | |
tree | 289b2a511d23bb7b7580a9017639d6f2538c48f9 /uisimulator/x11/file.h | |
parent | ba371fb595affd68c823926b85718d1d613dc7d3 (diff) | |
download | rockbox-3f54121fde834041970ddeda09edd06ba1939850.tar.gz rockbox-3f54121fde834041970ddeda09edd06ba1939850.zip |
Added plugin loader. Moved games, demos and the text viewer to loadable plugins. Copy your *.rock files to /.rockbox/rocks/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3770 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/file.h')
-rw-r--r-- | uisimulator/x11/file.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/uisimulator/x11/file.h b/uisimulator/x11/file.h index f11f5056c9..7658a1b2f1 100644 --- a/uisimulator/x11/file.h +++ b/uisimulator/x11/file.h | |||
@@ -23,25 +23,28 @@ | |||
23 | #include <stdio.h> | 23 | #include <stdio.h> |
24 | #include <sys/types.h> | 24 | #include <sys/types.h> |
25 | 25 | ||
26 | int x11_open(char *name, int opts); | 26 | int x11_open(const char *name, int opts); |
27 | int x11_close(int fd); | 27 | int x11_close(int fd); |
28 | int x11_filesize(int fd); | 28 | int x11_filesize(int fd); |
29 | int x11_creat(char *name, int mode); | 29 | int x11_creat(char *name, int mode); |
30 | int x11_remove(char *name); | 30 | int x11_remove(char *name); |
31 | int x11_rename(char *oldpath, char *newpath); | 31 | int x11_rename(char *oldpath, char *newpath); |
32 | 32 | ||
33 | #ifndef NO_REDEFINES_PLEASE | ||
33 | #define open(x,y) x11_open(x,y) | 34 | #define open(x,y) x11_open(x,y) |
34 | #define close(x) x11_close(x) | 35 | #define close(x) x11_close(x) |
35 | #define filesize(x) x11_filesize(x) | 36 | #define filesize(x) x11_filesize(x) |
36 | #define creat(x,y) x11_creat(x,y) | 37 | #define creat(x,y) x11_creat(x,y) |
37 | #define remove(x) x11_remove(x) | 38 | #define remove(x) x11_remove(x) |
38 | #define rename(x,y) x11_rename(x,y) | 39 | #define rename(x,y) x11_rename(x,y) |
40 | #endif | ||
39 | 41 | ||
40 | #include "../../firmware/include/file.h" | 42 | #include "../../firmware/include/file.h" |
41 | 43 | ||
42 | extern int open(char* pathname, int flags); | 44 | int open(const char* pathname, int flags); |
43 | extern int close(int fd); | 45 | int close(int fd); |
44 | extern int printf(const char *format, ...); | 46 | int printf(const char *format, ...); |
47 | int ftruncate(int fd, off_t length); | ||
45 | 48 | ||
46 | off_t lseek(int fildes, off_t offset, int whence); | 49 | off_t lseek(int fildes, off_t offset, int whence); |
47 | ssize_t read(int fd, void *buf, size_t count); | 50 | ssize_t read(int fd, void *buf, size_t count); |