Home
last modified time | relevance | path

Searched refs:malloc (Results 426 - 450 of 4606) sorted by relevance

1...<<11121314151617181920>>...185

/third_party/cups-filters/filter/foomatic-rip/
H A Dutil.c361 tmp = malloc(len +1); in make_absolute_path()
364 cwd = malloc(len); in make_absolute_path()
439 argv = malloc((cnt +1) * sizeof(char *)); in argv_split()
446 s = malloc(len + 1); in argv_split()
570 dstr_t *ds = malloc(sizeof(dstr_t)); in create_dstr()
573 ds->data = malloc(ds->alloc); in create_dstr()
733 ds->data = malloc(ds->alloc); in fgetdstr()
798 ds->data = malloc(ds->alloc); in dstrinsert()
819 strf = malloc(len +1); in dstrinsertf()
934 list_t *l = malloc(sizeo in list_create()
[all...]
/third_party/lz4/programs/
H A Dlz4io.c51 #include <stdlib.h> /* malloc, free */
150 LZ4IO_prefs_t* const ret = (LZ4IO_prefs_t*)malloc(sizeof(*ret)); in LZ4IO_defaultPreferences()
438 in_buff = (char*)malloc(LEGACY_BLOCKSIZE); in LZ4IO_compressFilename_Legacy()
439 out_buff = (char*)malloc((size_t)outBuffSize + 4); in LZ4IO_compressFilename_Legacy()
505 char* dstFileName = (char*)malloc(FNSPACE); in LZ4IO_compressMultipleFilenames_Legacy()
524 dstFileName = (char*)malloc(ofnSize); in LZ4IO_compressMultipleFilenames_Legacy()
562 char* circularBuf = (char*)malloc(circularBufSize); in LZ4IO_createDict()
598 dictBuf = (char *)malloc(dictLen ? dictLen : 1); in LZ4IO_createDict()
633 ress.srcBuffer = malloc(blockSize); in LZ4IO_createCResources()
636 ress.dstBuffer = malloc(res in LZ4IO_createCResources()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dcgroup_util.c61 char *ret = malloc(len); in cg_name()
71 char *ret = malloc(len); in cg_name_indexed()
81 char *ret = malloc(len); in cg_control()
113 buf = malloc(size); in cg_read_strcmp()
487 buf = malloc(size); in alloc_anon()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/
H A Ddemand_paging_test.c268 guest_data_prototype = malloc(perf_test_args.host_page_size); in run_test()
273 vcpu_threads = malloc(nr_vcpus * sizeof(*vcpu_threads)); in run_test()
280 malloc(nr_vcpus * sizeof(*uffd_handler_threads)); in run_test()
283 uffd_args = malloc(nr_vcpus * sizeof(*uffd_args)); in run_test()
286 pipefds = malloc(sizeof(int) * nr_vcpus * 2); in run_test()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dvalues.c15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
16 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
25 values->counterrawid = malloc(values->counters_max in perf_read_values_init()
27 values->countername = malloc(values->counters_max in perf_read_values_init()
208 counterwidth = malloc(values->counters * sizeof(*counterwidth)); in perf_read_values__display_pretty()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dvalues.c15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
16 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
25 values->counterrawid = malloc(values->counters_max in perf_read_values_init()
27 values->countername = malloc(values->counters_max in perf_read_values_init()
208 counterwidth = malloc(values->counters * sizeof(*counterwidth)); in perf_read_values__display_pretty()
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dcgroup_util.c58 char *ret = malloc(len); in cg_name()
68 char *ret = malloc(len); in cg_name_indexed()
78 char *ret = malloc(len); in cg_control()
110 buf = malloc(size); in cg_read_strcmp()
500 buf = malloc(size); in alloc_anon()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dmmanndk.cpp25 #include <malloc.h>
190 char *memory = static_cast<char *>(malloc(TEST_SIZE)); in MUnLock()
205 char *memory = static_cast<char *>(malloc(TEST_SIZE)); in MUnLockAll()
244 char *mem = static_cast<char *>(malloc(sizeof(char) * lenV)); in MLock()
269 char *mem = static_cast<char *>(malloc(sizeof(char) * lenV)); in MLock2()
/test/xts/acts/distributed_schedule_lite/system_ability_manager_hal/src/
H A Dsendresponse_func_test.c361 request.data = malloc(request.len);
393 request.data = malloc(request.len);
425 request.data = malloc(request.len);
457 request.data = malloc(request.len);
491 request.data = malloc(request.len);
/third_party/ffmpeg/libavutil/
H A Dmem.c37 #include <malloc.h>
51 #define malloc AV_JOIN(MALLOC_PREFIX, malloc) macro
57 void *malloc(size_t size);
137 * BTW, malloc seems to do 8-byte alignment by default here. in av_malloc()
140 ptr = malloc(size); in av_malloc()
/third_party/alsa-utils/bat/
H A Danalyze.c307 na.source = (float *)malloc(sizeof(float) * nsamples); in calculate_noise()
313 na.target = (float *)malloc(sizeof(float) * nsamples); in calculate_noise()
379 source = (float *)malloc(sizeof(float) * bat->frames); in find_and_check_noise()
404 p = malloc(bat->frames * bat->frame_size); in reorder_data()
457 bat->buf = malloc(bat->frames * bat->frame_size); in analyze_capture()
/third_party/icu/tools/multi/proj/icu4cscan/
H A Dtestxml.cpp227 rootdata = (UChar***)malloc((sizeof(scanArray)/sizeof(scanArray[0]))*sizeof(rootdata[0])); in initroot()
228 starts = (int*)malloc((sizeof(scanArray)/sizeof(scanArray[0]))*sizeof(starts[0])); in initroot()
232 rootdata[i]=(UChar**)malloc(thisCount*sizeof(rootdata[i][0])); in initroot()
242 rootdata[i][j]=(UChar*)malloc(1024); in initroot()
280 s = (UChar*) malloc(sizeof(UChar) * (len+1)); in date()
/third_party/libwebsockets/win32port/dirent/
H A Ddirent-win32.h35 #include <malloc.h>
367 dirp = (_WDIR*) malloc (sizeof (struct _WDIR)); in _wopendir()
392 dirp->patt = (wchar_t*) malloc (sizeof (wchar_t) * n + 16); in _wopendir()
689 dirp = (DIR*) malloc (sizeof (struct DIR)); in opendir()
935 tmp = (struct dirent*) malloc (sizeof (struct dirent)); in scandir()
/third_party/ltp/testcases/kernel/fs/ftest/
H A Dftest07.c297 if ((bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest()
300 if ((hold_bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest()
323 if (malloc((i + 1) * 8) == NULL) { in dotest()
332 if (malloc((i + 1) * 8) == NULL) { in dotest()
340 if (malloc((i + 1) * 8) == NULL) { in dotest()
H A Dftest03.c296 if ((bits = malloc((nchunks + 7) / 8)) == 0) { in dotest()
300 if ((hold_bits = malloc((nchunks + 7) / 8)) == 0) { in dotest()
320 if (malloc((i + 1) * 8) == NULL) { in dotest()
330 if (malloc((i + 1) * 8) == NULL) { in dotest()
340 if (malloc((i + 1) * 8) == NULL) { in dotest()
/third_party/ltp/testcases/realtime/func/rt-migrate/
H A Drt-migrate.c413 intervals = malloc(sizeof(stats_container_t) * nr_tasks); in main()
415 debug(DBG_ERR, "malloc failed\n"); in main()
418 intervals_length = malloc(sizeof(stats_container_t) * nr_tasks); in main()
420 debug(DBG_ERR, "malloc failed\n"); in main()
424 debug(DBG_ERR, "malloc failed\n"); in main()
425 intervals_loops = malloc(sizeof(stats_container_t) * nr_tasks); in main()
428 threads = malloc(sizeof(*threads) * nr_tasks); in main()
430 debug(DBG_ERR, "malloc failed\n"); in main()
445 thread_pids = malloc(sizeof(long) * nr_tasks); in main()
447 debug(DBG_ERR, "malloc thread_pid in main()
[all...]
/third_party/mindspore/test/utils/
H A Dcommon.cpp33 uint32_t *dim_buffer = reinterpret_cast<uint32_t *>(malloc(MAX_HEAD_SIZE * sizeof(uint32_t))); in getDimInfo()
81 uint32_t *memory = reinterpret_cast<uint32_t *>(malloc((dim_info[0] + 1) * sizeof(uint32_t))); in readTestDataFile()
89 uint32_t *data = reinterpret_cast<uint32_t *>(malloc((data_size) * sizeof(uint32_t))); in readTestDataFile()
431 char **charArr = static_cast<char **>(malloc(s.size() * sizeof(char *))); in TransStrVectorToCharArrays()
433 charArr[i] = static_cast<char *>(malloc((s[i].size() + 1))); in TransStrVectorToCharArrays()
/third_party/mindspore/test/fuzztest/mindspore_fuzzer/
H A Dcontext_c_fuzzer.cpp54 char *infoProvider = static_cast<char *>(malloc(size + 1)); in MSContextFuzzTest_Provider()
56 printf("malloc failed.\n"); in MSContextFuzzTest_Provider()
136 char *infoProvider = static_cast<char *>(malloc(size + 1)); in MSContextFuzzTest_Provider_Add1()
138 printf("malloc failed.\n"); in MSContextFuzzTest_Provider_Add1()
215 char *infoProvider = static_cast<char *>(malloc(size + 1)); in MSContextFuzzTest_Provider_Add2()
217 printf("malloc failed.\n"); in MSContextFuzzTest_Provider_Add2()
334 char *infoProvider = static_cast<char *>(malloc(size + 1)); in MSContextFuzzTest_Provider_Add3()
336 printf("malloc failed.\n"); in MSContextFuzzTest_Provider_Add3()
373 char *infoProvider = static_cast<char *>(malloc(size + 1)); in MSContextFuzzTest_Provider_Add4()
375 printf("malloc faile in MSContextFuzzTest_Provider_Add4()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/network/
H A Daccept4.c38 int *ret = (int *)malloc(sizeof(int)); in ServerTaskOne()
79 int *ret = (int *)malloc(sizeof(int)); in ServerTaskTwo()
120 int *ret = (int *)malloc(sizeof(int)); in ServerTaskThree()
161 int *ret = (int *)malloc(sizeof(int)); in ServerTaskFive()
202 int *ret = (int *)malloc(sizeof(int)); in ServerTaskSix()
/foundation/ability/ability_runtime/frameworks/cj/ffi/
H A Dcj_ability_delegator_args.cpp86 char** keysHead = static_cast<char**>(malloc(sizeof(char*) * params.size())); in FfiAbilityDelegatorArgsGetTestParam()
91 char** valuesHead = static_cast<char**>(malloc(sizeof(char*) * params.size())); in FfiAbilityDelegatorArgsGetTestParam()
/foundation/multimedia/audio_framework/frameworks/cj/src/
H A Dmultimedia_audio_stream_manager_impl.cpp53 auto head = static_cast<int32_t *>(malloc(sizeof(int32_t) * audioSceneEffectInfo.mode.size())); in GetAudioEffectInfoArray()
76 malloc(sizeof(CAudioCapturerChangeInfo) * audioCapturerChangeInfos.size())); in GetAudioCapturerInfoArray()
/foundation/resourceschedule/ffrt/benchmarks/fib/
H A Dfib.cpp89 y1 = reinterpret_cast<int *>(malloc(sizeof(int))); in FibFFRTNoWait()
90 y2 = reinterpret_cast<int *>(malloc(sizeof(int))); in FibFFRTNoWait()
/foundation/communication/ipc/services/dbinder/c/src/
H A Ddbinder_stub.c51 char *sessionName = (char *)malloc(sessionNameLen + 1); in CreateDatabusName()
128 IpcObjectStub *objectStub = (IpcObjectStub *)malloc(sizeof(IpcObjectStub)); in GetDBinderStub()
130 RPC_LOG_ERROR("objectStub malloc failed"); in GetDBinderStub()
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Dhistreamer_query_tool.cpp19 #include <malloc.h>
107 char* res = reinterpret_cast<char *>(malloc(MAX_MESSAGES_LEN)); in QueryHiStreamerPluginInfo()
/kernel/linux/linux-5.10/arch/um/os-Linux/
H A Dmain.c93 new_path = malloc(path_len); in setup_env_path()
95 perror("couldn't malloc to set a new PATH"); in setup_env_path()
118 new_argv = malloc((argc + 1) * sizeof(char *)); in main()
199 * glibc people insist that if malloc fails, errno should be in __wrap_malloc()
200 * set by malloc as well. So we do. in __wrap_malloc()
232 * anywhere else - malloc/free in __wrap_free()

Completed in 23 milliseconds

1...<<11121314151617181920>>...185