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.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/uisimulator/x11/file.h b/uisimulator/x11/file.h
deleted file mode 100644
index b30167ecbd..0000000000
--- a/uisimulator/x11/file.h
+++ /dev/null
@@ -1,54 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se>
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef ROCKBOX_FILE_H
21#define ROCKBOX_FILE_H
22
23#include <stdio.h>
24#include <sys/types.h>
25
26int x11_open(const char *name, int opts);
27int x11_close(int fd);
28int x11_filesize(int fd);
29int x11_creat(const char *name, mode_t mode);
30int x11_remove(char *name);
31int x11_rename(char *oldpath, char *newpath);
32
33#ifndef NO_REDEFINES_PLEASE
34#define open(x,y) x11_open(x,y)
35#define close(x) x11_close(x)
36#define filesize(x) x11_filesize(x)
37#define creat(x,y) x11_creat(x,y)
38#define remove(x) x11_remove(x)
39#define rename(x,y) x11_rename(x,y)
40#endif
41
42#include "../../firmware/include/file.h"
43
44int open(const char* pathname, int flags);
45int close(int fd);
46int printf(const char *format, ...);
47int ftruncate(int fd, off_t length);
48int fsync(int fd);
49
50off_t lseek(int fildes, off_t offset, int whence);
51ssize_t read(int fd, void *buf, size_t count);
52ssize_t write(int fd, const void *buf, size_t count);
53
54#endif