This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
AUTHORS update.
[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
20#define _IOFBF 0x0000
21#define _IOLBF 0x0040
22#define _IONBF 0x0004
23
24#if UNDER_CE <= 200
25XCE_EXPORT double xceatof(const char *);
26XCE_EXPORT int xcetoupper(int c);
27XCE_EXPORT int xcetolower(int c);
28#define atof xceatof
29#define toupper xcetoupper
30#define tolower xcetolower
31#else
32double atof(const char *);
33#endif
34
35XCE_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
47XCE_EXPORT int xcesetuid(uid_t id);
48XCE_EXPORT int xceseteuid(uid_t id);
49XCE_EXPORT int xcegetuid();
50XCE_EXPORT int xcegeteuid();
51
52XCE_EXPORT int xcesetgid(int id);
53XCE_EXPORT int xcesetegid(int id);
54XCE_EXPORT int xcegetgid();
55XCE_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
67XCE_EXPORT int xcechown(const char *filename, int owner, int group);
68#define chown xcechown
69
70XCE_EXPORT char *xcestrrchr(const char * string, int ch);
71#define strrchr xcestrrchr
72
73XCE_EXPORT void (*xcesignal(int, void (*)(int)))(int);
74XCE_EXPORT int xceraise(int);
75#define signal xcesignal
76#define raise xceraise
77
78XCE_EXPORT int xcecreat(const char *filename, int pmode);
79XCE_EXPORT int xceopen(const char *fname, int mode, ...);
80XCE_EXPORT int xceread(int fd, void *buf, int size);
81XCE_EXPORT int xcewrite(int fd, void *buf, int size);
82XCE_EXPORT int xceclose(int fd);
83XCE_EXPORT off_t xcelseek(int fd, int off, int whence);
84
85XCE_EXPORT char *xcestrupr(char *string);
86XCE_EXPORT char *xcestrlwr(char *string);
87#define strupr xcestrupr
88#define strlwr xcestrlwr
89
90XCE_EXPORT double xcestrtod(const char *s, char **errorptr);
91XCE_EXPORT long xcestrtol(const char *s, char **errorptr, int base);
92XCE_EXPORT unsigned long xcestrtoul(const char *s, char **errorptr, int base);
93#define strtod xcestrtod
94#define strtol xcestrtol
95#define strtoul xcestrtoul
96
97XCE_EXPORT int xcestrnicmp(const char *first, const char *last, size_t count);
98#define strnicmp xcestrnicmp
99
100XCE_EXPORT int xceumask(int mask);
101#define umask xceumask
102
103XCE_EXPORT int xceisatty(int fd);
104#define isatty xceisatty
105
106XCE_EXPORT int xcechsize(int fd, unsigned long size);
107#define chsize xcechsize
108
109XCE_EXPORT char *xcegetlogin();
110#define getlogin xcegetlogin
111
112XCE_EXPORT DWORD XCEAPI XCEGetModuleFileNameA(HMODULE hModule, LPTSTR lpName, DWORD nSize);
113XCE_EXPORT HMODULE XCEAPI XCEGetModuleHandleA(const char *lpName);
114XCE_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
126XCE_EXPORT LPVOID XCEGetEnvironmentStrings(VOID);
127XCE_EXPORT BOOL XCEFreeEnvironmentStrings(LPCSTR buf);
128#define GetEnvironmentStrings XCEGetEnvironmentStrings
129#define FreeEnvironmentStrings XCEFreeEnvironmentStrings
130
131void wce_hitreturn();
132
133#endif