| /freebsd/contrib/libcbor/test/ |
| H A D | copy_test.c | 330 MALLOC, MALLOC, MALLOC_FAIL); in test_definite_array_item_alloc_failure() 419 MALLOC, MALLOC, MALLOC_FAIL); in test_definite_map_key_alloc_failure() 435 MALLOC, MALLOC, MALLOC, MALLOC_FAIL); in test_definite_map_value_alloc_failure() 530 WITH_MOCK_MALLOC({ assert_null(cbor_copy(item)); }, 2, MALLOC, MALLOC_FAIL); in test_bytestring_chunk_alloc_failure() 544 MALLOC, MALLOC, MALLOC, MALLOC, REALLOC_FAIL); in test_bytestring_chunk_append_failure() 562 MALLOC, MALLOC, MALLOC, MALLOC, REALLOC, MALLOC_FAIL); in test_bytestring_second_chunk_alloc_failure() 582 WITH_MOCK_MALLOC({ assert_null(cbor_copy(item)); }, 2, MALLOC, MALLOC_FAIL); in test_string_chunk_alloc_failure() 595 MALLOC, MALLOC, MALLOC, MALLOC, REALLOC_FAIL); in test_string_chunk_append_failure() 610 MALLOC, MALLOC, MALLOC, MALLOC, REALLOC, MALLOC_FAIL); in test_string_second_chunk_alloc_failure() 632 MALLOC, MALLOC_FAIL); in test_array_item_alloc_failure() [all …]
|
| H A D | array_test.c | 170 WITH_MOCK_MALLOC({ assert_null(cbor_new_definite_array(42)); }, 2, MALLOC, in test_array_creation() 190 4, MALLOC, MALLOC, MALLOC, REALLOC_FAIL); in test_array_push() 204 4, MALLOC, MALLOC, MALLOC, REALLOC_FAIL); in test_indef_array_decode()
|
| H A D | string_test.c | 246 WITH_MOCK_MALLOC({ assert_null(cbor_new_indefinite_string()); }, 2, MALLOC, in test_string_creation() 250 WITH_MOCK_MALLOC({ assert_null(cbor_build_string("Test")); }, 2, MALLOC, in test_string_creation() 254 WITH_MOCK_MALLOC({ assert_null(cbor_build_stringn("Test", 4)); }, 2, MALLOC, in test_string_creation() 273 5, MALLOC, MALLOC, MALLOC, MALLOC, REALLOC_FAIL); in test_string_add_chunk()
|
| H A D | map_test.c | 215 WITH_MOCK_MALLOC({ assert_null(cbor_new_definite_map(42)); }, 2, MALLOC, in test_map_creation() 237 4, MALLOC, MALLOC, MALLOC, REALLOC_FAIL); in test_map_add() 251 4, MALLOC, MALLOC, MALLOC, REALLOC_FAIL); in test_indef_map_decode()
|
| H A D | bytestring_test.c | 331 MALLOC, MALLOC_FAIL); in test_bytestring_creation() 336 WITH_MOCK_MALLOC({ assert_null(cbor_build_bytestring(bytes, 4)); }, 2, MALLOC, in test_bytestring_creation() 358 5, MALLOC, MALLOC, MALLOC, MALLOC, REALLOC_FAIL); in test_bytestring_add_chunk()
|
| H A D | callbacks_test.c | 123 MALLOC, MALLOC_FAIL); in test_builder_byte_string_callback_append_item_alloc_failure() 158 MALLOC, MALLOC, REALLOC_FAIL); in test_builder_byte_string_callback_append_parent_alloc_failure() 264 2, MALLOC, MALLOC_FAIL); in test_builder_string_callback_append_item_alloc_failure() 298 3, MALLOC, MALLOC, REALLOC_FAIL); in test_builder_string_callback_append_parent_alloc_failure()
|
| H A D | test_allocator.h | 11 MALLOC, enumerator
|
| H A D | test_allocator.c | 50 if (expectations[alloc_calls] == MALLOC) { in instrumented_malloc()
|
| /freebsd/contrib/ntp/include/ |
| H A D | parse.h | 66 #define MALLOC(_X_) (char *)kmem_alloc(_X_) macro 70 #define MALLOC(_X_) (char *)kmem_alloc(_X_, KM_SLEEP) macro 74 #define MALLOC(_X_) malloc(_X_) macro
|
| /freebsd/contrib/nvi/common/ |
| H A D | util.c | 233 MALLOC(sp, copy, len + 1); 252 MALLOC(sp, copy, (len + 1) * sizeof(CHAR_T));
|
| H A D | screen.c | 90 MALLOC(sp, sp->newl, len); in screen_init()
|
| H A D | cut.c | 298 MALLOC(sp, tp->lb, tp->lb_len); in text_init()
|
| H A D | recover.c | 395 MALLOC(sp, host, hostmax + 1); in rcv_mailfile() 930 MALLOC(sp, data, dlen + len / 4 * 3 + 2);
|
| /freebsd/contrib/gdtoa/ |
| H A D | gdtoaimp.h | 212 #ifdef MALLOC 213 extern Char *MALLOC ANSI((size_t)); 215 #define MALLOC malloc macro
|
| H A D | g__fmt.c | 59 if ((decimalpoint_cache = (char*)MALLOC(strlen(s0) + 1))) {
|
| H A D | changes | 66 > * #define MALLOC your_malloc, where your_malloc(n) acts like malloc(n) 68 > * appropriate. If MALLOC is undefined, malloc will be invoked 71 > #ifndef MALLOC 72 > #define MALLOC malloc 78 > rv = (Bigint *)MALLOC(sizeof(Bigint) + (x-1)*sizeof(Long)); 81 dtoa.c: if MALLOC is #defined, declare it. 540 to MALLOC. 542 MALLOC and FREE or free for huge blocks, which are possible only in
|
| H A D | gethex.c | 60 if ((decimalpoint_cache = (char*)MALLOC(strlen(s0) + 1))) {
|
| H A D | misc.c | 66 rv = (Bigint *)MALLOC(sizeof(Bigint) + (x-1)*sizeof(ULong)); 75 rv = (Bigint*)MALLOC(len*sizeof(double));
|
| /freebsd/contrib/nvi/ex/ |
| H A D | ex_source.c | 64 MALLOC(sp, bp, (size_t)sb.st_size + 1); in ex_source()
|
| H A D | ex_subst.c | 230 MALLOC(sp, sp->repl, len * sizeof(CHAR_T)); in ex_s() 952 MALLOC(sp, *ptrnp, (plen + 1) * sizeof(CHAR_T)); in re_compile() 1288 MALLOC(sp, oe, s); in re_error()
|
| /freebsd/contrib/nvi/vi/ |
| H A D | v_match.c | 162 MALLOC(sp, *mp, len * sizeof(CHAR_T)); in v_buildmcs()
|
| /freebsd/contrib/byacc/ |
| H A D | mstring.c | 123 if ((n->base = n->ptr = MALLOC(HEAD)) != 0) in msnew()
|
| /freebsd/contrib/ntp/libparse/ |
| H A D | parse.c | 800 parse->parse_pdata = MALLOC(parse->parse_plen); in parse_setfmt() 817 parse->parse_data = (char*)MALLOC((unsigned)(parse->parse_dsize * 2 + 2)); in parse_setfmt()
|
| /freebsd/contrib/expat/lib/ |
| H A D | xmlparse.c | 791 # define MALLOC(parser, s) (expat_malloc((parser), (s), __LINE__)) macro 795 # define MALLOC(parser, s) (parser->m_mem.malloc_fcn((s))) macro 1326 parser->m_atts = MALLOC(parser, parser->m_attsSize * sizeof(ATTRIBUTE)); 1332 parser->m_attInfo = MALLOC(parser, parser->m_attsSize * sizeof(XML_AttrInfo)); 1339 parser->m_dataBuf = MALLOC(parser, INIT_DATA_BUF_SIZE * sizeof(XML_Char)); 3396 tag = MALLOC(parser, sizeof(TAG)); 3399 tag->buf.raw = MALLOC(parser, INIT_TAG_BUF_SIZE); 4191 uri = MALLOC(parser, (n + EXPAND_SPARE) * sizeof(XML_Char)); 4446 b = MALLOC(parser, sizeof(BINDING)); 4464 b->uri = MALLOC(parser, sizeof(XML_Char) * (len + EXPAND_SPARE)); [all …]
|
| /freebsd/usr.sbin/route6d/ |
| H A D | route6d.c | 263 #define MALLOC(type) ((type *)malloc(sizeof(type))) macro 1402 if ((rrt = MALLOC(struct riprt)) == NULL) { in riprecv() 1535 if ((ifcp = MALLOC(struct ifc)) == NULL) { in ifconfig() 1614 if ((ifac = MALLOC(struct ifac)) == NULL) { in ifconfig1() 2192 if ((rrt = MALLOC(struct riprt)) == NULL) in ifrt() 2343 if ((rrt = MALLOC(struct riprt)) == NULL) { in ifrt_p2p() 2715 if ((rrt = MALLOC(struct riprt)) == NULL) { in rt_entry()
|