Home
last modified time | relevance | path

Searched refs:array_size (Results 1 – 25 of 38) sorted by relevance

12

/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_index_overflow.c211 int array_size; in should_warn() local
222 array_size = get_array_size(array_expr); in should_warn()
223 if (!array_size || array_size == 1) in should_warn()
233 if (array_size > max.value) in should_warn()
238 if (array_size > rl_max(abs_rl).uvalue) in should_warn()
269 int array_size; in array_check() local
281 array_size = get_array_size(array_expr); in array_check()
290 array_size_value = value_expr(array_size); in array_check()
319 name, array_size, sval_to_str(max)); in array_check()
322 name, array_size, sval_to_str(max), show_rl(user_rl), in array_check()
[all …]
H A Dcheck_testing_index_after_use.c41 int array_size; in array_check() local
50 array_size = get_array_size(array_expr); in array_check()
51 if (!array_size || array_size == 1) in array_check()
56 if (rl_max(rl).uvalue < array_size) in array_check()
65 set_state_expr(my_used_id, offset, alloc_state_num(array_size)); in array_check()
H A Dcheck_spectre.c157 int array_size; in array_check() local
181 array_size = get_array_size(array_expr); in array_check()
182 if (array_size > 0 && get_max_by_type(offset) < array_size) in array_check()
189 if (mask <= array_size) in array_check()
H A Dc2xml.c174 int array_size; in examine_symbol() local
199 if (sym->array_size) { in examine_symbol()
201 array_size = get_expression_value(sym->array_size); in examine_symbol()
202 newNumProp(child, "array-size", array_size); in examine_symbol()
H A Dsymbol.c232 struct expression *array_size = sym->array_size; in examine_array_type() local
237 if (array_size) { in examine_array_type()
239 get_expression_value_silent(array_size)); in examine_array_type()
240 if (array_size->type != EXPR_VALUE) { in examine_array_type()
242 warning(array_size->pos, "Variable length array is used."); in examine_array_type()
378 arr_new->array_size = size; in implicit_array_size()
379 node->array_size = size; in implicit_array_size()
H A Dexpression.c129 decl->array_size = alloc_const_expression(token->pos, len + 1); in handle_func()
130 array->array_size = decl->array_size; in handle_func()
/illumos-gate/usr/src/cmd/sendmail/db/log/
H A Dlog_archive.c49 int array_size, n, ret; local
112 array_size = 10;
127 if (n >= array_size - 1) {
128 array_size += LIST_INCREMENT;
130 sizeof(char *) * array_size)) != 0)
169 __os_free(array, sizeof(char *) * array_size);
190 int array_size, last, n, nxt, ret; local
194 array_size = 10;
225 if (n >= array_size - 1) {
226 array_size += LIST_INCREMENT;
[all …]
/illumos-gate/usr/src/lib/udapl/libdat/common/
H A Ddat_dr.c295 DAT_COUNT array_size; in dat_dr_list() local
309 status = dat_dictionary_size(g_dr_dictionary, &array_size); in dat_dr_list()
314 if (array_size == 0) { in dat_dr_list()
319 array = dat_os_alloc(array_size * sizeof (DAT_DR_ENTRY *)); in dat_dr_list()
330 array_size); in dat_dr_list()
338 array_size * sizeof (DAT_DR_ENTRY *)); in dat_dr_list()
344 for (i = 0; (i < max_to_return) && (i < array_size); i++) { in dat_dr_list()
358 dat_os_free(array, array_size * sizeof (DAT_DR_ENTRY *)); in dat_dr_list()
H A Ddat_sr.c231 DAT_COUNT array_size; in dat_sr_list() local
245 status = dat_dictionary_size(g_sr_dictionary, &array_size); in dat_sr_list()
250 if (array_size == 0) { in dat_sr_list()
255 array = dat_os_alloc(array_size * sizeof (DAT_SR_ENTRY *)); in dat_sr_list()
266 array_size); in dat_sr_list()
274 array_size * sizeof (DAT_SR_ENTRY *)); in dat_sr_list()
280 for (i = 0; (i < max_to_return) && (i < array_size); i++) { in dat_sr_list()
294 dat_os_free(array, array_size * sizeof (DAT_SR_ENTRY *)); in dat_sr_list()
H A Ddat_dictionary.c344 IN DAT_COUNT array_size) in dat_dictionary_enumerate() argument
355 if (array_size < p_dictionary->size) { in dat_dictionary_enumerate()
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_dbimpl.c65 int array_size; /* number of elements in hash_tbl_p */ member
173 idx_p = db->hash_tbl_p[hash % db->array_size]; in _nscd_get_db_entry()
202 i = hash % db->array_size; in _nscd_add_db_entry()
299 i = hash % db->array_size; in _nscd_delete_db_entry()
436 c->idx < 0 || c->idx >= db->array_size) in _nscd_delete_db_entry_cookie()
510 db->array_size = sz; in _nscd_alloc_db()
531 for (i = 0; i < db->array_size; i++) { in _nscd_free_db()
579 c->idx < -1 || c->idx >= db->array_size) in _nscd_walk_db()
600 for (c->idx++; c->idx < db->array_size; c->idx++) { in _nscd_walk_db()
H A Dnscd_cfgfile.c40 strbreak(char *field[], int array_size, char *s, char *sep) in strbreak() argument
47 for (i = 0; i < array_size && (field[i] = strtok_r((i?(char *)NULL:s), in strbreak()
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dheap.c60 ctx->array_size = 0; in heap_new()
90 ctx->array_size += ctx->array_size_increment; in heap_resize()
92 (ctx->array_size) * (sizeof (void *))); in heap_resize()
151 if (ctx->heap_size >= ctx->array_size && heap_resize(ctx) < 0) in heap_insert()
/illumos-gate/usr/src/uts/i86pc/io/ioat/
H A Dioat_rs.c78 uint_t array_size; in ioat_rs_init() local
108 array_size = rstruct->rs_free_size >> 3; in ioat_rs_init()
109 for (index = 0; index < array_size; index++) { in ioat_rs_init()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Ddecode.c442 size_t array_size; in ber_scanf() local
519 array_size = 0; in ber_scanf()
527 array_size = 16; in ber_scanf()
529 if ( (size_t)(j+2) > array_size) { in ber_scanf()
531 *sss = (char **)NSLBERI_REALLOC( *sss, (array_size * 2) * sizeof(char *) ); in ber_scanf()
532 array_size = array_size * 2; in ber_scanf()
/illumos-gate/usr/src/lib/libkmf/ber_der/common/
H A Ddecode.c517 size_t array_size; in kmfber_scanf() local
598 array_size = 0; in kmfber_scanf()
607 array_size = 16; in kmfber_scanf()
609 if ((size_t)(j+2) > array_size) { in kmfber_scanf()
612 (array_size * 2) * sizeof (char *)); in kmfber_scanf()
613 array_size = array_size * 2; in kmfber_scanf()
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Ddit_access.c413 int array_size; /* Current malloced size */ in get_passwd_list() local
423 array_size = ARRAY_CHUNK; in get_passwd_list()
456 if ((res_count + 1) >= array_size) { in get_passwd_list()
457 array_size += ARRAY_CHUNK; in get_passwd_list()
459 res = realloc(res, array_size * in get_passwd_list()
978 int array_size; /* Current malloced size */ in get_mapping_map_list() local
988 array_size = ARRAY_CHUNK; in get_mapping_map_list()
1012 if ((res_count + 1) >= array_size) { in get_mapping_map_list()
1013 array_size += ARRAY_CHUNK; in get_mapping_map_list()
1015 res = realloc(res, array_size * in get_mapping_map_list()
/illumos-gate/usr/src/cmd/mdb/common/modules/scsi_vhci/
H A Dscsi_vhci.c416 int array_size; in dump_states() local
430 array_size = ss->n_items * (sizeof (void *)); in dump_states()
432 ss->array = mdb_alloc(array_size, UM_SLEEP|UM_GC); in dump_states()
433 if (mdb_vread(ss->array, array_size, array_vaddr) != array_size) { in dump_states()
/illumos-gate/usr/src/lib/libresolv2/include/isc/
H A Dheap.h23 int array_size; member
/illumos-gate/usr/src/lib/udapl/libdat/include/
H A Ddat_dictionary.h106 IN DAT_COUNT array_size);
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsinfo.c132 const int array_size, const char *default_root);
1057 devfs_phys_to_logical(struct boot_dev **bootdev_array, const int array_size, in devfs_phys_to_logical() argument
1069 if (array_size < 0) { in devfs_phys_to_logical()
1122 calloc(array_size, sizeof (struct name_list *)); in devfs_phys_to_logical()
1133 for (i = 0; i < array_size; i++) { in devfs_phys_to_logical()
1148 for (i = 0; i < array_size; i++) { in devfs_phys_to_logical()
1188 for (i = 0; i < array_size; i++) { in devfs_phys_to_logical()
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_cq.c1871 int i, desired, array_size; in hermon_cq_sched_init() local
1895 array_size = state->hs_cq_sched_array_size; in hermon_cq_sched_init()
1896 for (i = 0; i < array_size; i++) in hermon_cq_sched_init()
1906 for (i = 0; i < array_size; i++) { in hermon_cq_sched_init()
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_boot.c3429 static uint_t array_size = 0; in alloc_res_array() local
3433 if (array_size > pci_boot_maxbus + 1) in alloc_res_array()
3436 old_size = array_size; in alloc_res_array()
3439 if (array_size == 0) in alloc_res_array()
3440 array_size = 16; /* start with a reasonable number */ in alloc_res_array()
3442 while (array_size <= pci_boot_maxbus + 1) in alloc_res_array()
3443 array_size <<= 1; in alloc_res_array()
3445 array_size * sizeof (struct pci_bus_resource), KM_SLEEP); in alloc_res_array()
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_main.c1767 int i, size_index, array_size; in hxge_alloc_rx_buf_dma() local
1782 array_size = sizeof (alloc_sizes) / sizeof (size_t); in hxge_alloc_rx_buf_dma()
1783 while ((size_index < array_size) && in hxge_alloc_rx_buf_dma()
1786 if (size_index >= array_size) { in hxge_alloc_rx_buf_dma()
1787 size_index = array_size - 1; in hxge_alloc_rx_buf_dma()
2074 int i, size_index, array_size; in hxge_alloc_tx_buf_dma() local
2084 array_size = sizeof (alloc_sizes) / sizeof (size_t); in hxge_alloc_tx_buf_dma()
2085 while ((size_index < array_size) && in hxge_alloc_tx_buf_dma()
2088 if (size_index >= array_size) { in hxge_alloc_tx_buf_dma()
2089 size_index = array_size - 1; in hxge_alloc_tx_buf_dma()
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxpvtap.c1408 uint_t array_size; in xpvtap_rs_init() local
1438 array_size = rstruct->rs_free_size >> 3; in xpvtap_rs_init()
1439 for (index = 0; index < array_size; index++) { in xpvtap_rs_init()

12