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