5 #include <msvcrt/errno.h>
6 #include <msvcrt/process.h>
9 unsigned long _beginthreadex(
12 unsigned (__stdcall *start_address)(void*),
20 * Just call the API function. Any CRT specific processing is done in
21 * DllMain DLL_THREAD_ATTACH
23 NewThread = CreateThread(security, stack_size, start_address, arglist, initflag, thrdaddr);
24 if (NULL == NewThread)
26 /* FIXME map GetLastError() to errno */
30 return (unsigned long) NewThread;
34 void _endthreadex(unsigned retval)
37 * Just call the API function. Any CRT specific processing is done in
38 * DllMain DLL_THREAD_DETACH