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