| 1 | /* emx/startup.h (emx+gcc) */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef _EMX_STARTUP_H
|
|---|
| 4 | #define _EMX_STARTUP_H
|
|---|
| 5 |
|
|---|
| 6 | #include <sys/cdefs.h>
|
|---|
| 7 |
|
|---|
| 8 | __BEGIN_DECLS
|
|---|
| 9 |
|
|---|
| 10 | unsigned _System _DLL_InitTerm(unsigned, unsigned);
|
|---|
| 11 | extern int _CRT_init(void);
|
|---|
| 12 | extern void _CRT_term(void);
|
|---|
| 13 | extern void __ctordtorInit(void);
|
|---|
| 14 | extern void __ctordtorTerm(void);
|
|---|
| 15 |
|
|---|
| 16 | extern void __ctordtorInit1(int *);
|
|---|
| 17 | extern void __ctordtorTerm1(int *);
|
|---|
| 18 |
|
|---|
| 19 | /** init and term vectors.
|
|---|
| 20 | * @{
|
|---|
| 21 | */
|
|---|
| 22 | /** Array of CRT init functions. */
|
|---|
| 23 | extern int __crtinit1__;
|
|---|
| 24 | /** Array of CRT exit functions. */
|
|---|
| 25 | extern int __crtexit1__;
|
|---|
| 26 | /** Array of exception handlers something. */
|
|---|
| 27 | extern int __eh_init__;
|
|---|
| 28 | /** Array of exception handlers something. */
|
|---|
| 29 | extern int __eh_term__;
|
|---|
| 30 | /** Array of constructors. */
|
|---|
| 31 | extern int __CTOR_LIST__;
|
|---|
| 32 | /** Array of destructors. */
|
|---|
| 33 | extern int __DTOR_LIST__;
|
|---|
| 34 | /** @} */
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 | /* argv[i][-1] contains some flag bits: */
|
|---|
| 38 |
|
|---|
| 39 | #define _ARG_DQUOTE 0x01 /* Argument quoted (") */
|
|---|
| 40 | #define _ARG_RESPONSE 0x02 /* Argument read from response file */
|
|---|
| 41 | #define _ARG_WILDCARD 0x04 /* Argument expanded from wildcard */
|
|---|
| 42 | #define _ARG_ENV 0x08 /* Argument from environment */
|
|---|
| 43 | #define _ARG_NONZERO 0x80 /* Always set, to avoid end of string */
|
|---|
| 44 |
|
|---|
| 45 | /* Arrange that FUN will be called by _CRT_init(). */
|
|---|
| 46 |
|
|---|
| 47 | #define _CRT_INIT1(fun) __asm__ (".stabs \"___crtinit1__\", 23, 0, 0, _" #fun);
|
|---|
| 48 |
|
|---|
| 49 | /* Arrange that FUN will be called by _CRT_term(). */
|
|---|
| 50 |
|
|---|
| 51 | #define _CRT_EXIT1(fun) __asm__ (".stabs \"___crtexit1__\", 23, 0, 0, _" #fun);
|
|---|
| 52 |
|
|---|
| 53 | extern char ** _org_environ;
|
|---|
| 54 |
|
|---|
| 55 | __END_DECLS
|
|---|
| 56 |
|
|---|
| 57 | #endif /* not _EMX_STARTUP_H */
|
|---|