Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / compiler / clib / include / sys / arosc.h
blob9e20e00c95e1eefcba7167695761e218f28f403c
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;
30 /* environ variable value */
31 char **acud_environ;
34 __BEGIN_DECLS
36 struct arosc_userdata *__get_arosc_userdata(void) __pure;
37 int __arosc_nixmain(int (*main)(int argc, char *argv[]), int argc, char *argv[]);
38 int __get_default_file(int file_descriptor, long* file_handle);
39 int __env_get_environ(char **environ, int size);
41 __END_DECLS
43 enum
45 #undef SYSTEM_CALL
46 #define SYSTEM_CALL(x, y...) __arosc_enum_version_ ## x,
47 #include <sys/syscall.def>
48 AROSC_VERSION
49 #undef SYSTEM_CALL
52 #endif /* !_SYS_AROSC_H */