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