3 /* Time-stamp: <01/08/01 20:48:08 keuchel@w2k> */
5 /* This file includes extracts from the celib-headers, because */
6 /* the celib-headers produces macro conflicts with defines in */
12 #include "celib_defs.h"
14 /* include local copies of celib headers... */
20 #ifndef START_EXTERN_C
23 # define START_EXTERN_C extern "C" {
24 # define END_EXTERN_C }
25 # define EXTERN_C extern "C"
27 # define START_EXTERN_C
46 XCE_EXPORT double xceatof(const char *);
47 XCE_EXPORT int xcetoupper(int c);
48 XCE_EXPORT int xcetolower(int c);
50 #define toupper xcetoupper
51 #define tolower xcetolower
53 XCE_EXPORT double atof(const char *);
56 XCE_EXPORT void XCEShowMessageA(const char *fmt, ...);
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
68 XCE_EXPORT int xcesetuid(uid_t id);
69 XCE_EXPORT int xceseteuid(uid_t id);
70 XCE_EXPORT int xcegetuid();
71 XCE_EXPORT int xcegeteuid();
73 XCE_EXPORT int xcesetgid(int id);
74 XCE_EXPORT int xcesetegid(int id);
75 XCE_EXPORT int xcegetgid();
76 XCE_EXPORT int xcegetegid();
78 #define setuid xcesetuid
79 #define getuid xcegetuid
80 #define geteuid xcegeteuid
81 #define seteuid xceseteuid
83 #define setgid xcesetgid
84 #define getgid xcegetgid
85 #define getegid xcegetegid
86 #define setegid xcesetegid
88 XCE_EXPORT int xcechown(const char *filename, int owner, int group);
89 #define chown xcechown
91 XCE_EXPORT char *xcestrrchr(const char * string, int ch);
92 #define strrchr xcestrrchr
94 XCE_EXPORT void (*xcesignal(int, void (*)(int)))(int);
95 XCE_EXPORT int xceraise(int);
96 #define signal xcesignal
97 #define raise xceraise
99 XCE_EXPORT int xcecreat(const char *filename, int pmode);
100 XCE_EXPORT int xceopen(const char *fname, int mode, ...);
101 XCE_EXPORT int xceread(int fd, void *buf, int size);
102 XCE_EXPORT int xcewrite(int fd, void *buf, int size);
103 XCE_EXPORT int xceclose(int fd);
104 XCE_EXPORT off_t xcelseek(int fd, int off, int whence);
106 XCE_EXPORT char *xcestrupr(char *string);
107 XCE_EXPORT char *xcestrlwr(char *string);
108 #define strupr xcestrupr
109 #define strlwr xcestrlwr
111 XCE_EXPORT double xcestrtod(const char *s, char **errorptr);
112 XCE_EXPORT long xcestrtol(const char *s, char **errorptr, int base);
113 XCE_EXPORT unsigned long xcestrtoul(const char *s, char **errorptr, int base);
114 #define strtod xcestrtod
115 #define strtol xcestrtol
116 #define strtoul xcestrtoul
118 XCE_EXPORT int xcestrnicmp(const char *first, const char *last, size_t count);
119 #define strnicmp xcestrnicmp
121 XCE_EXPORT int xceumask(int mask);
122 #define umask xceumask
124 XCE_EXPORT int xceisatty(int fd);
125 #define isatty xceisatty
127 XCE_EXPORT int xcechsize(int fd, unsigned long size);
128 #define chsize xcechsize
130 XCE_EXPORT char *xcegetlogin();
131 #define getlogin xcegetlogin
133 XCE_EXPORT DWORD XCEAPI XCEGetModuleFileNameA(HMODULE hModule, LPTSTR lpName, DWORD nSize);
134 XCE_EXPORT HMODULE XCEAPI XCEGetModuleHandleA(const char *lpName);
135 XCE_EXPORT FARPROC XCEAPI XCEGetProcAddressA(HMODULE hMod, const char *name);
137 /* //////////////////////////////////////////////////////////////////// */
139 #define getgid xcegetgid
140 #define getegid xcegetegid
141 #define geteuid xcegeteuid
142 #define setgid xcesetgid
144 #define strupr xcestrupr
147 XCE_EXPORT BOOL XCEFreeEnvironmentStrings(LPCSTR buf);
148 #define GetEnvironmentStrings XCEGetEnvironmentStrings
149 #define FreeEnvironmentStrings XCEFreeEnvironmentStrings
151 void wce_hitreturn();