Home
last modified time | relevance | path

Searched refs:malloc (Results 26 - 50 of 2531) sorted by relevance

12345678910>>...102

/third_party/libuv/docs/code/dns/
H A Dmain.c9 buf->base = malloc(suggested_size); in alloc_buffer()
23 char *data = (char*) malloc(sizeof(char) * (nread+1)); in on_read()
53 uv_connect_t *connect_req = (uv_connect_t*) malloc(sizeof(uv_connect_t)); in on_resolved()
54 uv_tcp_t *socket = (uv_tcp_t*) malloc(sizeof(uv_tcp_t)); in on_resolved()
/third_party/icu/icu4c/source/test/cintltst/
H A Dcdtdptst.c64 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("EEE MMM dd HH:mm:ss.SSS zzz yyyy G")+1 )); in TestTwoDigitYearDSTParse()
78 s=(UChar*)malloc(sizeof(UChar) * (strlen("03-Apr-04 2:20:47 o'clock AM PST")+1) ); in TestTwoDigitYearDSTParse()
135 s=(UChar*)malloc(sizeof(UChar) * (strlen("01/01/1997 10:11:42 AM")+1) ); in TestPartialParse994()
169 str=(UChar*)malloc(sizeof(UChar) * (strlen(s) + 1) ); in tryPat994()
171 pat=(UChar*)malloc(sizeof(UChar) * (strlen(pattern) + 1) ); in tryPat994()
207 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("yyyyMMddHHmmssSSS")+1) ); in TestRunTogetherPattern985()
256 pattern=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestCzechMonths459()
260 tzID=(UChar*)malloc(sizeof(UChar) * 4); in TestCzechMonths459()
322 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("MM/dd/yyyy 'at' hh:mm:ss a zzz")+1) ); in TestQuotePattern161()
332 tzID=(UChar*)malloc(sizeo in TestQuotePattern161()
[all...]
H A Dcnmdptst.c90 unewp=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestPatterns()
104 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestPatterns()
142 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestQuotes()
171 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestQuotes()
256 upat=(UChar*)malloc(sizeof(UChar) * (strlen(pat[p])+1) ); in TestExponential()
275 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestExponential()
307 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestExponential()
353 pattern=(UChar*)malloc(sizeof(UChar) * (strlen("*#,##0.00;-*#,##0.00") + 1) ); in TestCurrencySign()
364 str=(UChar*)malloc(sizeof(UChar) * (lneed+1) ); in TestCurrencySign()
374 pat=(UChar*)malloc(sizeo in TestCurrencySign()
[all...]
/third_party/skia/third_party/externals/microhttpd/src/microspdy/
H A Dstructures.c46 if(NULL == (pair = malloc(sizeof(struct SPDY_NameValue)))) in SPDY_name_value_create()
85 if (NULL == (container->value = malloc(sizeof(char *)))) in SPDY_name_value_add()
116 if(NULL == (pair = malloc(sizeof(struct SPDY_NameValue)))) in SPDY_name_value_add()
126 if (NULL == (pair->value = malloc(sizeof(char *)))) in SPDY_name_value_add()
160 if (NULL == (temp_value = malloc((pair->num_values + 1) * sizeof(char *)))) in SPDY_name_value_add()
323 if(NULL == (response_to_queue = malloc(sizeof(struct SPDYF_Response_Queue)))) in SPDYF_response_queue_create()
330 if(NULL == (data_frame = malloc(sizeof(struct SPDYF_Data_Frame)))) in SPDYF_response_queue_create()
380 if(NULL == (response_to_queue = malloc(sizeof(struct SPDYF_Response_Queue)))) in SPDYF_response_queue_create()
388 if(NULL == (data_frame = malloc(sizeof(struct SPDYF_Data_Frame)))) in SPDYF_response_queue_create()
404 if(NULL == (control_frame = malloc(sizeo in SPDYF_response_queue_create()
[all...]
/third_party/backends/sanei/
H A Dsanei_ir.c81 histo = malloc (HISTOGRAM_SIZE * sizeof (double)); in sanei_ir_create_norm_histo()
138 accum_data = malloc (HISTOGRAM_SIZE * sizeof (double)); in sanei_ir_accumulate_norm_histo()
168 P1_sq = malloc (HISTOGRAM_SIZE * sizeof (double)); in sanei_ir_threshold_yen()
169 P2_sq = malloc (HISTOGRAM_SIZE * sizeof (double)); in sanei_ir_threshold_yen()
245 mean = malloc (HISTOGRAM_SIZE * sizeof (double)); in sanei_ir_threshold_otsu()
331 P2 = malloc (HISTOGRAM_SIZE * sizeof (double)); in sanei_ir_threshold_maxentropy()
428 outi = malloc (itop * sizeof(SANE_Uint)); in sanei_ir_RGB_luminance()
461 outi = malloc (ssize * sizeof(SANE_Uint)); in sanei_ir_to_8bit()
497 llut = malloc (len * sizeof (double)); in sanei_ir_ln_table()
538 calc_buf = malloc (ito in sanei_ir_spectral_clean()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dclone.c16 #include <malloc.h>
36 void *stack = malloc(STACK_SIZE); in clone_0100()
50 void *stack = malloc(STACK_SIZE); in clone_0200()
/third_party/musl/libc-test/src/functionalext/supplement/mman/
H A Dmlockall.c28 char *memory = (char *)malloc(memsize); in mlockall_0100()
52 char *memory = (char *)malloc(memsize); in mlockall_0200()
71 char *memory = (char *)malloc(memsize); in mlockall_0300()
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Djmemnobs.c14 * can be obtained from malloc().
25 #ifndef HAVE_STDLIB_H /* <stdlib.h> should declare malloc(),free() */
26 extern void *malloc(size_t size);
33 * routines malloc() and free().
39 return (void *)malloc(sizeofobject); in jpeg_get_small()
56 return (void *)malloc(sizeofobject); in jpeg_get_large()
/third_party/ntfs-3g/ntfsprogs/
H A Dntfsusermap.c347 str = (char *)malloc(MAXSIDSZ); in decodesid()
456 malloc(sizeof(struct USERMAPPING)); in askmapping()
467 idstr = (char *)malloc(strlen(p) + 1); in askmapping()
482 login = (char*)malloc(strlen(accname) + 1); in askmapping()
489 p = (char*)malloc(sidsz); in askmapping()
543 fullname = (char *)malloc(strlen(dir) + strlen(name) + 2); in account()
592 fullname = (char *)malloc(strlen(context->dir) in callback()
626 accname = (char*)malloc(strlen(name) + 1); in callback()
710 winname = (char*)malloc(MAXNAMESZ); in loginname()
711 domain = (char*)malloc(MAXNAMES in loginname()
[all...]
/third_party/libuv/test/
H A Dtest-ping-pong.c56 buf->base = malloc(size); in alloc_cb()
112 req = malloc(sizeof(*req)); in pinger_write_ping()
188 req = malloc(sizeof(*req)); in ponger_read_cb()
222 pinger = malloc(sizeof(*pinger)); in tcp_pinger_v6_new()
253 pinger = malloc(sizeof(*pinger)); in tcp_pinger_new()
282 pinger = malloc(sizeof(*pinger)); in pipe_pinger_new()
309 pinger = malloc(sizeof(*pinger)); in socketpair_pinger_new()
329 ponger = malloc(sizeof(*ponger)); in socketpair_pinger_new()
356 ponger = malloc(sizeof(*ponger)); in pipe2_pinger_new()
361 pinger = malloc(sizeo in pipe2_pinger_new()
[all...]
H A Decho-server.c93 sreq = malloc(sizeof* sreq); in after_read()
135 wr = (write_req_t*) malloc(sizeof *wr); in after_read()
144 ASSERT_OK(uv_shutdown(malloc(sizeof* sreq), handle, on_shutdown)); in after_read()
156 buf->base = malloc(suggested_size); in echo_alloc()
180 stream = malloc(sizeof(uv_tcp_t)); in on_connection()
187 stream = malloc(sizeof(uv_pipe_t)); in on_connection()
218 req = malloc(sizeof(*req)); in send_alloc()
/third_party/ltp/testcases/kernel/fs/ftest/
H A Dftest08.c243 if ((bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest()
254 if ((r_iovec[i].iov_base = malloc(r_ioveclen)) == NULL) { in dotest()
262 if (malloc((i + 1) * 8) == NULL) { in dotest()
266 if ((val0_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest()
272 if (malloc((i + 1) * 8) == NULL) { in dotest()
276 if ((val_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest()
281 if (malloc((i + 1) * 8) == NULL) { in dotest()
H A Dftest04.c230 if ((bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest()
243 if ((r_iovec[i].iov_base = malloc(r_ioveclen)) == NULL) { in dotest()
251 if (malloc((i + 1) * 8) == NULL) { in dotest()
255 if ((val0_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest()
261 if (malloc((i + 1) * 8) == NULL) { in dotest()
265 if ((val_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest()
271 if (malloc((i + 1) * 8) == NULL) { in dotest()
/third_party/musl/porting/linux/user/src/locale/
H A Dlocale_map.c25 #define malloc __libc_malloc macro
97 if (!new && (new = malloc(sizeof *new))) { in __get_locale()
125 new = malloc(sizeof *new); in __get_locale()
146 if (!new && (new = malloc(sizeof *new))) { in __get_locale()
/third_party/musl/src/malloc/liteos_a/user_debug/
H A Dbacktrace.c18 #include <malloc.h>
78 str_location = (char **)malloc(size * sizeof(char *)); in backtrace_symbols()
88 str_buffer = (char *)malloc(STRING_MAX_LEN * sizeof(char)); in backtrace_symbols()
99 string = (char **)malloc(total_size + (size * sizeof(char *))); in backtrace_symbols()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
H A Dbacktrace.c3 #include <malloc.h>
63 str_location = (char **)malloc(size * sizeof(char *)); in backtrace_symbols()
73 str_buffer = (char *)malloc(STRING_MAX_LEN * sizeof(char)); in backtrace_symbols()
84 string = (char **)malloc(total_size + (size * sizeof(char *))); in backtrace_symbols()
/third_party/skia/third_party/externals/libwebp/tests/fuzzer/
H A Dsimple_api_fuzzer.c50 uint8_t* const ext_buf = (uint8_t*)malloc(buf_size); in LLVMFuzzerTestOneInput()
75 uint8_t* const luma_buf = (uint8_t*)malloc(luma_size); in LLVMFuzzerTestOneInput()
76 uint8_t* const u_buf = (uint8_t*)malloc(u_size); in LLVMFuzzerTestOneInput()
77 uint8_t* const v_buf = (uint8_t*)malloc(v_size); in LLVMFuzzerTestOneInput()
/third_party/curl/lib/
H A Dstrdup.c50 newstr = malloc(len); in Curl_strdup()
93 void *buffer = malloc(length); in Curl_memdup()
114 char *buf = malloc(length + 1); in Curl_memdup0()
/third_party/gn/src/util/
H A Daligned_alloc.h24 // OSX 10.15, so use malloc() when compiling binaries that must run on older
33 #include <malloc.h> // for _aligned_malloc() and _aligned_free()
46 // _aligned_free() are used, while for older MacOS releases, ::malloc() is
57 return ::malloc(size); in Alloc()
74 // Note that malloc() guarantees that results are aligned on sizeof(void*) in Alloc()
77 void* real_block = ::malloc(size + ALIGNMENT - sizeof(void*)); in Alloc()
/third_party/libsnd/ossfuzz/
H A Dsndfile_alt_fuzzer.cc31 read_buffer = (short*)malloc(sizeof(short) * size); in LLVMFuzzerTestOneInput()
45 read_buffer = (int*)malloc(sizeof(int) * size) ; in LLVMFuzzerTestOneInput()
59 read_buffer = (double*)malloc(sizeof(double) * size) ; in LLVMFuzzerTestOneInput()
/third_party/mesa3d/src/gallium/tests/unit/
H A Du_cache_test.c88 key = malloc(sizeof(cache_test_key)); in main()
100 key = malloc(sizeof(cache_test_key)); in main()
101 value_in = malloc(sizeof(cache_test_value)); in main()
/third_party/lz4/ossfuzz/
H A Dcompress_hc_fuzzer.c27 char* const dst = (char*)malloc(dstCapacity); in LLVMFuzzerTestOneInput()
28 char* const rt = (char*)malloc(size); in LLVMFuzzerTestOneInput()
46 void* state = malloc(LZ4_sizeofStateHC()); in LLVMFuzzerTestOneInput()
/third_party/musl/libc-test/src/functionalext/supplement/hook/hook_gtest/
H A Dhook_realloc_test.cpp57 void* ptr = malloc(SIZE); in HWTEST_F()
71 void* ptr = malloc(SIZE); in HWTEST_F()
85 void* ptr = malloc(SIZE); in HWTEST_F()
/third_party/backends/backend/
H A Dmustek_usb2_reflective.c633 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * 3); in Reflective_AdjustAD()
636 DBG (DBG_FUNC, "Reflective_AdjustAD: lpCalData malloc error\n"); in Reflective_AdjustAD()
654 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50); in Reflective_AdjustAD()
1142 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * wCalHeight); in Reflective_FindTopLeft()
1145 DBG (DBG_FUNC, "Reflective_FindTopLeft: lpCalData malloc error\n"); in Reflective_FindTopLeft()
1196 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50); in Reflective_FindTopLeft()
1390 lpWhiteData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwWhiteTotalSize); in Reflective_LineCalibration16Bits()
1391 lpDarkData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwDarkTotalSize); in Reflective_LineCalibration16Bits()
1396 "Reflective_LineCalibration16Bits: lpWhiteData or lpDarkData malloc error \n"); in Reflective_LineCalibration16Bits()
1515 SANE_Byte * lpBuf = (SANE_Byte *) malloc (5 in Reflective_LineCalibration16Bits()
[all...]
H A Dmustek_usb2_transparent.c669 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * 3); in Transparent_AdjustAD()
689 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50); in Transparent_AdjustAD()
693 "Transparent_AdjustAD: Leave Transparent_AdjustAD for malloc fail!\n"); in Transparent_AdjustAD()
1156 lpCalData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * wCalWidth * wCalHeight); in Transparent_FindTopLeft()
1159 DBG (DBG_FUNC, "Transparent_FindTopLeft: lpCalData malloc fail\n"); in Transparent_FindTopLeft()
1185 SANE_Byte * lpBuf = (SANE_Byte *) malloc (50); in Transparent_FindTopLeft()
1328 lpWhiteData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwWhiteTotalSize); in Transparent_LineCalibration16Bits()
1329 lpDarkData = (SANE_Byte *) malloc (sizeof (SANE_Byte) * dwDarkTotalSize); in Transparent_LineCalibration16Bits()
1333 "Transparent_LineCalibration16Bits: lpWhiteData or lpDarkData malloc fail\n"); in Transparent_LineCalibration16Bits()
1369 SANE_Byte * lpBuf = (SANE_Byte *) malloc (5 in Transparent_LineCalibration16Bits()
[all...]

Completed in 16 milliseconds

12345678910>>...102