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... */
25 XCE_EXPORT double xceatof(const char *);
26 XCE_EXPORT int xcetoupper(int c);
27 XCE_EXPORT int xcetolower(int c);
29 #define toupper xcetoupper
30 #define tolower xcetolower
32 double atof(const char *);
35 XCE_EXPORT void XCEShowMessageA(const char *fmt, ...);
38 #define gmtime xcegmtime
39 #define localtime xcelocaltime
40 #define asctime xceasctime
41 /* #define utime xceutime */
42 #define futime xcefutime
43 #define ftime xceftime
44 #define ctime xcectime
45 #define gettimeofday xcegettimeofday
47 XCE_EXPORT int xcesetuid(uid_t id);
48 XCE_EXPORT int xceseteuid(uid_t id);
49 XCE_EXPORT int xcegetuid();
50 XCE_EXPORT int xcegeteuid();
52 XCE_EXPORT int xcesetgid(int id);
53 XCE_EXPORT int xcesetegid(int id);
54 XCE_EXPORT int xcegetgid();
55 XCE_EXPORT int xcegetegid();
57 #define setuid xcesetuid
58 #define getuid xcegetuid
59 #define geteuid xcegeteuid
60 #define seteuid xceseteuid
62 #define setgid xcesetgid
63 #define getgid xcegetgid
64 #define getegid xcegetegid
65 #define setegid xcesetegid
67 XCE_EXPORT int xcechown(const char *filename, int owner, int group);
68 #define chown xcechown
70 XCE_EXPORT char *xcestrrchr(const char * string, int ch);
71 #define strrchr xcestrrchr
73 XCE_EXPORT void (*xcesignal(int, void (*)(int)))(int);
74 XCE_EXPORT int xceraise(int);
75 #define signal xcesignal
76 #define raise xceraise
78 XCE_EXPORT int xcecreat(const char *filename, int pmode);
79 XCE_EXPORT int xceopen(const char *fname, int mode, ...);
80 XCE_EXPORT int xceread(int fd, void *buf, int size);
81 XCE_EXPORT int xcewrite(int fd, void *buf, int size);
82 XCE_EXPORT int xceclose(int fd);
83 XCE_EXPORT off_t xcelseek(int fd, int off, int whence);
85 XCE_EXPORT char *xcestrupr(char *string);
86 XCE_EXPORT char *xcestrlwr(char *string);
87 #define strupr xcestrupr
88 #define strlwr xcestrlwr
90 XCE_EXPORT double xcestrtod(const char *s, char **errorptr);
91 XCE_EXPORT long xcestrtol(const char *s, char **errorptr, int base);
92 XCE_EXPORT unsigned long xcestrtoul(const char *s, char **errorptr, int base);
93 #define strtod xcestrtod
94 #define strtol xcestrtol
95 #define strtoul xcestrtoul
97 XCE_EXPORT int xcestrnicmp(const char *first, const char *last, size_t count);
98 #define strnicmp xcestrnicmp
100 XCE_EXPORT int xceumask(int mask);
101 #define umask xceumask
103 XCE_EXPORT int xceisatty(int fd);
104 #define isatty xceisatty
106 XCE_EXPORT int xcechsize(int fd, unsigned long size);
107 #define chsize xcechsize
109 XCE_EXPORT char *xcegetlogin();
110 #define getlogin xcegetlogin
112 XCE_EXPORT DWORD XCEAPI XCEGetModuleFileNameA(HMODULE hModule, LPTSTR lpName, DWORD nSize);
113 XCE_EXPORT HMODULE XCEAPI XCEGetModuleHandleA(const char *lpName);
114 XCE_EXPORT FARPROC XCEAPI XCEGetProcAddressA(HMODULE hMod, const char *name);
116 /* //////////////////////////////////////////////////////////////////// */
118 #define getgid xcegetgid
119 #define getegid xcegetegid
120 #define geteuid xcegeteuid
121 #define setgid xcesetgid
123 #define strupr xcestrupr
126 XCE_EXPORT LPVOID XCEGetEnvironmentStrings(VOID);
127 XCE_EXPORT BOOL XCEFreeEnvironmentStrings(LPCSTR buf);
128 #define GetEnvironmentStrings XCEGetEnvironmentStrings
129 #define FreeEnvironmentStrings XCEFreeEnvironmentStrings
131 void wce_hitreturn();