Subversion Repositories Kolibri OS

Rev

Rev 4874 | Rev 6068 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 5198
Line 35... Line 35...
35
extern int main (int, char **, char **);
35
extern int main (int, char **, char **);
Line 36... Line 36...
36
 
36
 
37
int   _errno;
37
int   _errno;
Line 38... Line -...
38
int   _fmode;
-
 
39
 
-
 
40
char  __appcwd[1024];
-
 
41
int   __appcwdlen;
38
int   _fmode;
42
 
39
 
Line 43... Line 40...
43
int    _argc;
40
int    _argc;
Line 96... Line 93...
96
    __cpu_features_init ();   /* Do we have SSE, etc.*/
93
    __cpu_features_init ();   /* Do we have SSE, etc.*/
97
//  _fpreset ();              /* Supplied by the runtime library. */
94
//  _fpreset ();              /* Supplied by the runtime library. */
Line 98... Line 95...
98
 
95
 
Line 99... Line -...
99
    __do_global_ctors();
-
 
100
 
-
 
101
    __appcwdlen = strrchr(&__pgmname[0], '/') - &__pgmname[0] + 1;
-
 
102
    __appcwdlen = __appcwdlen > 1023 ? 1023 : __appcwdlen;
-
 
103
    memcpy(__appcwd, &__pgmname, __appcwdlen);
-
 
104
    __appcwd[__appcwdlen] = 0;
-
 
105
 
-
 
106
    set_cwd(__appcwd);
96
    __do_global_ctors();
Line 107... Line 97...
107
 
97
 
108
    arg[0] = &__pgmname[0];
98
    arg[0] = &__pgmname[0];
109
 
99