/reactos/sdk/lib/ucrt/inc/ |
H A D | internal_shared.h | 205 class __crt_unique_heap_ptr 209 __crt_unique_heap_ptr() : _ptr(nullptr) {} in __crt_unique_heap_ptr() function 210 __crt_unique_heap_ptr(T* ptr) : _ptr(ptr) {} in __crt_unique_heap_ptr() function 211 __crt_unique_heap_ptr(__crt_unique_heap_ptr&& from) : _ptr(from._ptr) { from._ptr = nullptr; } in __crt_unique_heap_ptr() function 212 ~__crt_unique_heap_ptr() { FreePolicy()(_ptr); } in ~__crt_unique_heap_ptr() 220 __crt_unique_heap_ptr& operator=(__crt_unique_heap_ptr&& from) 230 using __crt_scoped_stack_ptr = __crt_unique_heap_ptr<T, __crt_malloca_free_policy>; 232 #define _malloc_crt_t(t, n) (__crt_unique_heap_ptr<t>(static_cast<t*>(_malloc_crt((n) * sizeof(t)))… 233 #define _calloc_crt_t(t, n) (__crt_unique_heap_ptr<t>(static_cast<t*>(_calloc_crt((n), sizeof(t)))… 234 #define _recalloc_crt_t(t, p, n) (__crt_unique_heap_ptr<t>(static_cast<t*>(_recalloc_crt(p, (n), si…
|
/reactos/sdk/lib/ucrt/exec/ |
H A D | cenvarg.cpp | 45 __crt_unique_heap_ptr<Character> command_line(_calloc_crt_t(Character, command_line_count)); in construct_command_line() 106 __crt_unique_heap_ptr<Character> system_root_value; in construct_environment_block() 128 __crt_unique_heap_ptr<Character> const os_environment(traits::get_environment_from_os()); in construct_environment_block() 170 …__crt_unique_heap_ptr<Character> environment_block(_calloc_crt_t(Character, environment_block_coun… in construct_environment_block() 244 __crt_unique_heap_ptr<Character> command_line; in common_pack_argv_and_envp() 248 __crt_unique_heap_ptr<Character> environment_block; in common_pack_argv_and_envp() 298 __crt_unique_heap_ptr<Character*> local_array; 324 …__crt_unique_heap_ptr<Character*> new_array(_recalloc_crt_t(Character*, local_array.get(), argv_co…
|
H A D | spawnv.cpp | 109 __crt_unique_heap_ptr<BYTE> handle_data(_calloc_crt_t(BYTE, handle_data_size)); in accumulate_inheritable_handles() 182 __crt_unique_heap_ptr<Character> command_line; in execute_command() 183 __crt_unique_heap_ptr<Character> environment_block; in execute_command() 194 __crt_unique_heap_ptr<BYTE> handle_data; in execute_command() 307 __crt_unique_heap_ptr<Character> buffer(_calloc_crt_t(Character, file_name_size)); in common_spawnv() 326 …__crt_unique_heap_ptr<Character const> const mutated_file_name_cleanup(file_name == mutated_file_n… in common_spawnv() 342 __crt_unique_heap_ptr<Character> const buffer(_calloc_crt_t(Character, buffer_size)); in common_spawnv()
|
H A D | spawnvp.cpp | 67 __crt_unique_heap_ptr<Character> path_value; in common_spawnvp() 75 __crt_unique_heap_ptr<Character> const owned_file_buffer(_calloc_crt_t(Character, _MAX_PATH)); in common_spawnvp()
|
H A D | system.cpp | 30 __crt_unique_heap_ptr<Character> comspec_value; in common_system()
|
H A D | spawnlp.cpp | 43 __crt_unique_heap_ptr<Character*> const captured_arguments_cleanup( in common_spawnlp()
|
H A D | spawnl.cpp | 43 __crt_unique_heap_ptr<Character*> const captured_arguments_cleanup( in common_spawnl()
|
/reactos/sdk/lib/ucrt/env/ |
H A D | environment_initialization.cpp | 115 __crt_unique_heap_ptr<Character*> environment(_calloc_crt_t(Character*, variable_count + 1)); in create_environment() 129 __crt_unique_heap_ptr<Character> variable(_calloc_crt_t(Character, required_count)); in create_environment() 179 __crt_unique_heap_ptr<Character> const os_environment(traits::get_environment_from_os()); in common_initialize_environment_nolock() 183 __crt_unique_heap_ptr<Character*> crt_environment(create_environment(os_environment.get())); in common_initialize_environment_nolock() 256 __crt_unique_heap_ptr<Character> buffer(_calloc_crt_t(Character, required_count)); in initialize_environment_by_cloning_nolock()
|
H A D | putenv.cpp | 70 __crt_unique_heap_ptr<Character> buffer(_calloc_crt_t(Character, buffer_count)); in create_environment_string() 92 __crt_unique_heap_ptr<Character> buffer(_calloc_crt_t(Character, buffer_count)); in create_environment_string() 118 __crt_unique_heap_ptr<other_char_type> buffer(_calloc_crt_t(other_char_type, buffer_count)); in set_variable_in_other_environment() 178 __crt_unique_heap_ptr<Character> new_option(create_environment_string(name, value)); in common_putenv_nolock()
|
H A D | get_environment_from_os.cpp | 64 __crt_unique_heap_ptr<wchar_t> buffer(_malloc_crt_t(wchar_t, required_count)); in __dcrt_get_wide_environment_from_os() 102 __crt_unique_heap_ptr<char> buffer(_malloc_crt_t(char, required_narrow_count)); in __dcrt_get_narrow_environment_from_os()
|
H A D | setenv.cpp | 49 __crt_unique_heap_ptr<Character*> new_environment(_calloc_crt_t(Character*, entry_count + 1)); in copy_environment() 174 __crt_unique_heap_ptr<Character> owned_option(option); in common_set_variable_in_environment_nolock() 337 __crt_unique_heap_ptr<Character> const buffer(_calloc_crt_t(Character, count)); in common_set_variable_in_environment_nolock()
|
H A D | searchenv.cpp | 75 __crt_unique_heap_ptr<Character> const path_string_cleanup(path_string); in common_searchenv_s() 98 __crt_unique_heap_ptr<Character> path_buffer_cleanup(path_buffer == local_path_buffer in common_searchenv_s()
|
/reactos/sdk/lib/ucrt/stdio/ |
H A D | tempnam.cpp | 36 __crt_unique_heap_ptr<Character> destination(_calloc_crt_t(Character, destination_length)); in strip_quotes() 84 __crt_unique_heap_ptr<Character const> tmp(get_tmp_directory<Character>()); in get_directory() 91 __crt_unique_heap_ptr<Character const> unquoted_tmp(strip_quotes(tmp.get())); in get_directory() 209 …__crt_unique_heap_ptr<Character const> const directory_cleanup(get_directory(alternative, &directo… in common_tempnam() 219 __crt_unique_heap_ptr<Character, __crt_public_free_policy> result( in common_tempnam()
|
/reactos/sdk/lib/ucrt/conio/ |
H A D | popen.cpp | 199 __crt_unique_heap_ptr<Character> buffer(_calloc_crt_t(Character, MAX_PATH)); in get_executable_path() 203 __crt_unique_heap_ptr<Character const> path(get_path<Character>()); in get_executable_path() 271 __crt_unique_heap_ptr<Character const> const comspec_variable(get_comspec<Character>()); in common_popen_nolock() 293 … __crt_unique_heap_ptr<Character> const command_line(_calloc_crt_t(Character, command_line_count)); in common_popen_nolock() 308 __crt_unique_heap_ptr<Character const> const owned_final_exe_path(selected_cmd_exe != cmd_exe in common_popen_nolock()
|
/reactos/sdk/lib/ucrt/time/ |
H A D | strftime.cpp | 28 __crt_unique_heap_ptr<char> buffer(_malloc_crt_t(char, length + 1)); in _Getdays_l() 66 __crt_unique_heap_ptr<char> buffer(_malloc_crt_t(char, length + 1)); in _Getmonths_l() 147 __crt_unique_heap_ptr<wchar_t> const wstring(_malloc_crt_t(wchar_t, maxsize)); in _Strftime_l()
|
H A D | tzset.cpp | 90 __crt_unique_heap_ptr<wchar_t> dynamic_buffer(_malloc_crt_t(wchar_t, required_length)); in get_tz_environment_variable() 353 __crt_unique_heap_ptr<wchar_t> tz_env_cleanup(tz_env == local_env_buffer in tzset_nolock()
|
/reactos/sdk/lib/ucrt/startup/ |
H A D | argv_parsing.cpp | 285 __crt_unique_heap_ptr<unsigned char> buffer(_calloc_crt_t(unsigned char, total_size)); in __acrt_allocate_buffer_for_argv() 357 __crt_unique_heap_ptr<unsigned char> buffer(__acrt_allocate_buffer_for_argv( in common_configure_argv() 378 __crt_unique_heap_ptr<Character*> expanded_argv; in common_configure_argv()
|
H A D | argv_wildcards.cpp | 103 … __crt_unique_heap_ptr<Character*> new_array(_recalloc_crt_t(Character*, _first, new_count)); in expand_if_necessary() 152 __crt_unique_heap_ptr<Character> argument_buffer(_calloc_crt_t(Character, required_count)); in copy_and_add_argument_to_buffer() 350 __crt_unique_heap_ptr<unsigned char> expanded_argv(__acrt_allocate_buffer_for_argv( in common_expand_argv_wildcards()
|
H A D | thread.cpp | 70 using unique_thread_parameter = __crt_unique_heap_ptr<
|
/reactos/sdk/lib/ucrt/locale/ |
H A D | GetLocaleInfoA.cpp | 112 __crt_unique_heap_ptr<char> dynamic_buffer(_calloc_crt_t(char, required_length)); in __acrt_GetLocaleInfoA() 133 __crt_unique_heap_ptr<wchar_t> dynamic_buffer(_calloc_crt_t(wchar_t, required_length)); in __acrt_GetLocaleInfoA()
|
H A D | setlocale.cpp | 23 __crt_unique_heap_ptr<wchar_t> wide_locale(_calloc_crt_t(wchar_t, size)); in call_wsetlocale()
|
H A D | inittime.cpp | 85 __crt_unique_heap_ptr<__crt_lc_time_data> lc_time = _calloc_crt_t(__crt_lc_time_data, 1); in get_or_create_lc_time()
|
/reactos/sdk/lib/ucrt/misc/ |
H A D | wperror.cpp | 51 __crt_unique_heap_ptr<char> const narrow_user_prefix(_calloc_crt_t(char, required_count)); in _wperror()
|
H A D | drive.cpp | 37 __crt_unique_heap_ptr<wchar_t> const heap_cwd(_calloc_crt_t(wchar_t, cwd_length + 1)); in _getdrive()
|
/reactos/sdk/lib/ucrt/lowio/ |
H A D | chsize.cpp | 83 __crt_unique_heap_ptr<char> const zero_buffer(_calloc_crt_t(char, _INTERNAL_BUFSIZ)); in _chsize_nolock_internal()
|