add a missing section header table index conversion
[tangerine.git] / compiler / clib / include / sys / arosc.h
blob46ccaf686e03b359fbe5047396ae912c1958e4bf
1 #ifndef _SYS_AROSC_H
2 #define _SYS_AROSC_H
4 #include <sys/cdefs.h>
6 struct __sFILE;
8 struct arosc_userdata
10 /* stdio.h */
11 struct __sFILE *acud_stdin;
12 struct __sFILE *acud_stdout;
13 struct __sFILE *acud_stderr;
15 /* errno.h */
16 int acud_errno;
18 const unsigned short int *acud_ctype_b;
19 const int *acud_ctype_toupper;
20 const int *acud_ctype_tolower;
22 /* Used by time.h functions */
23 int acud_daylight;
24 long int acud_timezone;
25 char **acud_tzname;
27 /* Used by multi-byte functions */
28 int acud_mb_cur_max;
31 __BEGIN_DECLS
33 struct arosc_userdata *__get_arosc_userdata(void) __pure;
34 int __arosc_nixmain(int (*main)(int argc, char *argv[]), int argc, char *argv[]);
36 __END_DECLS
38 enum
40 #undef SYSTEM_CALL
41 #define SYSTEM_CALL(x, y...) __arosc_enum_version_ ## x,
42 #include <sys/syscall.def>
43 AROSC_VERSION
44 #undef SYSTEM_CALL
47 #endif /* !_SYS_AROSC_H */