diff options
Diffstat (limited to 'uisimulator/common/dir.h')
-rw-r--r-- | uisimulator/common/dir.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/uisimulator/common/dir.h b/uisimulator/common/dir.h new file mode 100644 index 0000000000..15332be54e --- /dev/null +++ b/uisimulator/common/dir.h | |||
@@ -0,0 +1,45 @@ | |||
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 | #ifndef _SIM_DIR_H_ | ||
20 | #define _SIM_DIR_H_ | ||
21 | |||
22 | #include <sys/types.h> | ||
23 | |||
24 | #define DIRFUNCTIONS_DEFINED /* prevent those prototypes */ | ||
25 | #define dirent sim_dirent | ||
26 | #include "../../firmware/include/dir.h" | ||
27 | #undef dirent | ||
28 | |||
29 | typedef void * MYDIR; | ||
30 | |||
31 | extern MYDIR *sim_opendir(const char *name); | ||
32 | extern struct sim_dirent* sim_readdir(MYDIR* dir); | ||
33 | extern int sim_closedir(MYDIR *dir); | ||
34 | extern int sim_mkdir(char *name, int mode); | ||
35 | extern int sim_rmdir(char *name); | ||
36 | |||
37 | #define DIR MYDIR | ||
38 | #define dirent sim_dirent | ||
39 | #define opendir(x) sim_opendir(x) | ||
40 | #define readdir(x) sim_readdir(x) | ||
41 | #define closedir(x) sim_closedir(x) | ||
42 | #define mkdir(x, y) sim_mkdir(x, y) | ||
43 | #define rmdir(x) sim_rmdir(x) | ||
44 | |||
45 | #endif | ||