Commit | Line | Data |
---|---|---|
cb69f87a | 1 | /* wince.h */ |
e4451f11 | 2 | |
cb69f87a MB |
3 | /* Time-stamp: <01/08/01 20:48:08 keuchel@w2k> */ |
4 | ||
5 | /* This file includes extracts from the celib-headers, because */ | |
6 | /* the celib-headers produces macro conflicts with defines in */ | |
7 | /* win32iop.h etc */ | |
e4451f11 JH |
8 | |
9 | #ifndef WINCE_H | |
10 | #define WINCE_H 1 | |
11 | ||
12 | #include "celib_defs.h" | |
13 | ||
cb69f87a | 14 | /* include local copies of celib headers... */ |
e4451f11 JH |
15 | #include "errno.h" |
16 | #include "sys/stat.h" | |
17 | #include "time.h" | |
18 | #include "cectype.h" | |
19 | ||
20 | #define _IOFBF 0x0000 | |
21 | #define _IOLBF 0x0040 | |
22 | #define _IONBF 0x0004 | |
23 | ||
24 | #if UNDER_CE <= 200 | |
25 | XCE_EXPORT double xceatof(const char *); | |
26 | XCE_EXPORT int xcetoupper(int c); | |
27 | XCE_EXPORT int xcetolower(int c); | |
28 | #define atof xceatof | |
29 | #define toupper xcetoupper | |
30 | #define tolower xcetolower | |
31 | #else | |
32 | double atof(const char *); | |
33 | #endif | |
34 | ||
35 | XCE_EXPORT void XCEShowMessageA(const char *fmt, ...); | |
36 | ||
37 | #define time xcetime | |
38 | #define gmtime xcegmtime | |
39 | #define localtime xcelocaltime | |
40 | #define asctime xceasctime | |
cb69f87a | 41 | /* #define utime xceutime */ |
e4451f11 JH |
42 | #define futime xcefutime |
43 | #define ftime xceftime | |
44 | #define ctime xcectime | |
45 | #define gettimeofday xcegettimeofday | |
46 | ||
47 | XCE_EXPORT int xcesetuid(uid_t id); | |
48 | XCE_EXPORT int xceseteuid(uid_t id); | |
49 | XCE_EXPORT int xcegetuid(); | |
50 | XCE_EXPORT int xcegeteuid(); | |
51 | ||
52 | XCE_EXPORT int xcesetgid(int id); | |
53 | XCE_EXPORT int xcesetegid(int id); | |
54 | XCE_EXPORT int xcegetgid(); | |
55 | XCE_EXPORT int xcegetegid(); | |
56 | ||
57 | #define setuid xcesetuid | |
58 | #define getuid xcegetuid | |
59 | #define geteuid xcegeteuid | |
60 | #define seteuid xceseteuid | |
61 | ||
62 | #define setgid xcesetgid | |
63 | #define getgid xcegetgid | |
64 | #define getegid xcegetegid | |
65 | #define setegid xcesetegid | |
66 | ||
67 | XCE_EXPORT int xcechown(const char *filename, int owner, int group); | |
68 | #define chown xcechown | |
69 | ||
70 | XCE_EXPORT char *xcestrrchr(const char * string, int ch); | |
71 | #define strrchr xcestrrchr | |
72 | ||
73 | XCE_EXPORT void (*xcesignal(int, void (*)(int)))(int); | |
74 | XCE_EXPORT int xceraise(int); | |
75 | #define signal xcesignal | |
76 | #define raise xceraise | |
77 | ||
78 | XCE_EXPORT int xcecreat(const char *filename, int pmode); | |
79 | XCE_EXPORT int xceopen(const char *fname, int mode, ...); | |
80 | XCE_EXPORT int xceread(int fd, void *buf, int size); | |
81 | XCE_EXPORT int xcewrite(int fd, void *buf, int size); | |
82 | XCE_EXPORT int xceclose(int fd); | |
83 | XCE_EXPORT off_t xcelseek(int fd, int off, int whence); | |
84 | ||
85 | XCE_EXPORT char *xcestrupr(char *string); | |
86 | XCE_EXPORT char *xcestrlwr(char *string); | |
87 | #define strupr xcestrupr | |
88 | #define strlwr xcestrlwr | |
89 | ||
90 | XCE_EXPORT double xcestrtod(const char *s, char **errorptr); | |
91 | XCE_EXPORT long xcestrtol(const char *s, char **errorptr, int base); | |
92 | XCE_EXPORT unsigned long xcestrtoul(const char *s, char **errorptr, int base); | |
93 | #define strtod xcestrtod | |
94 | #define strtol xcestrtol | |
95 | #define strtoul xcestrtoul | |
96 | ||
97 | XCE_EXPORT int xcestrnicmp(const char *first, const char *last, size_t count); | |
98 | #define strnicmp xcestrnicmp | |
99 | ||
100 | XCE_EXPORT int xceumask(int mask); | |
101 | #define umask xceumask | |
102 | ||
103 | XCE_EXPORT int xceisatty(int fd); | |
104 | #define isatty xceisatty | |
105 | ||
106 | XCE_EXPORT int xcechsize(int fd, unsigned long size); | |
107 | #define chsize xcechsize | |
108 | ||
109 | XCE_EXPORT char *xcegetlogin(); | |
110 | #define getlogin xcegetlogin | |
111 | ||
112 | XCE_EXPORT DWORD XCEAPI XCEGetModuleFileNameA(HMODULE hModule, LPTSTR lpName, DWORD nSize); | |
113 | XCE_EXPORT HMODULE XCEAPI XCEGetModuleHandleA(const char *lpName); | |
114 | XCE_EXPORT FARPROC XCEAPI XCEGetProcAddressA(HMODULE hMod, const char *name); | |
115 | ||
cb69f87a | 116 | /* //////////////////////////////////////////////////////////////////// */ |
e4451f11 JH |
117 | |
118 | #define getgid xcegetgid | |
119 | #define getegid xcegetegid | |
120 | #define geteuid xcegeteuid | |
121 | #define setgid xcesetgid | |
122 | ||
123 | #define strupr xcestrupr | |
124 | #define time xcetime | |
125 | ||
126 | XCE_EXPORT LPVOID XCEGetEnvironmentStrings(VOID); | |
127 | XCE_EXPORT BOOL XCEFreeEnvironmentStrings(LPCSTR buf); | |
128 | #define GetEnvironmentStrings XCEGetEnvironmentStrings | |
129 | #define FreeEnvironmentStrings XCEFreeEnvironmentStrings | |
130 | ||
131 | void wce_hitreturn(); | |
132 | ||
133 | #endif |