Home
last modified time | relevance | path

Searched refs:new_table (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/ofed/opensm/opensm/
H A Dst.c365 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 Dht-internal.h321 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 Dht-internal.h321 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 Dbasl.c659 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 Dalloc_ttype.c532 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 Dcom_err.c157 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 Dcom_err.h74 add_to_error_table (struct et_list *new_table);
/freebsd/crypto/heimdal/lib/com_err/
H A Dcom_err.c160 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 Dcom_err.h74 add_to_error_table (struct et_list *new_table);
/freebsd/contrib/kyua/utils/config/
H A Dlua_module.cpp115 state.new_table(); in new_table_for_key()
117 state.new_table(); in new_table_for_key()
H A Dnodes_test.cpp488 state.new_table(); in ATF_TEST_CASE_BODY()
/freebsd/contrib/lutok/
H A Dstate.hpp114 void new_table(void);
H A Doperations.cpp49 s.new_table(); in create_module()
H A Dstate_test.cpp574 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 Dstate.cpp521 lutok::state::new_table(void) in new_table() function in lutok::state
/freebsd/lib/libc/db/hash/
H A Dhash.c100 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 Dlua_module.cpp236 state.new_table(); in lua_fs_files()
/freebsd/sys/cam/scsi/
H A Dscsi_sa.c629 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()