summaryrefslogtreecommitdiff
path: root/uisimulator/x11/file.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-06-29 16:43:15 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-06-29 16:43:15 +0000
commit3f54121fde834041970ddeda09edd06ba1939850 (patch)
tree289b2a511d23bb7b7580a9017639d6f2538c48f9 /uisimulator/x11/file.h
parentba371fb595affd68c823926b85718d1d613dc7d3 (diff)
downloadrockbox-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.h11
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
26int x11_open(char *name, int opts); 26int x11_open(const char *name, int opts);
27int x11_close(int fd); 27int x11_close(int fd);
28int x11_filesize(int fd); 28int x11_filesize(int fd);
29int x11_creat(char *name, int mode); 29int x11_creat(char *name, int mode);
30int x11_remove(char *name); 30int x11_remove(char *name);
31int x11_rename(char *oldpath, char *newpath); 31int 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
42extern int open(char* pathname, int flags); 44int open(const char* pathname, int flags);
43extern int close(int fd); 45int close(int fd);
44extern int printf(const char *format, ...); 46int printf(const char *format, ...);
47int ftruncate(int fd, off_t length);
45 48
46off_t lseek(int fildes, off_t offset, int whence); 49off_t lseek(int fildes, off_t offset, int whence);
47ssize_t read(int fd, void *buf, size_t count); 50ssize_t read(int fd, void *buf, size_t count);