/freebsd/contrib/ofed/opensm/opensm/ |
H A D | st.c | 365 st_table *new_table; in st_copy() local 369 new_table = alloc(st_table); in st_copy() 370 if (new_table == 0) { in st_copy() 374 *new_table = *old_table; in st_copy() 375 new_table->bins = (st_table_entry **) in st_copy() 378 if (new_table->bins == 0) { in st_copy() 379 free(new_table); in st_copy() 384 new_table->bins[i] = 0; in st_copy() 389 free(new_table->bins); in st_copy() 390 free(new_table); in st_copy() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | ht-internal.h | 321 struct type **new_table; \ 332 if ((new_table = mallocfn(new_len*sizeof(struct type*)))) { \ 334 memset(new_table, 0, new_len*sizeof(struct type*)); \ 342 elm->field.hte_next = new_table[b2]; \ 343 new_table[b2] = elm; \ 349 head->hth_table = new_table; \ 352 new_table = reallocfn(head->hth_table, new_len*sizeof(struct type*)); \ 353 if (!new_table) return -1; \ 354 memset(new_table + head->hth_table_length, 0, \ 358 for (pE = &new_table[b], e = *pE; e != NULL; e = *pE) { \ [all …]
|
/freebsd/contrib/libevent/ |
H A D | ht-internal.h | 321 struct type **new_table; \ 332 if ((new_table = mallocfn(new_len*sizeof(struct type*)))) { \ 334 memset(new_table, 0, new_len*sizeof(struct type*)); \ 342 elm->field.hte_next = new_table[b2]; \ 343 new_table[b2] = elm; \ 349 head->hth_table = new_table; \ 352 new_table = reallocfn(head->hth_table, new_len*sizeof(struct type*)); \ 353 if (!new_table) return -1; \ 354 memset(new_table + head->hth_table_length, 0, \ 358 for (pE = &new_table[b], e = *pE; e != NULL; e = *pE) { \ [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | basl.c | 659 struct basl_table *new_table; in basl_table_create() local 663 new_table = calloc(1, sizeof(struct basl_table)); in basl_table_create() 664 if (new_table == NULL) { in basl_table_create() 669 new_table->ctx = ctx; in basl_table_create() 671 snprintf(new_table->fwcfg_name, sizeof(new_table->fwcfg_name), in basl_table_create() 674 new_table->alignment = alignment; in basl_table_create() 676 STAILQ_INIT(&new_table->checksums); in basl_table_create() 677 STAILQ_INIT(&new_table->lengths); in basl_table_create() 678 STAILQ_INIT(&new_table->pointers); in basl_table_create() 680 STAILQ_INSERT_TAIL(&basl_tables, new_table, chain); in basl_table_create() [all …]
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | alloc_ttype.c | 532 char *new_table; in copy_termtype() local 553 new_table = NULL; in copy_termtype() 559 dst->term_names = new_table + str_size; in copy_termtype() 569 _nc_STRCPY(new_table + str_size, in copy_termtype() 572 dst->Strings[i] = new_table + str_size; in copy_termtype() 578 dst->str_table = new_table; in copy_termtype() 581 if ((new_table = malloc(str_size)) == NULL) in copy_termtype() 635 new_table = NULL; in copy_termtype() 645 _nc_STRCPY(new_table + str_size, in copy_termtype() 657 _nc_STRCPY(new_table + str_size, in copy_termtype() [all …]
|
/freebsd/contrib/com_err/ |
H A D | com_err.c | 157 add_to_error_table(struct et_list *new_table) in add_to_error_table() argument 162 if (et->table->base == new_table->table->base) in add_to_error_table() 166 new_table->next = _et_list; in add_to_error_table() 167 _et_list = new_table; in add_to_error_table()
|
H A D | com_err.h | 74 add_to_error_table (struct et_list *new_table);
|
/freebsd/crypto/heimdal/lib/com_err/ |
H A D | com_err.c | 160 add_to_error_table(struct et_list *new_table) in add_to_error_table() argument 165 if (et->table->base == new_table->table->base) in add_to_error_table() 169 new_table->next = _et_list; in add_to_error_table() 170 _et_list = new_table; in add_to_error_table()
|
H A D | com_err.h | 74 add_to_error_table (struct et_list *new_table);
|
/freebsd/contrib/kyua/utils/config/ |
H A D | lua_module.cpp | 115 state.new_table(); in new_table_for_key() 117 state.new_table(); in new_table_for_key()
|
H A D | nodes_test.cpp | 488 state.new_table(); in ATF_TEST_CASE_BODY()
|
/freebsd/contrib/lutok/ |
H A D | state.hpp | 114 void new_table(void);
|
H A D | operations.cpp | 49 s.new_table(); in create_module()
|
H A D | state_test.cpp | 574 ATF_TEST_CASE_WITHOUT_HEAD(new_table); 575 ATF_TEST_CASE_BODY(new_table) in ATF_TEST_CASE_BODY() argument 578 state.new_table(); in ATF_TEST_CASE_BODY() 1130 ATF_ADD_TEST_CASE(tcs, new_table); in ATF_INIT_TEST_CASES()
|
H A D | state.cpp | 521 lutok::state::new_table(void) in new_table() function in lutok::state
|
/freebsd/lib/libc/db/hash/ |
H A D | hash.c | 100 int bpages, hdrsize, new_table, nsegs, save_errno; in __hash_open() local 122 new_table = _fstat(hashp->fp, &statbuf) == 0 && in __hash_open() 125 new_table = 1; in __hash_open() 127 if (new_table) { in __hash_open() 181 hashp->new_file = new_table; in __hash_open()
|
/freebsd/contrib/kyua/utils/fs/ |
H A D | lua_module.cpp | 236 state.new_table(); in lua_fs_files()
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_sa.c | 629 struct sa_prot_map *new_table, 1200 sapopulateprots(struct sa_prot_state *cur_state, struct sa_prot_map *new_table, in sapopulateprots() argument 1205 bcopy(sa_prot_table, new_table, min(table_ents * sizeof(*new_table), in sapopulateprots() 1211 new_table[i].value = (uint32_t *)((uint8_t *)cur_state + in sapopulateprots() 1212 new_table[i].offset); in sapopulateprots()
|