This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Silence Win32 compiler warnings following change 25280
[perl5.git] / wince / wince.h
CommitLineData
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
216db7ee
VK
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
33START_EXTERN_C
34
35#ifndef _IOFBF
e4451f11 36#define _IOFBF 0x0000
216db7ee
VK
37#endif
38#ifndef _IOLBF
e4451f11 39#define _IOLBF 0x0040
216db7ee
VK
40#endif
41#ifndef _IONBF
e4451f11 42#define _IONBF 0x0004
216db7ee 43#endif
e4451f11
JH
44
45#if UNDER_CE <= 200
46XCE_EXPORT double xceatof(const char *);
47XCE_EXPORT int xcetoupper(int c);
48XCE_EXPORT int xcetolower(int c);
49#define atof xceatof
50#define toupper xcetoupper
51#define tolower xcetolower
52#else
216db7ee 53XCE_EXPORT double atof(const char *);
e4451f11
JH
54#endif
55
56XCE_EXPORT void XCEShowMessageA(const char *fmt, ...);
57
58#define time xcetime
59#define gmtime xcegmtime
60#define localtime xcelocaltime
61#define asctime xceasctime
cb69f87a 62/* #define utime xceutime */
e4451f11
JH
63#define futime xcefutime
64#define ftime xceftime
65#define ctime xcectime
66#define gettimeofday xcegettimeofday
8f33b42a 67#define GetSystemTimeAsFileTime XCEGetSystemTimeAsFileTime
e4451f11
JH
68
69XCE_EXPORT int xcesetuid(uid_t id);
70XCE_EXPORT int xceseteuid(uid_t id);
71XCE_EXPORT int xcegetuid();
72XCE_EXPORT int xcegeteuid();
73
74XCE_EXPORT int xcesetgid(int id);
75XCE_EXPORT int xcesetegid(int id);
76XCE_EXPORT int xcegetgid();
77XCE_EXPORT int xcegetegid();
78
79#define setuid xcesetuid
80#define getuid xcegetuid
81#define geteuid xcegeteuid
82#define seteuid xceseteuid
83
84#define setgid xcesetgid
85#define getgid xcegetgid
86#define getegid xcegetegid
87#define setegid xcesetegid
88
89XCE_EXPORT int xcechown(const char *filename, int owner, int group);
90#define chown xcechown
91
92XCE_EXPORT char *xcestrrchr(const char * string, int ch);
93#define strrchr xcestrrchr
94
95XCE_EXPORT void (*xcesignal(int, void (*)(int)))(int);
96XCE_EXPORT int xceraise(int);
97#define signal xcesignal
98#define raise xceraise
99
100XCE_EXPORT int xcecreat(const char *filename, int pmode);
101XCE_EXPORT int xceopen(const char *fname, int mode, ...);
102XCE_EXPORT int xceread(int fd, void *buf, int size);
103XCE_EXPORT int xcewrite(int fd, void *buf, int size);
104XCE_EXPORT int xceclose(int fd);
105XCE_EXPORT off_t xcelseek(int fd, int off, int whence);
106
107XCE_EXPORT char *xcestrupr(char *string);
108XCE_EXPORT char *xcestrlwr(char *string);
109#define strupr xcestrupr
110#define strlwr xcestrlwr
111
112XCE_EXPORT double xcestrtod(const char *s, char **errorptr);
113XCE_EXPORT long xcestrtol(const char *s, char **errorptr, int base);
114XCE_EXPORT unsigned long xcestrtoul(const char *s, char **errorptr, int base);
115#define strtod xcestrtod
116#define strtol xcestrtol
117#define strtoul xcestrtoul
118
119XCE_EXPORT int xcestrnicmp(const char *first, const char *last, size_t count);
120#define strnicmp xcestrnicmp
121
122XCE_EXPORT int xceumask(int mask);
123#define umask xceumask
124
125XCE_EXPORT int xceisatty(int fd);
126#define isatty xceisatty
127
128XCE_EXPORT int xcechsize(int fd, unsigned long size);
129#define chsize xcechsize
130
131XCE_EXPORT char *xcegetlogin();
132#define getlogin xcegetlogin
133
134XCE_EXPORT DWORD XCEAPI XCEGetModuleFileNameA(HMODULE hModule, LPTSTR lpName, DWORD nSize);
135XCE_EXPORT HMODULE XCEAPI XCEGetModuleHandleA(const char *lpName);
136XCE_EXPORT FARPROC XCEAPI XCEGetProcAddressA(HMODULE hMod, const char *name);
137
cb69f87a 138/* //////////////////////////////////////////////////////////////////// */
e4451f11
JH
139
140#define getgid xcegetgid
141#define getegid xcegetegid
142#define geteuid xcegeteuid
143#define setgid xcesetgid
144
145#define strupr xcestrupr
146#define time xcetime
147
e4451f11
JH
148XCE_EXPORT BOOL XCEFreeEnvironmentStrings(LPCSTR buf);
149#define GetEnvironmentStrings XCEGetEnvironmentStrings
150#define FreeEnvironmentStrings XCEFreeEnvironmentStrings
151
152void wce_hitreturn();
153
216db7ee
VK
154END_EXTERN_C
155
e4451f11 156#endif