source: trunk/src/emx/include/emx/startup.h@ 2254

Last change on this file since 2254 was 2254, checked in by bird, 20 years ago

o LIBC_ASSERT*() are for internal libc errors, LIBCLOG_ERROR*() are

for user related error. Big code adjustements.

o Fixed a few smaller issues.
o Started fixing exec() backend.

  • Property cvs2svn:cvs-rev set to 1.7
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.5 KB
Line 
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
10unsigned _System _DLL_InitTerm(unsigned, unsigned);
11extern int _CRT_init(void);
12extern void _CRT_term(void);
13extern void __ctordtorInit(void);
14extern void __ctordtorTerm(void);
15
16extern void __ctordtorInit1(int *);
17extern void __ctordtorTerm1(int *);
18
19/** init and term vectors.
20 * @{
21 */
22/** Array of CRT init functions. */
23extern int __crtinit1__;
24/** Array of CRT exit functions. */
25extern int __crtexit1__;
26/** Array of exception handlers something. */
27extern int __eh_init__;
28/** Array of exception handlers something. */
29extern int __eh_term__;
30/** Array of constructors. */
31extern int __CTOR_LIST__;
32/** Array of destructors. */
33extern 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
53extern char ** _org_environ;
54
55__END_DECLS
56
57#endif /* not _EMX_STARTUP_H */
Note: See TracBrowser for help on using the repository browser.