#include <corecrt_internal.h>
#include <corecrt_internal_traits.h>
#include <stddef.h>
#include <process.h>
#include <stdarg.h>
Go to the source code of this file.
|
| template<typename Character > |
| static intptr_t __cdecl | common_spawnl (bool const pass_environment, int const mode, Character const *const file_name, Character const *const arguments, va_list varargs) throw () |
| |
| intptr_t __cdecl | _execl (char const *const file_name, char const *const arguments,...) |
| |
| intptr_t __cdecl | _execle (char const *const file_name, char const *const arguments,...) |
| |
| intptr_t __cdecl | _spawnl (int const mode, char const *const file_name, char const *const arguments,...) |
| |
| intptr_t __cdecl | _spawnle (int const mode, char const *const file_name, char const *const arguments,...) |
| |
| intptr_t __cdecl | _wexecl (wchar_t const *const file_name, wchar_t const *const arguments,...) |
| |
| intptr_t __cdecl | _wexecle (wchar_t const *const file_name, wchar_t const *const arguments,...) |
| |
| intptr_t __cdecl | _wspawnl (int const mode, wchar_t const *const file_name, wchar_t const *const arguments,...) |
| |
| intptr_t __cdecl | _wspawnle (int const mode, wchar_t const *const file_name, wchar_t const *const arguments,...) |
| |
◆ _execl()
Definition at line 55 of file spawnl.cpp.
60{
64}
static intptr_t __cdecl common_spawnl(bool const pass_environment, int const mode, Character const *const file_name, Character const *const arguments, va_list varargs)
◆ _execle()
◆ _spawnl()
◆ _spawnle()
◆ _wexecl()
This file has no copyright assigned and is placed in the Public Domain. This file is part of the Wine project.
Definition at line 101 of file spawnl.cpp.
◆ _wexecle()
◆ _wspawnl()
◆ _wspawnle()
◆ common_spawnl()
Definition at line 19 of file spawnl.cpp.
26{
28
33
34 Character* arguments_buffer[64];
35 Character** const captured_arguments = traits::capture_argv(
36 &varargs,
37 arguments,
38 &arguments_buffer[0],
39 64);
40
42
43 __crt_unique_heap_ptr<Character*> const captured_arguments_cleanup(
44 captured_arguments == arguments_buffer ? nullptr : captured_arguments);
45
46 Character const* const* const environment = pass_environment
47 ?
va_arg(varargs, Character
const*
const*)
49
50 return traits::tspawnve(
mode,
file_name, captured_arguments, environment);
51}
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
#define _VALIDATE_RETURN_NOEXC(expr, errorcode, retexpr)
Referenced by _execl(), _execle(), _spawnl(), _spawnle(), _wexecl(), _wexecle(), _wspawnl(), and _wspawnle().