/illumos-gate/usr/src/cmd/localedef/ |
H A D | wide.c | 254 int cnt; in tomb_utf8() local 263 cnt = 2; in tomb_utf8() 266 cnt = 3; in tomb_utf8() 269 cnt = 4; in tomb_utf8() 275 for (i = cnt - 1; i; i--) { in tomb_utf8() 280 s[cnt] = 0; in tomb_utf8() 281 return (cnt); in tomb_utf8()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipsecalgs.c | 247 int cnt, req_len; in kernel_synch() local 296 if (cnt != req_len) { in kernel_synch() 297 if (cnt < 0) { in kernel_synch() 307 if (cnt == -1) { in kernel_synch() 311 if (cnt < sizeof (struct spd_msg)) { in kernel_synch() 333 int cnt, retval; in list_kernel_algs() local 354 cnt = write(sfd, &msg, sizeof (msg)); in list_kernel_algs() 355 if (cnt != sizeof (msg)) { in list_kernel_algs() 356 if (cnt < 0) { in list_kernel_algs() 366 if (cnt == -1) { in list_kernel_algs() [all …]
|
/illumos-gate/usr/src/cmd/rpcinfo/ |
H A D | rpcinfo.c | 1064 int cnt, flen; local 1126 cnt = 0; 1129 cnt += pa->success; 1133 cnt = 0; 1150 lp += (flen + cnt); 1180 cnt = 0; 1187 cnt = 0; 1204 lp += (flen + cnt); 1236 cnt = 0; 1243 cnt = 0; [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_output.c | 456 int64_t cnt; in auimpl_output_callback() local 504 cnt = e->e_head - e->e_tail; in auimpl_output_callback() 507 while (cnt < e->e_playahead) { in auimpl_output_callback() 509 cnt = e->e_head - e->e_tail; in auimpl_output_callback() 537 int64_t cnt; in auimpl_output_preload() local 547 cnt = e->e_head - e->e_tail; in auimpl_output_preload() 550 while (cnt < e->e_playahead) { in auimpl_output_preload() 552 cnt = e->e_head - e->e_tail; in auimpl_output_preload()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfconst.c | 236 size_t *cnt = (size_t *)uvalue; variable 238 (*cnt)++; 247 size_t cnt; /* # of descriptors */ member 314 fill_state.cnt = 1; /* Extra for NULL termination */ in libconv_fill() 315 libconv_fill_iter(sym, osabi, mach, libconv_count_cb, &fill_state.cnt); in libconv_fill() 321 if ((sym->ste_alloc != NULL) && (fill_state.cnt > sym->ste_nelts)) { in libconv_fill() 330 fill_state.cnt * sizeof (*fill_state.desc)); in libconv_fill() 331 sym->ste_nelts = fill_state.cnt; in libconv_fill()
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/ulp/ |
H A D | fcsm.h | 201 #define FCSM_REP_RD(handle, hostaddr, devaddr, cnt) \ argument 205 (uint8_t *)(devaddr), (cnt), \ 208 bcopy((devaddr), (hostaddr), (cnt)); \ 212 #define FCSM_REP_WR(handle, hostaddr, devaddr, cnt) \ argument 216 (uint8_t *)(devaddr), (cnt), \ 219 bcopy((hostaddr), (devaddr), (cnt)); \
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/resilver/ |
H A D | resilver_restart_001.ksh | 64 cnt=$2 69 log_note "expected $cnt resilver start(s)$msg, found $RESILVERS" 70 [[ "$RESILVERS" -ne "$cnt" ]] && 71 log_fail "expected $cnt resilver start(s)$msg, found $RESILVERS"
|
/illumos-gate/usr/src/test/bhyve-tests/tests/inst_emul/ |
H A D | page_dirty.c | 56 uint8_t cnt; in popc8() local 58 for (cnt = 0; val != 0; val &= (val - 1)) { in popc8() 59 cnt++; in popc8() 61 return (cnt); in popc8()
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | doulimit.c | 122 int cnt = 0; in assign_ulimit() local 127 if (!isdigit(fslimit[cnt])) in assign_ulimit() 129 } while (fslimit[++cnt]); in assign_ulimit()
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | checksum.c | 54 sumupd(long sum, char *cp, unsigned long cnt) in sumupd() argument 56 if ((cp == 0) || (cnt == 0)) in sumupd() 59 while (cnt--) in sumupd()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_zero_to_err_ptr.c | 80 int cnt = -1; in is_non_zero_int() local 83 cnt++; in is_non_zero_int() 85 if (cnt == 0) { in is_non_zero_int() 89 } else if (cnt == 1) { in is_non_zero_int()
|
H A D | smatch_constraints.c | 119 int cnt = 0; in alloc_constraint_state() local 122 if (cnt != 0) in alloc_constraint_state() 123 cnt += snprintf(buf + cnt, sizeof(buf) - cnt, ", "); in alloc_constraint_state() 124 cnt += snprintf(buf + cnt, sizeof(buf) - cnt, "%s%d", in alloc_constraint_state()
|
H A D | check_spectre.c | 96 int cnt = 0; in get_max_by_type() local 119 if (cnt++ > 5) in get_max_by_type() 130 int cnt = 0; in get_mask() local 137 if (++cnt > 3) in get_mask()
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpio.c | 1461 int cnt; in cksum() local 1497 for (cnt = 0; cnt < TCRCLEN; cnt++) { in cksum() 1502 for (cnt = 0; cnt < TARSZ; cnt++) { in cksum() 1782 cnt++; in creat_lnk() 1976 cnt = 0; in creat_spec() 2017 cnt++; in creat_spec() 5598 cnt = 0; in openout() 5721 cnt++; in openout() 7382 pad = ((cnt + Pad_val) & ~Pad_val) - cnt; in write_hdr() 7438 for (cnt = 0; cnt < 3; cnt++) { in write_trail() [all …]
|
/illumos-gate/usr/src/cmd/auditrecord/ |
H A D | auditrecord.pl | 92 my ($cnt, $error); 95 ($cnt, $error) = $parse->readControl('ignore'); 96 print STDERR $error if ($cnt); 99 ($cnt, $error) = $parse->readUser('ignore'); 100 print STDERR $error if ($cnt); 103 ($cnt, $error) = $parse->ckAttrEvent(); 104 print STDERR $error if ($cnt);
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | relocate.c | 59 Xword ent, cnt, _cnt; in count_reloc() local 71 cnt = shdr->sh_size / ent; in count_reloc() 76 if ((reloc = calloc(cnt, sizeof (Reloc))) == 0) in count_reloc() 92 for (_cnt = 0; _cnt < cnt; _cnt++, reloc++, in count_reloc() 429 Xword ent, cnt, _cnt; local 440 cnt = shdr->sh_size / ent; 445 for (_cnt = 0; _cnt < cnt; _cnt++, reloc++,
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | insert2.test | 36 CREATE TABLE t1(log int, cnt int); 51 CREATE TABLE t1(log int, cnt int); 65 CREATE TABLE t1(log int, cnt int); 80 CREATE TABLE t1(log int, cnt int); 82 CREATE INDEX i2 ON t1(cnt); 86 lappend r [execsql {SELECT cnt FROM t1 WHERE log=3}] 87 lappend r [execsql {SELECT log FROM t1 WHERE cnt=4 ORDER BY log}]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_znode.c | 820 int cnt = 0; in zfs_mknode() local 966 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_ATIME(zfsvfs), in zfs_mknode() 974 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_GEN(zfsvfs), in zfs_mknode() 976 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_MODE(zfsvfs), in zfs_mknode() 978 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_SIZE(zfsvfs), in zfs_mknode() 983 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_MODE(zfsvfs), in zfs_mknode() 985 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_SIZE(zfsvfs), in zfs_mknode() 987 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_GEN(zfsvfs), in zfs_mknode() 989 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_UID(zfsvfs), in zfs_mknode() 991 SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_GID(zfsvfs), in zfs_mknode() [all …]
|
/illumos-gate/usr/src/cmd/sgs/lex/common/ |
H A D | sub2.c | 531 rcount += (long)cnt; in packtrans() 544 for (i = 0; i < cnt; i++) { in packtrans() 555 for (i = 0; i < cnt; i++) { in packtrans() 586 cnt = k; in packtrans() 607 if (tcnt > cnt) in packtrans() 695 nexts[nptr] = cnt; in packtrans() 704 if (cnt < 1) { in packtrans() 793 int cnt, m; in acompute() local 798 cnt = *p++; in acompute() 799 if (cnt > MAXPOSSTATE) in acompute() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_ksetpwd.c | 109 int cnt, i; in smb_krb5_get_pn_set() local 116 cnt = smb_krb5_spn_count(type); in smb_krb5_get_pn_set() 117 set->s_pns = (char **)calloc(cnt + 1, sizeof (char *)); in smb_krb5_get_pn_set() 125 if (set->s_cnt == cnt) in smb_krb5_get_pn_set() 465 int i, cnt; in smb_krb5_spn_count() local 467 for (i = 0, cnt = 0; i < SMB_KRB5_SPN_TAB_SZ; i++) { in smb_krb5_spn_count() 469 cnt++; in smb_krb5_spn_count() 472 return (cnt); in smb_krb5_spn_count()
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | os.c | 319 pLock->cnt = 0; in findLockInfo() 1320 if( id->pLock->cnt>0 ){ 1322 id->pLock->cnt++; 1342 id->pLock->cnt = 1; 1357 int cnt = 100; local 1393 int cnt = 5; local 1438 if( id->pLock->cnt==0 || (id->pLock->cnt==1 && id->locked==1) ){ 1467 int cnt = 100; local 1501 int cnt = 5; local 1550 if( id->pLock->cnt>1 ){ [all …]
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_temp.c | 363 int cnt; in synctmp() local 425 cnt = ((dol - a) + 2) * sizeof (line); in synctmp() 426 if (cnt > BUFSIZE) in synctmp() 427 cnt = BUFSIZE; in synctmp() 428 if (write(tfile, (char *)a, cnt) != cnt) { in synctmp() 584 int cnt; in putreg() local 609 cnt = append(getREG, addr2); in putreg() 616 killcnt(cnt); in putreg() 617 notecnt = cnt; in putreg()
|
/illumos-gate/usr/src/cmd/troff/nroff.d/ |
H A D | n10.c | 382 int cnt; in ptout1() local 425 cnt = 0; in ptout1() 426 while ((*q & MBMASK1) && (cnt + 1 < (int)MB_CUR_MAX)) { in ptout1() 427 cnt++; in ptout1() 430 if ((cnt && !(*q & CSMASK)) || (*q & MBMASK1)) { in ptout1() 431 q -= cnt; in ptout1() 432 cnt = 0; in ptout1() 490 for (qq = q - cnt; qq <= q;) in ptout1() 493 for (jj = cnt + 1; jj > 0; jj--) in ptout1() 495 for (qq = q - cnt; qq <= q;) in ptout1()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_delete.c | 385 indx_t cnt, idx, *ip, offset; local 440 for (cnt = idx, ip = &pg->linp[0]; cnt--; ++ip) 443 for (cnt = NEXTINDEX(pg) - idx; --cnt; ++ip) 481 indx_t cnt, *ip, offset; local 509 for (cnt = idx, ip = &h->linp[0]; cnt--; ++ip) 512 for (cnt = NEXTINDEX(h) - idx; --cnt; ++ip)
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | propfuncs.c | 519 uint_t cnt; in i_dladm_get_prop_temp() local 555 cnt = pdp->pd_nmodval; in i_dladm_get_prop_temp() 556 if (cnt == 0) { in i_dladm_get_prop_temp() 558 } else if (cnt > *val_cntp) { in i_dladm_get_prop_temp() 561 for (i = 0; i < cnt; i++) { in i_dladm_get_prop_temp() 565 *val_cntp = cnt; in i_dladm_get_prop_temp() 582 uint_t cnt; in i_dladm_set_one_prop_temp() local 599 cnt = val_cnt; in i_dladm_set_one_prop_temp() 608 cnt = 1; in i_dladm_set_one_prop_temp() 611 status = pdp->pd_set(handle, name, vdp, cnt); in i_dladm_set_one_prop_temp()
|