compiler/clib: Added __get_arosc_userdata to arosc.library to make it compatible...
[AROS.git] / compiler / clib / arosc.conf
blob312c793b95c09a7a154f85f2adf47a6b3f47c757
1 ##begin config
2 version 42.0
3 libbase aroscbase
4 libbasetype struct aroscbase
5 options baserel,peridbase
6 ##end config
8 ##begin cdef
9 struct arosc_userdata;
10 #define _STDIO_H_NOMACRO
11 #include <stdio.h>
12 #include <stddef.h>
13 #include <stdlib.h>
14 #include <signal.h>
15 #include <termios.h>
16 #include <time.h>
17 #include <utime.h>
18 #include <dirent.h>
19 #include <wchar.h>
20 #include <wctype.h>
21 #include <regex.h>
22 #include <setjmp.h>
23 #include <sys/time.h>
24 #include <sys/times.h>
25 #include <sys/timeb.h>
26 #include <sys/stat.h>
27 #include <sys/mount.h>
28 #include <sys/utsname.h>
29 ##end cdef
31 ##begin cdefprivate
32 #include "arosc_gcc.h"
33 ##end cdefprivate
35 ##begin startup
36 #include "arosc_startup.c"
37 ##end startup
39 ##begin functionlist
40 FILE *fopen(const char * restrict filename, const char * restrict mode)
41 FILE *fdopen (int filedes, const char *mode)
42 int fclose(FILE *stream)
43 int printf(const char * restrict format, ...)
44 int vprintf(const char * restrict format, va_list arg)
45 int fprintf(FILE * restrict stream, const char * restrict format, ...)
46 int vfprintf(FILE * restrict stream, const char * restrict format, va_list arg)
47 int fputc(int c, FILE *stream)
48 int fputs(const char * restrict s, FILE * restrict stream)
49 int puts(const char *s)
50 int fflush(FILE *stream)
51 int fgetc(FILE *stream)
52 int ungetc(int c, FILE *stream)
53 char *fgets(char * restrict s, int n, FILE * restrict stream)
54 int feof(FILE *stream)
55 int ferror(FILE *stream)
56 int fileno(FILE *)
57 FILE *freopen(const char * restrict filename, const char * restrict mode, FILE * restrict stream)
58 void clearerr(FILE *stream)
59 size_t fread(void * restrict ptr, size_t size, size_t nmemb, FILE * restrict stream)
60 size_t fwrite(const void * restrict ptr, size_t size, size_t nmemb, FILE * restrict stream)
61 int rename(const char *from, const char *to)
62 int sprintf(char * restrict s, const char * restrict format, ...)
63 int vsprintf(char * restrict s, const char * restrict format, va_list arg)
64 int snprintf(char * restrict s, size_t n, const char * restrict format, ...)
65 int vsnprintf(char * restrict s, size_t n, const char * restrict format, va_list arg)
66 int scanf(const char * restrict format, ...)
67 int vscanf(const char * restrict format, va_list arg)
68 int fscanf(FILE * restrict stream, const char * restrict format, ...)
69 int vfscanf(FILE * restrict stream, const char * restrict format, va_list arg)
70 int sscanf(const char * restrict s, const char * restrict format, ...)
71 int vsscanf(const char * restrict s, const char * restrict format, va_list arg)
72 int fseek(FILE *stream, long int offset, int whence)
73 long int ftell(FILE *stream)
74 void rewind(FILE *stream)
75 int fgetpos(FILE * restrict stream, fpos_t * restrict pos)
76 int fsetpos(FILE *stream, const fpos_t *pos)
77 int remove(const char *filename)
78 void setbuf(FILE * restrict stream, char * restrict buf)
79 void setlinebuf(FILE *stream)
80 int setvbuf(FILE * restrict stream, char * restrict buf, int mode, size_t size)
81 int __vcformat (void * data, int (*outc)(int, void *), const char * format, va_list args)
82 int __vcscan (void * data, int (*getc)(void *), int (*ungetc)(int, void *), const char * format, va_list args)
83 int access(const char *path, int mode)
84 int close(int fd)
85 int dup(int oldfd)
86 int dup2(int oldfd, int newfd)
87 char *getcwd(char *buf, size_t size)
88 int isatty(int fd)
89 off_t lseek(int filedes, off_t offset, int whence)
90 ssize_t read(int d, void *buf, size_t nbytes)
91 int truncate(const char *path, off_t length)
92 int unlink(const char *path)
93 ssize_t write(int fd, const void *buf, size_t nbytes)
94 int open(const char * filename, int flags, ...)
95 int creat(const char * filename, int mode)
96 int utime(const char *filename, struct utimbuf *buf)
97 int abs(int j)
98 long labs(long j)
99 double atof(const char *nptr)
100 int atoi(const char *nptr)
101 long int atol(const char *nptr)
102 long int strtol(const char * restrict nptr, char ** restrict endptr, int base)
103 unsigned long int strtoul(const char * restrict nptr, char ** restrict endptr, int base)
104 double strtod(const char * restrict nptr, char ** restrict endptr)
105 int rand(void)
106 void srand(unsigned int seed)
107 double drand48(void)
108 double erand48(unsigned short int xsubi[3])
109 long int lrand48(void)
110 long int nrand48(unsigned short int xsubi[3])
111 long int mrand48(void)
112 long int jrand48(unsigned short int xsubi[3])
113 void srand48(long int seedval)
114 unsigned short int *seed48(unsigned short int seed16v[3])
115 void lcong48(unsigned short int param[7])
116 long random(void)
117 void srandom(unsigned seed)
118 char *initstate(unsigned seed, char *state, int n)
119 char *setstate(char *state)
120 void qsort(void * array, size_t count, size_t elementsize, int (*comparefunction)(const void * element1, const void * element2))
121 void *bsearch(const void * key, const void * base, size_t count, size_t size, int (*comparefunction)(const void *, const void *))
122 void *malloc(size_t size)
123 void *calloc(size_t count, size_t size)
124 void *realloc(void *oldmem, size_t newsize)
125 void free(void *memory)
126 char *getenv(const char *name)
127 int setenv(const char *name, const char *value, int overwrite)
128 int putenv(const char *string)
129 char *mktemp(char *)
130 int system(const char *string)
131 char *gcvt(double, int, char *)
132 int mkdir(const char *path, mode_t mode)
133 int stat(const char * restrict path, struct stat * restrict sb)
134 int fstat(int fd, struct stat *sb)
135 DIR *opendir(const char *filename)
136 struct dirent *readdir(DIR *dir)
137 void rewinddir(DIR *dir)
138 int closedir(DIR *dir)
139 long telldir(DIR *dir)
140 void seekdir(DIR *dir, off_t loc)
141 int gettimeofday(struct timeval * tv, struct timezone * tz)
142 int utimes(const char *file, struct timeval tvp[2])
145 size_t strftime(char *, size_t, const char *, const struct tm *)
146 char *strerror(int n)
147 void exit(int code)
148 void abort(void)
149 int chmod(const char *path, mode_t mode)
150 struct tm *localtime(const time_t *)
151 time_t time(time_t *)
152 struct tm *gmtime(const time_t *)
153 void perror(const char *s)
154 char *ctime(const time_t *)
155 clock_t clock(void)
156 int atexit(void (*func)(void))
157 int pipe(int filedes[2])
158 int fcntl(int fd, int cmd, ...)
159 double difftime(time_t, time_t)
160 int ftruncate(int fd, off_t length)
161 mode_t umask(mode_t numask)
162 void unsetenv(const char *name)
163 char *asctime(const struct tm *)
164 unsigned sleep(unsigned)
165 int chdir(const char *path)
166 int IoErr2errno( int ioerr )
167 time_t mktime(struct tm *)
168 div_t div(int numer, int denom)
169 ldiv_t ldiv(long int numer, long int denom)
170 int sigaction(int, const struct sigaction *, struct sigaction *)
171 int sigaddset(sigset_t *, int)
172 int sigemptyset(sigset_t *)
173 int fchmod(int fildes, mode_t mode)
174 int sigdelset(sigset_t *, int)
175 int sigfillset(sigset_t *)
176 int sigismember(const sigset_t *, int)
177 int sigpending(sigset_t *)
178 int sigprocmask(int, const sigset_t *, sigset_t *)
179 int sigsuspend(const sigset_t *)
180 char *tmpnam(char *s)
181 void updatestdio(void)
182 void __assert (const char *, const char *, unsigned int)
183 lldiv_t lldiv(long long int numer, long long int denom)
184 long long int strtoll(const char * restrict nptr, char ** restrict endptr, int base)
185 unsigned long long int strtoull(const char * restrict nptr, char ** restrict endptr, int base)
186 int on_exit(void (*func)(int, void *), void *)
187 pid_t getpid(void)
188 FILE *popen(const char *, const char *)
189 int stcd_l(const char * in, long * lvalue)
190 int stch_l(const char * in, long * lvalue)
191 int stcl_d(char * out, long lvalue)
192 int stcl_h(char * out, long lvalue)
193 int stcl_o(char * out, long lvalue)
194 int stco_l(const char * in, long * lvalue)
195 void *realloc_nocopy(void *oldmem, size_t newsize)
196 int getfsstat (struct statfs *, long, int)
197 __sighandler_t *signal(int, __sighandler_t *)
198 void _exit(int)
199 int kill(pid_t, int)
200 char *setlocale(int category, const char *locale)
201 int pclose(FILE *)
202 int mkstemp(char *)
203 int execvp(const char *path, char *const argv[])
204 int rmdir(const char *path)
205 uid_t getuid(void)
206 uid_t geteuid(void)
207 int __arosc_nixmain(int (*main)(int argc, char *argv[]), int argc, char *argv[])
208 int spawnv(int mode, const char *path, char *const argv[])
209 int chown(const char *path, uid_t owner, gid_t group)
210 int spawnvp(int mode, const char *path, char *const argv[])
211 ssize_t readlink(const char * restrict path, char * restrict buf, int bufsize)
212 struct passwd *getpwuid(uid_t uid)
213 struct group *getgrgid(gid_t gid)
214 gid_t getgid(void)
215 gid_t getegid(void)
216 struct passwd *getpwnam(const char *name)
217 void setpwent(void)
218 struct passwd *getpwent(void)
219 void endpwent(void)
220 int getgroups(int gidsetlen, gid_t *gidset)
221 struct group *getgrnam(const char *name)
222 void endgrent(void)
223 struct group *getgrent(void)
224 void setgrent(void)
225 int fchown(int fd, uid_t owner, gid_t group)
226 int fsync(int fd)
227 int link(const char *name1, const char *name2)
228 int symlink(const char *name1, const char *name2)
229 int mknod(const char *path, mode_t mode, dev_t dev)
230 pid_t getppid(void)
231 int execl(const char *path, const char *arg, ...)
232 pid_t getpgrp(void)
233 int ioctl(int fd, int request, ...)
234 pid_t wait(int *status)
235 int setuid(uid_t uid)
236 int setgid(gid_t gid)
237 int getw(FILE *stream)
238 int putw(int word, FILE *stream)
239 int getloadavg(double loadavg[], int n)
240 int raise(int)
241 clock_t times(struct tms *buffer)
242 int ftime(struct timeb *tp)
243 char *strsep(char **, const char *)
244 char *tempnam(const char *dir, const char *pfx)
245 FILE *tmpfile(void)
246 int posix_memalign(void **memptr, size_t alignment, size_t size)
247 struct tm *localtime_r(const time_t *, struct tm *)
248 struct tm *gmtime_r(const time_t *, struct tm *)
249 char *ctime_r(const time_t *, char *)
250 char *asctime_r(const struct tm *, char *)
251 char *basename(char *)
252 int dirfd(DIR *dir)
253 char *dirname(char *)
254 struct lconv *localeconv(void)
255 int iswalnum(wint_t wc)
256 int iswalpha(wint_t wc)
257 int iswcntrl(wint_t wc)
258 int iswdigit(wint_t wc)
259 int iswgraph(wint_t wc)
260 int iswlower(wint_t wc)
261 int iswprint(wint_t wc)
262 int iswpunct(wint_t wc)
263 int iswspace(wint_t wc)
264 int iswupper(wint_t wc)
265 int iswxdigit(wint_t wc)
266 int iswctype(wint_t wc, wctype_t desc)
267 wint_t towlower(wint_t wc)
268 wint_t towupper(wint_t wc)
269 wint_t towctrans(wint_t wc, wctrans_t desc)
270 wctrans_t wctrans(const char *property)
271 wctype_t wctype(const char *property)
272 size_t mbrtowc(wchar_t * restrict pwc, const char * restrict s, size_t n, mbstate_t * restrict ps)
273 size_t wcrtomb(char * restrict s, wchar_t wc, mbstate_t * restrict ps)
274 int regcomp(regex_t * __restrict, const char * __restrict, int)
275 size_t regerror(int, const regex_t * __restrict, char * __restrict, size_t)
276 int regexec(const regex_t * __restrict, const char * __restrict, size_t, regmatch_t * __restrict, int)
277 void regfree(regex_t *)
278 int putc(int, FILE *)
279 #.function fputc
280 int getc(FILE *)
281 #.function fgetc
282 int getchar(void)
283 char *gets(char *s)
284 size_t mbrlen(const char * restrict s, size_t n, mbstate_t * restrict ps)
285 int mbsinit(const mbstate_t *ps)
286 int __get_default_file(int file_descriptor, long* file_handle)
287 int statfs(const char *path, struct statfs *buf)
288 int usleep(useconds_t usec)
289 char *ttyname(int fd)
290 char *getlogin(void)
291 int fchdir(int fd)
292 int uname(struct utsname *name)
293 int __env_get_environ(char **environ, int size)
294 int execve(const char *filename, char *const argv[], char *const envp[])
295 char *strptime(const char *s, const char *format, struct tm *tm)
296 pid_t __vfork(jmp_buf env)
297 pid_t waitpid(pid_t pid, int *status, int options)
298 int execv(const char *path, char *const argv[])
299 int execlp(const char *file, const char *arg, ...)
300 int flock(int fd, int operation)
301 intmax_t strtoimax(const char *nptr, char **endptr, int base)
302 uintmax_t strtoumax(const char *nptr, char **endptr, int base)
303 void sharecontextwithchild(int share)
304 long sysconf(int name)
305 int lstat(const char *path, struct stat *sb)
306 void __arosc_program_startup(void)
307 void __arosc_program_end(void)
308 int nanosleep(const struct timespec *req, struct timespec *rem)
309 int fseeko(FILE *stream, off_t offset, int whence)
310 off_t ftello(FILE *stream)
311 long pathconf(const char *path, int name)
312 char *realpath(const char *path, char *resolved_path)
313 void sync()
314 int tcgetattr(int __fd, struct termios *__termios_p)
315 int tcsetattr(int __fd, int __optional_actions, const struct termios *__termios_p)
316 speed_t cfgetispeed(const struct termios *__termios_p)
317 speed_t cfgetospeed(const struct termios *__termios_p)
318 int cfsetispeed(struct termios *__termios_p, speed_t speed)
319 int cfsetospeed(struct termios *__termios_p, speed_t speed)
320 struct arosc_userdata *__get_arosc_userdata(void)
321 ##end functionlist