mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
bb24d01a48
therefore it is not a proper subsystem, but it will be converted to native as soon as it begins working. It probably does NOT work under ROS. I tested it under NT 4.0 SP 6a. To see what it creates in the system name sapce, run WinObj, and HandleEx. If you run csrterm.exe, it tries to connect to psxss.exe, but then dies because the API to tell psxss to create a PSX process it not implemented yet. PSXDLL.DLL will connect to \POSIX+\ApiPort (initial code in psx/lib/psxdll/misc/init.c is mute). svn path=/trunk/; revision=2841
46 lines
977 B
C
46 lines
977 B
C
/* $Id: crt0w32.c,v 1.2 2002/04/10 21:30:21 ea Exp $
|
|
*
|
|
* PROJECT : ReactOS / POSIX+ personality
|
|
* FILE : subsys/psx/lib/crt0w32.c
|
|
* DESCRIPTION: startup code for POSIX+ applications.
|
|
* DATE : 2002-01-18
|
|
* AUTHOR : Emanuele Aliberti <eal@users.sf.net>
|
|
*/
|
|
|
|
extern void __stdcall __PdxInitializeData(int*,char***);
|
|
extern int main (int,char**,char**);
|
|
extern void exit(int);
|
|
|
|
/* ANSI ENVIRONMENT */
|
|
|
|
char **_environ = (char**) 0;
|
|
|
|
int errno = 0;
|
|
|
|
#ifdef __SUBSYSTEM_WINDOWS__
|
|
void WinMainCRTStartup (void)
|
|
#else
|
|
void mainCRTStartup (void)
|
|
#endif
|
|
{
|
|
char * argv[2] = {"none", 0};
|
|
|
|
/* TODO: parse the command line */
|
|
exit(main(1,argv,0));
|
|
}
|
|
|
|
void __main ()
|
|
{
|
|
/*
|
|
* Store in PSXDLL.DLL two well known global symbols
|
|
* references.
|
|
*/
|
|
__PdxInitializeData (& errno, & _environ); /* PSXDLL.__PdxInitializeData */
|
|
/* CRT initialization. */
|
|
#ifdef __SUBSYSTEM_WINDOWS__
|
|
WinMainCRTStartup ();
|
|
#else
|
|
mainCRTStartup ();
|
|
#endif
|
|
}
|
|
/* EOF */
|