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