#include <precomp.h>
Go to the source code of this file.
◆ BlockEnvToEnvironA()
Definition at line 34 of file environ.c.
35{
36 char *
ptr, *environment_strings;
37 char **envptr;
40
41 TRACE(
"BlockEnvToEnvironA()\n");
42
44 if (environment_strings ==
NULL) {
45 return -1;
46 }
47
49 {
51
54 }
55
58 {
60 {
62
64 {
66 {
67 for (envptr--; envptr >=
_environ; envptr--)
72 return -1;
73 }
76 }
77 }
78
80 }
81
84}
ACPI_SIZE strlen(const char *String)
BOOL WINAPI FreeEnvironmentStringsA(IN LPSTR EnvironmentStrings)
GLuint GLuint GLsizei count
#define memcpy(s1, s2, n)
#define GetEnvironmentStringsA
Referenced by crt_process_init().
◆ BlockEnvToEnvironW()
Definition at line 86 of file environ.c.
87{
88 wchar_t *
ptr, *environment_strings;
89 wchar_t **envptr;
92
93 TRACE(
"BlockEnvToEnvironW()\n");
94
96 if (environment_strings ==
NULL) {
97 return -1;
98 }
99
101 {
103
106 }
107
110 {
112 {
114
116 {
118 {
119 for (envptr--; envptr >=
_wenviron; envptr--)
124 return -1;
125 }
128 }
129 }
130
132 }
133
136}
BOOL WINAPI FreeEnvironmentStringsW(IN LPWSTR EnvironmentStrings)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
LPWSTR WINAPI GetEnvironmentStringsW(void)
Referenced by crt_process_init().
◆ crt_process_init()
Definition at line 21 of file crt_init.c.
22{
24
25
33
34
37
40
43
45 {
48 }
49
52
53
55
56
58
59
60
61
63}
void msvcrt_init_io(void)
void msvcrt_init_mt_locks(void)
int BlockEnvToEnvironA(void)
void FreeEnvironment(char **environment)
BOOL msvcrt_init_heap(void)
int BlockEnvToEnvironW(void)
LPSTR WINAPI GetCommandLineA(VOID)
LPWSTR WINAPI GetCommandLineW(VOID)
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)
BOOL msvcrt_init_tls(void)
ULONG dwOSVersionInfoSize
struct _OSVERSIONINFOW OSVERSIONINFOW
Referenced by DllMain(), and msvcrt_init_exception().
◆ FreeEnvironment()
void FreeEnvironment |
( |
char ** |
environment | ) |
|
Internal function to deallocate environment block. Although it's parameter are defined as char**, it's able to work also with wide character environment block which are of type wchar_t**.
- Parameters
-
environment | Environment to free. |
Definition at line 190 of file environ.c.
191{
192 char **envptr;
193 for (envptr = environment; *envptr !=
NULL; envptr++)
196}
Referenced by crt_process_init().
◆ msvcrt_init_heap()
Definition at line 895 of file heap.c.
896{
897#ifdef __REACTOS__
899#else
901#endif
903}
HANDLE WINAPI HeapCreate(DWORD flOptions, SIZE_T dwInitialSize, SIZE_T dwMaximumSize)
Referenced by crt_process_init().
◆ msvcrt_init_io()
Definition at line 456 of file file.c.
457{
461
464 {
468
472
476 {
478 {
483 }
484
485 wxflag_ptr++; handle_ptr++;
486 }
487 }
488
493
496 }
498
503
506 }
508
513
516 }
518
522
524 for (
i = 0;
i < 3;
i++)
525 {
526
530 }
532}
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
#define INVALID_HANDLE_VALUE
DWORD WINAPI GetFileType(HANDLE hFile)
VOID WINAPI GetStartupInfoA(IN LPSTARTUPINFOA lpStartupInfo)
GLuint GLuint GLsizei GLenum type
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static ioinfo * get_ioinfo_alloc_fd(int fd)
void release_ioinfo(ioinfo *info)
static void msvcrt_set_fd(ioinfo *fdinfo, HANDLE hand, int flag)
static ioinfo * get_ioinfo_nolock(int fd)
static int MSVCRT_stream_idx
#define STD_OUTPUT_HANDLE
#define FILE_TYPE_UNKNOWN
Referenced by crt_process_init().
◆ msvcrt_init_mt_locks()
Definition at line 54 of file lock.c.
55{
57
58 TRACE(
"initializing mtlocks\n" );
59
60
62 {
64 }
65
66
68}
static __inline void msvcrt_mlock_set_entry_initialized(int locknum, BOOL initialized)
static __inline void msvcrt_initialize_mlock(int locknum)
Referenced by crt_process_init().
◆ __initenv
◆ __winitenv
◆ _acmdln
◆ _environ
◆ _wcmdln
◆ _wenviron