Home
last modified time | relevance | path

Searched refs:malloc (Results 326 - 350 of 2739) sorted by relevance

1...<<11121314151617181920>>...110

/third_party/curl/tests/unit/
H A Dunit1604.c49 char *buf = malloc(256); in getflagstr()
66 char *buf = malloc(256); in getcurlcodestr()
/third_party/elfutils/libdw/
H A Ddwarf_getalt.c63 char *path = malloc (len); in __libdw_filepath()
80 char *path = malloc (len); in __libdw_filepath()
/third_party/ffmpeg/tests/
H A Daudiomatch.c81 data = malloc(datlen * sizeof(*data)); in main()
82 signal = malloc(siglen * sizeof(*signal)); in main()
/third_party/astc-encoder/Utils/
H A Dastc_rgbm_codec.cpp79 uint8_t* data_out = (uint8_t*)malloc(4 * dim_y * dim_x); in main()
137 float* data_out = (float*)malloc(4 * dim_y * dim_x * sizeof(float)); in main()
/third_party/astc-encoder/Source/
H A Dastcenccli_image_external.cpp141 wuffs_base__slice_u8 workbuf_slice = wuffs_base__make_slice_u8((uint8_t*)malloc(workbuf_len), workbuf_len); in load_png_with_wuffs()
147 wuffs_base__slice_u8 pixbuf_slice = wuffs_base__make_slice_u8((uint8_t*)malloc(num_pixels * 4), num_pixels * 4); in load_png_with_wuffs()
/third_party/backends/backend/escl/
H A Descl_png.c145 surface = (unsigned char *)malloc (sizeof (unsigned char) * w in get_PNG_data()
154 row_pointers = (png_bytep *)malloc (sizeof (png_bytep) * h); in get_PNG_data()
/third_party/curl/lib/
H A Dcurl_multibyte.c51 str_w = malloc(str_w_len * sizeof(wchar_t)); in curlx_convert_UTF8_to_wchar()
73 str_utf8 = malloc(bytes); in curlx_convert_wchar_to_UTF8()
/third_party/cJSON/tests/
H A Dparse_examples.c62 test_path = (char*)malloc(sizeof(TEST_DIR_PATH) + test_name_length); in do_test()
64 expected_path = (char*)malloc(sizeof(TEST_DIR_PATH) + test_name_length + sizeof(".expected")); in do_test()
/third_party/icu/icu4c/source/test/cintltst/
H A Dccurrtst.c145 sortKey1=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in currTest()
149 sortKey2=(uint8_t*)malloc(sizeof(uint8_t) * (sortklen+1)); in currTest()
H A Dhpmufn.c69 retStr = (char *)malloc(strlen(dataDir)+1); in safeGetICUDataDirectory()
79 * Implemented on top of the standard malloc heap.
90 char *retPtr = (char *)malloc(size+sizeof(ctest_AlignedMemory)); in myMemAlloc()
/third_party/FreeBSD/sys/arm/arm/
H A Dnexus.c46 #include <sys/malloc.h>
99 dr = malloc(sizeof(struct devclass_res) + strlen(devclass_name) + 1); in get_resource_list()
/third_party/libuv/test/
H A Dtest-ipc-heavy-traffic-deadlock-bug.c68 write_info = malloc(sizeof *write_info); in do_write()
84 buf->base = malloc(suggested_size); in alloc_cb()
H A Dtest-getaddrinfo.c142 getaddrinfo_handle = (uv_getaddrinfo_t*)malloc(sizeof(uv_getaddrinfo_t)); in TEST_IMPL()
193 data = (int*)malloc(sizeof(int)); in TEST_IMPL()
/third_party/libwebsockets/lib/core/
H A Dalloc.c29 #include <malloc.h>
63 return malloc(size); in TEE_Malloc()
/third_party/mesa3d/src/amd/common/
H A Dac_sqtt.c108 record = malloc(sizeof(struct rgp_pso_correlation_record)); in ac_sqtt_add_pso_correlation()
133 record = malloc(sizeof(struct rgp_loader_events_record)); in ac_sqtt_add_code_object_loader_event()
/third_party/ltp/testcases/kernel/controllers/memctl/
H A Dmemctl_test01.c170 array_of_chunks = malloc(sizeof(record_t *) * num_of_chunks); in allocate_memory()
179 array_of_chunks[i] = malloc(chunk_size); in allocate_memory()
/third_party/node/test/node-api/test_async_cleanup_hook/
H A Dbinding.c19 struct AsyncData* data = (struct AsyncData*) malloc(sizeof(struct AsyncData)); in CreateAsyncData()
62 napi_ref* ref = malloc(sizeof(*ref)); in CreateObjectWrap()
/third_party/musl/porting/liteos_a/user/src/network/
H A Dserv.c62 if ((sd = malloc(sizeof(struct servdata))) == NULL) { in getservent()
99 if ((sd = malloc(sizeof(struct servdata))) == NULL) { in setservent()
H A Dether.c93 temp_addr = (struct ether_addr *)malloc(sizeof(struct ether_addr)); in ether_ntohost()
122 temp_addr = (struct ether_addr *)malloc(sizeof(struct ether_addr)); in ether_hostton()
/third_party/musl/libc-test/src/regression/
H A Dmalloc-encode-pointer.c67 d0 = malloc(MALLOC_SIZE_S); in child()
75 d1 = malloc(MALLOC_SIZE_L); in child()
H A Dmalloc-multi-thread-performance.c1 #include <malloc.h>
46 ptr[num] = malloc(size); in func()
48 t_error("Thread %d malloc failed for size %u\n", *val, size); in func()
/third_party/musl/src/network/
H A Dserv.c69 if ((sd = malloc(sizeof(struct servdata))) == NULL) { in getservent()
112 if ((sd = malloc(sizeof(struct servdata))) == NULL) { in setservent()
H A Dether.c101 temp_addr = (struct ether_addr *)malloc(sizeof(struct ether_addr)); in ether_ntohost()
134 temp_addr = (struct ether_addr *)malloc(sizeof(struct ether_addr)); in ether_hostton()
/third_party/musl/src/stdio/
H A Dopen_memstream.c71 if (!(f=malloc(sizeof *f))) return 0; in open_memstream()
72 if (!(buf=malloc(sizeof *buf))) { in open_memstream()
H A Dofl.c63 fsb = (FILE *)malloc(DEFAULT_ALLOC_FILE * sizeof(FILE)); in __ofl_alloc()
65 fsb = (unsigned char *)malloc(DEFAULT_ALLOC_FILE * sizeof(FILE)); in __ofl_alloc()

Completed in 9 milliseconds

1...<<11121314151617181920>>...110