/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_fflp_hash.c | 114 uint32_t index, bit, byte, crc; in nxge_crc32c_init() local 116 for (index = 0; index < 256; index++) { in nxge_crc32c_init() 117 crc = reflect_32(index); in nxge_crc32c_init() 140 uint16_t index, bit, byte; in nxge_crc_ccitt_init() local 142 for (index = 0; index < 256; index++) { in nxge_crc_ccitt_init() 143 crc = index << 8; in nxge_crc_ccitt_init() 152 crc_ccitt_tab[byte][index] = crc; in nxge_crc_ccitt_init() 280 uint32_t crc, bit, byte, index; in nxge_init_h1_table() local 282 for (index = 0; index < 256; index++) { in nxge_init_h1_table() 283 crc = index << 24; in nxge_init_h1_table() [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | stralloc.c | 71 int index; in salloc() local 83 index = 0; in salloc() 89 index++; in salloc() 94 index = sp - &stringdope[0]; in salloc() 95 sp->s_topFree = (char *) calloc(STRINGSIZE << index, in salloc() 99 index); in salloc() 103 sp->s_nleft = STRINGSIZE << index; in salloc() 160 register int index; in sreset() local 165 index = 0; in sreset() 170 sp->s_nleft = STRINGSIZE << index; in sreset() [all …]
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | issubdir.c | 68 int index; local 89 index = 0; 96 if (index == 0) { 102 if (index > 0 && 104 inoeq(child_ino[index - 1], st.st_ino))) { 110 child_ino[index++] = st.st_ino; 126 valid = index; 147 for (index = 0; index < valid; index++) { 148 if (inoeq(child_ino[index], parent_st.st_ino)) {
|
/illumos-gate/usr/src/cmd/consadm/ |
H A D | consadm.c | 121 int index; in main() local 205 for (index = optind; index < argc; index++) { in main() 210 for (index = optind; index < argc; index++) { in main() 211 setaux(argv[index]); in main() 228 for (index = optind; index < argc; index++) { in main() 233 for (index = optind; index < argc; index++) { in main() 234 unsetaux(argv[index]); in main() 658 int index; in fallbackdaemon() local 792 for (index = 0; index < nfds; index++) { in fallbackdaemon() 810 fds[index].fd = -1; in fallbackdaemon() [all …]
|
/illumos-gate/usr/src/lib/libshare/autofs/ |
H A D | libshare_autofs.c | 112 int index; member 420 int index; in extractprop() local 428 index = findprotoopt(name); in extractprop() 429 if (index >= 0) { in extractprop() 482 val > proto_options[index].maxval) in range_check_validator() 493 index = index; in true_false_validator() 509 strlen_validator(int index, char *value) in strlen_validator() argument 531 return (proto_options[index].check(index, value)); in autofs_validate_proto_prop() 545 int index = findprotoopt(name); in autofs_set_proto_prop() local 546 if (index >= 0) { in autofs_set_proto_prop() [all …]
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | arcs.c | 228 int index; in dotime() local 231 for (index = 0; index < total_names; index += 1) { in dotime() 479 int index; in doflags() local 484 for (index = total_names - 1; index >= 0; index -= 1) { in doflags() 646 index = 0; in doarcs() 656 for (index = 0; index < total_names; index += 1) { in doarcs() 689 index = 0; in doarcs() 695 for (index = 1; index <= ncycle; index++) in doarcs() 696 timesortnlp[total_names+index-1] = &cyclenl[index]; in doarcs() 700 for (index = 0; index < total_names + ncycle; index++) in doarcs() [all …]
|
H A D | printgprof.c | 68 int i, index; in printprof() local 86 index = 0; in printprof() 94 for (index = 0; (index < total_names) && print_flag; index += 1) { in printprof() 95 np = sortednlp[index]; in printprof() 295 int index; in printgprof() local 305 for (index = 0; index < total_names + ncycle && count_flag; index++) { in printgprof() 518 if (selfp->index != 0) { in printname() 653 cyclep->index); in printcycle() 996 for (index = 0; index < mi->nname; index++) { in printindex() 1015 for (index = 1, todo = nnames; index <= ncycle; index++) in printindex() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | rmclomv.c | 1366 for (index = 0; index < section->num_entries; index++) { in add_names_to_section() 1382 for (index = 0; index < section->num_entries; index++) { in add_names_to_section() 1416 for (index = 0; index < psu_section->num_entries; index++) { in make_psu_subsections() 1483 for (index = 0; index < psu_section->num_entries; index++) { in make_psu_subsections() 1652 for (index = 0; index < fru_r.num_frus; index++) { in refresh_name_cache() 1669 for (index = 0; index < volts_r.num_volts; index++) { in refresh_name_cache() 1684 for (index = 0; index < temp_r.num_temps; index++) { in refresh_name_cache() 1698 for (index = 0; index < fan_r.num_fans; index++) { in refresh_name_cache() 1727 for (index = 0; index < led_r.num_leds; index++) { in refresh_name_cache() 1746 for (index = 0; index < alarm_r.num_alarms; index++) { in refresh_name_cache() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/cwchash/ |
H A D | hashtable.c | 77 unsigned int newsize, i, index; in hashtable_expand() local 93 newtable[index] = e; in hashtable_expand() 110 if (index == i) in hashtable_expand() 118 newtable[index] = e; in hashtable_expand() 140 unsigned int index; in hashtable_insert() local 156 e->next = h->table[index]; in hashtable_insert() 157 h->table[index] = e; in hashtable_insert() 166 unsigned int hashvalue, index; in hashtable_search() local 169 e = h->table[index]; in hashtable_search() 189 unsigned int hashvalue, index; in hashtable_remove() local [all …]
|
H A D | hashtable_itr.c | 22 itr->index = tablelength; in hashtable_iterator() 30 itr->index = i; in hashtable_iterator() 70 if (tablelength <= (j = ++(itr->index))) in hashtable_iterator_advance() 80 itr->index = tablelength; in hashtable_iterator_advance() 85 itr->index = j; in hashtable_iterator_advance() 108 itr->h->table[itr->index] = itr->e->next; in hashtable_iterator_remove() 132 unsigned int hashvalue, index; in hashtable_iterator_search() local 135 index = indexFor(h->tablelength,hashvalue); in hashtable_iterator_search() 137 e = h->table[index]; in hashtable_iterator_search() 144 itr->index = index; in hashtable_iterator_search()
|
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/ |
H A D | user.c | 206 int index; in ADM_Process_usershow() local 273 for (index = 1; index <= DP_USER_MAX; index++) { in ADM_Process_usershow() 276 admMessage->parm = index; in ADM_Process_usershow() 433 int index; in ADM_Process_userperm() local 450 for (index = 0; index < strlen(argv[3]); index++) { in ADM_Process_userperm() 451 if ((argv[3][index] != 'c') && in ADM_Process_userperm() 452 (argv[3][index] != 'C') && in ADM_Process_userperm() 453 (argv[3][index] != 'u') && in ADM_Process_userperm() 625 int index; in ADM_Destroy_Password() local 627 for (index = 0; index < strlen(password); index++) in ADM_Destroy_Password() [all …]
|
/illumos-gate/usr/src/cmd/prctl/ |
H A D | utils.c | 111 int index = 0; in scaledtouint64() local 183 index = 0; in scaledtouint64() 187 strlen(modifiers[index])); in scaledtouint64() 190 strlen(modifiers[index])); in scaledtouint64() 196 multiplier = scales[index]; in scaledtouint64() 205 index++; in scaledtouint64() 263 int index = 0; in uint64toscaled() local 294 for (index = 0; modifiers[index + 1] != NULL; index++) { in uint64toscaled() 296 if (uint64in >= scales[index] && in uint64toscaled() 297 uint64in < scales[index + 1]) in uint64toscaled() [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | print.c | 46 static int index = 0; variable 199 if (index) { in flushb() 200 bufp[index] = '\0'; in flushb() 202 index = 0; in flushb() 214 bufp[index++] = c; in prc_buff() 233 movstr(s, &bufp[index]); in prs_buff() 234 index += len; in prs_buff() 331 if (bufp[index-1]) { in setb() 332 bufp[index++] = 0; in setb() 334 endstak(bufp+index); in setb() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_rnode.c | 457 int index; in makenfs4node_by_fh() local 513 int index; in makenfs4node() local 1107 int index; in r4find_unlocked() local 1235 int index; in nfs4_rnode_invalidate() local 1242 for (index = 0; index < rtable4size; index++) { in nfs4_rnode_invalidate() 1273 int index; in r4flush() local 1344 for (index = 0; index < rtable4size; index++) { in r4flush() 1566 for (index = 0; index < rtable4size; index++) { in nfs4_active_reclaim() 1731 for (index = 0; index < rtable4size; index++) { in r4mkopenlist() 1845 for (index = 0; index < rtable4size; index++) { in r4find_by_fsid() [all …]
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | elm.c | 126 static struct index *index = NULL; variable 184 ind = (struct index *)xmalloc(sizeof (struct index)); in el_init() 187 index = ind; in el_init() 208 ind = (struct index *)xmalloc(sizeof (struct index)); in el_init() 252 ind = index; in el_add() 404 k = index->key; in el_first() 414 fi = index; in el_first() 421 index = index->right; in el_first() 423 ind = index; in el_first() 496 ind = index; in el_delete() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | slk.c | 259 slk_label(int index) in slk_label() argument 262 __m_trace("slk_label(%d)", index); in slk_label() 269 slk_set(int index, const char *label, int justify) in slk_set() argument 279 code = slk_wset(index, wcs, justify); in slk_set() 306 if (index < 1 || 8 < index || justify < 0 || 2 < justify) in slk_wset() 329 __m_screen->_slk._justify[index] = (short) justify; in slk_wset() 330 if (__m_screen->_slk._labels[index] != NULL) in slk_wset() 331 free(__m_screen->_slk._labels[index]); in slk_wset() 337 i = format[__m_slk_format][index]; in slk_wset() 355 plab_norm, (long) index, (long) mbs, in slk_wset() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppsearch.c | 118 int index; in search() local 147 …dp ? (dp->index == INC_PREFIX ? "pre" : dp->index == INC_LOCAL ? "lcl" : dp->index == INC_VENDOR ?… in search() 359 …s & SEARCH_NEXT) && index != dp->index && (!(need & TYPE_HOSTED) || dp->index == INC_STANDARD) && … in search() 361 if (index >= 0 && !(fp->flags & INC_MEMBER(index))) in search() 363 index = dp->index; in search() 395 while (dp->next && dp->next->index == index) in search() 558 index = '\t'; in search() 561 index = ' '; in search() 606 int index; in ppsearch() local 826 index = '\t'; in ppsearch() [all …]
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | check_header.c | 91 size_t bufsize, index; in check_gnu() local 202 index = 0; in check_gnu() 208 buf[index] = '\0'; in check_gnu() 232 buf[index++] = '\b'; in check_gnu() 235 buf[index++] = '\f'; in check_gnu() 238 buf[index++] = '\n'; in check_gnu() 241 buf[index++] = '\r'; in check_gnu() 244 buf[index++] = '\t'; in check_gnu() 256 buf[index++] = c; in check_gnu() 273 buf[index++] = n; in check_gnu() [all …]
|
/illumos-gate/usr/src/uts/common/kiconv/kiconv_sc/ |
H A D | kiconv_sc.c | 698 size_t index; in gb2312_to_utf8() local 716 for (index = 0; index < sz; index++) in gb2312_to_utf8() 741 size_t index; in gbk_to_utf8() local 766 index = 1; in gbk_to_utf8() 784 if (index == 0) in gbk_to_utf8() 787 for (index = 0; index < sz; index++) in gbk_to_utf8() 803 size_t index; in utf8_to_gb18030() local 818 index = 1; in utf8_to_gb18030() 856 size_t index; in utf8_to_gbk() local 867 index = 0; in utf8_to_gbk() [all …]
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | dynamic.c | 48 char index[INDEX_STR_SIZE]; in Elf_dyn_entry() local 50 (void) snprintf(index, sizeof (index), MSG_ORIG(MSG_FMT_INDEX), ndx); in Elf_dyn_entry() 51 dbg_print(lml, MSG_INTL(MSG_DYN_ENTRY), index, in Elf_dyn_entry() 65 char index[2 * INDEX_STR_SIZE]; in Elf_dyn_null_entry() local 71 (void) snprintf(index, sizeof (index), in Elf_dyn_null_entry() 73 dbg_print(lml, MSG_INTL(MSG_DYN_ENTRY), index, in Elf_dyn_null_entry()
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_rx.c | 2111 for (index = 0; index < sip->si_nalloc; index++) { in sfxge_rx_scale_kstat_update() 2159 for (index = 0; index < sip->si_nalloc; index++) { in sfxge_rx_scale_kstat_init() 2300 for (index = 0; index < sip->si_nalloc; index++) { in sfxge_rx_scale_update() 2311 for (index = 1; index < sip->si_nalloc; index++) { in sfxge_rx_scale_update() 2536 int index; in sfxge_rx_init() local 2567 for (index = 0; index < sip->si_nalloc; index++) { in sfxge_rx_init() 2607 int index; in sfxge_rx_start() local 2672 for (index = 0; index < sip->si_nalloc; index++) { in sfxge_rx_start() 2753 int index; in sfxge_rx_stop() local 2784 int index; in sfxge_rx_loaned() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | stack.c | 59 stack->position.index = -1; in stackalloc() 93 stack->position.index = -1; in stackclear() 103 if (stack->position.index < 0) return(stack->error); in stackget() 104 else return(stack->position.block->stack[stack->position.index]); in stackget() 116 if (++stack->position.index >= stack->size) in stackpush() 131 stack->position.index = 0; in stackpush() 133 stack->position.block->stack[stack->position.index] = value; in stackpush() 152 if (stack->position.index < 0) return(-1); in stackpop() 153 else if (--stack->position.index < 0) in stackpop() 157 stack->position.index = stack->size - 1; in stackpop()
|
/illumos-gate/usr/src/lib/iconv_modules/ja/common/ |
H A D | PCK_TO_Unicode.c | 68 unsigned int index; /* index for table lookup */ in _icv_iconv() local 107 index = ((ic1 - 0x21) * 94) in _icv_iconv() 109 uni = _jfp_tbl_jisx0208_to_ucs2[index]; in _icv_iconv() 122 index = ((ic1 - 0x21) * 94) in _icv_iconv() 124 uni = _jfp_tbl_jisx0212_to_ucs2[index]; in _icv_iconv() 155 index = (2 - 1) * 94 + (44 - 1); in _icv_iconv() 158 index = (2 - 1) * 94 + (72 - 1); in _icv_iconv() 160 uni = _jfp_tbl_jisx0208_to_ucs2[index]; in _icv_iconv() 171 index = (unsigned int)(upper * 94 + in _icv_iconv() 173 uni = _jfp_tbl_jisx0212_to_ucs2[index]; in _icv_iconv()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regrexec.c | 46 register size_t index; in regrexec() local 72 index = leftlen++; in regrexec() 75 while ((index += skip[buf[index]]) < mid); in regrexec() 76 if (index < HIT) in regrexec() 78 index -= HIT; in regrexec() 79 m = mask[n = exactlen - 1][buf[index]]; in regrexec() 84 } while (m &= mask[n][buf[--index]]); in regrexec() 85 if ((index += fail[n + 1]) < len) in regrexec() 96 r = (l = buf + index) + exactlen; in regrexec() 107 if ((r - (buf + index)) < rightlen) in regrexec() [all …]
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_pages.c | 107 index = oindex; in ses2_aes_index() 116 index = eindex; in ses2_aes_index() 163 uint64_t index; in ses2_threshold_index() local 169 &index) == 0); in ses2_threshold_index() 185 uint64_t index; in ses2_element_index() local 233 uint64_t index; in ses2_status_index() local 238 &index) != 0) in ses2_status_index() 264 uint64_t index; in ses2_ctl_fill() local 272 &index) != 0) { in ses2_ctl_fill() 318 uint64_t index; in ses2_threshout_ctl_fill() local [all …]
|