comparison perl-5.22.2/win32/wince.h @ 8045:a16537d2fe07

<xfix> tar xf perl-5.22.2.tar.gz # Ah, whatever, I\'m doing it anyway
author HackBot
date Sat, 14 May 2016 14:54:38 +0000
parents
children
comparison
equal deleted inserted replaced
8044:711c038a7dce 8045:a16537d2fe07
1 /* wince.h */
2
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 */
8
9 #ifndef WINCE_H
10 #define WINCE_H 1
11
12 #include "celib_defs.h"
13
14 /* include local copies of celib headers... */
15 #include "errno.h"
16 #include "sys/stat.h"
17 #include "time.h"
18 #include "cectype.h"
19
20 #ifndef START_EXTERN_C
21 #undef EXTERN_C
22 #ifdef __cplusplus
23 # define START_EXTERN_C extern "C" {
24 # define END_EXTERN_C }
25 # define EXTERN_C extern "C"
26 #else
27 # define START_EXTERN_C
28 # define END_EXTERN_C
29 # define EXTERN_C
30 #endif
31 #endif
32
33 START_EXTERN_C
34
35 #ifndef _IOFBF
36 #define _IOFBF 0x0000
37 #endif
38 #ifndef _IOLBF
39 #define _IOLBF 0x0040
40 #endif
41 #ifndef _IONBF
42 #define _IONBF 0x0004
43 #endif
44
45 #if UNDER_CE <= 200
46 XCE_EXPORT double xceatof(const char *);
47 XCE_EXPORT int xcetoupper(int c);
48 XCE_EXPORT int xcetolower(int c);
49 #define atof xceatof
50 #define toupper xcetoupper
51 #define tolower xcetolower
52 #else
53 XCE_EXPORT double atof(const char *);
54 #endif
55
56 XCE_EXPORT void XCEShowMessageA(const char *fmt, ...);
57
58 #define time xcetime
59 #define gmtime xcegmtime
60 #define localtime xcelocaltime
61 #define asctime xceasctime
62 /* #define utime xceutime */
63 #define futime xcefutime
64 #define ftime xceftime
65 #define ctime xcectime
66 #define gettimeofday xcegettimeofday
67 #define GetSystemTimeAsFileTime XCEGetSystemTimeAsFileTime
68
69 #define setuid xcesetuid
70 #define getuid xcegetuid
71 #define geteuid xcegeteuid
72 #define seteuid xceseteuid
73
74 #define setgid xcesetgid
75 #define getgid xcegetgid
76 #define getegid xcegetegid
77 #define setegid xcesetegid
78
79 XCE_EXPORT int xcechown(const char *filename, int owner, int group);
80 #define chown xcechown
81
82 XCE_EXPORT char *xcestrrchr(const char * string, int ch);
83 #define strrchr xcestrrchr
84
85 XCE_EXPORT void (*xcesignal(int, void (*)(int)))(int);
86 XCE_EXPORT int xceraise(int);
87 #define signal xcesignal
88 #define raise xceraise
89
90 XCE_EXPORT int xcecreat(const char *filename, int pmode);
91 XCE_EXPORT int xceopen(const char *fname, int mode, ...);
92 XCE_EXPORT int xceread(int fd, void *buf, int size);
93 XCE_EXPORT int xcewrite(int fd, void *buf, int size);
94 XCE_EXPORT int xceclose(int fd);
95 XCE_EXPORT off_t xcelseek(int fd, int off, int whence);
96
97 XCE_EXPORT char *xcestrupr(char *string);
98 XCE_EXPORT char *xcestrlwr(char *string);
99 #define strupr xcestrupr
100 #define strlwr xcestrlwr
101
102 XCE_EXPORT double xcestrtod(const char *s, char **errorptr);
103 XCE_EXPORT long xcestrtol(const char *s, char **errorptr, int base);
104 XCE_EXPORT unsigned long xcestrtoul(const char *s, char **errorptr, int base);
105 #define strtod xcestrtod
106 #define strtol xcestrtol
107 #define strtoul xcestrtoul
108
109 XCE_EXPORT int xcestrnicmp(const char *first, const char *last, size_t count);
110 #define strnicmp xcestrnicmp
111
112 XCE_EXPORT int xceumask(int mask);
113 #define umask xceumask
114
115 XCE_EXPORT int xceisatty(int fd);
116 #define isatty xceisatty
117
118 XCE_EXPORT int xcechsize(int fd, unsigned long size);
119 #define chsize xcechsize
120
121 XCE_EXPORT char *xcegetlogin();
122 #define getlogin xcegetlogin
123
124 XCE_EXPORT DWORD XCEAPI XCEGetModuleFileNameA(HMODULE hModule, LPTSTR lpName, DWORD nSize);
125 XCE_EXPORT HMODULE XCEAPI XCEGetModuleHandleA(const char *lpName);
126 XCE_EXPORT FARPROC XCEAPI XCEGetProcAddressA(HMODULE hMod, const char *name);
127
128 /* //////////////////////////////////////////////////////////////////// */
129
130 #define getgid xcegetgid
131 #define getegid xcegetegid
132 #define geteuid xcegeteuid
133 #define setgid xcesetgid
134
135 #define strupr xcestrupr
136 #define time xcetime
137
138 XCE_EXPORT BOOL XCEFreeEnvironmentStrings(LPCSTR buf);
139 #define GetEnvironmentStrings XCEGetEnvironmentStrings
140 #define FreeEnvironmentStrings XCEFreeEnvironmentStrings
141
142 void wce_hitreturn();
143
144 END_EXTERN_C
145
146 #endif