/freebsd/crypto/openssl/crypto/conf/ |
H A D | conf_ssl.c | 63 size_t i, j, cnt; in ssl_module_init() local 79 cnt = sk_CONF_VALUE_num(cmd_lists); in ssl_module_init() 81 ssl_names = OPENSSL_zalloc(sizeof(*ssl_names) * cnt); in ssl_module_init() 84 ssl_names_count = cnt; in ssl_module_init() 103 cnt = sk_CONF_VALUE_num(cmds); in ssl_module_init() 104 ssl_name->cmds = OPENSSL_zalloc(cnt * sizeof(struct ssl_conf_cmd_st)); in ssl_module_init() 107 ssl_name->cmd_count = cnt; in ssl_module_init() 108 for (j = 0; j < cnt; j++) { in ssl_module_init() 138 const SSL_CONF_CMD *conf_ssl_get(size_t idx, const char **name, size_t *cnt) in conf_ssl_get() argument 141 *cnt = ssl_names[idx].cmd_count; in conf_ssl_get()
|
/freebsd/contrib/ofed/librdmacm/examples/ |
H A D | common.c | 104 void cnt_str(char *str, size_t ssize, long long cnt) in cnt_str() argument 106 if (cnt >= 1000000000) in cnt_str() 107 snprintf(str, ssize, "%lldb", cnt / 1000000000); in cnt_str() 108 else if (cnt >= 1000000) in cnt_str() 109 snprintf(str, ssize, "%lldm", cnt / 1000000); in cnt_str() 110 else if (cnt >= 1000) in cnt_str() 111 snprintf(str, ssize, "%lldk", cnt / 1000); in cnt_str() 113 snprintf(str, ssize, "%lld", cnt); in cnt_str()
|
/freebsd/contrib/nvi/vi/ |
H A D | v_sentence.c | 56 u_long cnt; in v_sentencef() local 63 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sentencef() 74 if (--cnt == 0) { in v_sentencef() 100 if (--cnt == 0) in v_sentencef() 104 if (--cnt == 0) in v_sentencef() 131 if (state == BLANK && --cnt == 0) { in v_sentencef() 195 u_long cnt; in v_sentenceb() local 210 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sentenceb() 250 if (--cnt == 0) in v_sentenceb() 261 if (!last || --cnt != 0) { in v_sentenceb() [all …]
|
H A D | v_put.c | 34 u_long cnt; in v_Put() local 44 for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) { in v_Put() 65 u_long cnt; in v_put() local 75 for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) { in v_put()
|
/freebsd/sys/crypto/skein/ |
H A D | skein_debug.c | 19 static void Show64_step(size_t cnt,const u64b_t *X,size_t step) in Show64_step() argument 22 for (i=j=0;i < cnt;i++,j+=step) in Show64_step() 26 if (i % 4 == 3 || i==cnt-1) printf("\n"); in Show64_step() 31 #define Show64(cnt,X) Show64_step(cnt,X,1) argument 33 static void Show64_flag(size_t cnt,const u64b_t *X) in Show64_flag() argument 41 Show64_step(cnt,X,step); in Show64_flag() 44 static void Show08(size_t cnt,const u08b_t *b) in Show08() argument 47 for (i=0;i < cnt;i++) in Show08() 52 if (i %16 == 15 || i==cnt-1) printf("\n"); in Show08() 76 void Skein_Show_Final(uint_t bits,const Skein_Ctxt_Hdr_t *h,size_t cnt,const u08b_t *outPtr) in Skein_Show_Final() argument [all …]
|
/freebsd/sys/kern/ |
H A D | sys_pipe.c | 562 int error, cnt, firstseg; in pipespace_new() local 570 cnt = cpipe->pipe_buffer.cnt; in pipespace_new() 571 if (cnt > size) in pipespace_new() 572 size = cnt; in pipespace_new() 597 if (cnt > 0) { in pipespace_new() 602 if ((cnt - firstseg) > 0) in pipespace_new() 607 buffer, cnt); in pipespace_new() 615 cpipe->pipe_buffer.cnt = cnt; in pipespace_new() 988 wpipe->pipe_pages.cnt = 0; in pipe_clone_write_buffer() 1080 wpipe->pipe_pages.cnt = 0; in pipe_direct_write() [all …]
|
H A D | kern_clock.c | 462 tick * cnt) == 0) in hardclock_itimer() 469 tick * cnt) == 0) in hardclock_itimer() 489 *t += cnt; in hardclock() 701 td->td_uticks += cnt; in statclock() 703 cp_time[CP_NICE] += cnt; in statclock() 705 cp_time[CP_USER] += cnt; in statclock() 721 td->td_iticks += cnt; in statclock() 722 cp_time[CP_INTR] += cnt; in statclock() 724 td->td_pticks += cnt; in statclock() 725 td->td_sticks += cnt; in statclock() [all …]
|
/freebsd/contrib/telnet/libtelnet/ |
H A D | rsaencpwd.c | 185 rsaencpwd_is(ap, data, cnt) in rsaencpwd_is() argument 188 int cnt; 199 cnt--; 308 int cnt; 317 if (cnt-- < 1) 321 if (cnt > 0) { 323 cnt, data); 399 int cnt, buflen; 416 if (cnt <= 4) 419 for (i = 4; i < cnt; i++) [all …]
|
H A D | sra.c | 156 if (cnt-- < 1) in sra_is() 161 if (cnt < HEXKEYBYTES) { in sra_is() 185 memcpy(xuser,data,cnt); in sra_is() 186 xuser[cnt] = '\0'; in sra_is() 197 memcpy(xpass,data,cnt); in sra_is() 198 xpass[cnt] = '\0'; in sra_is() 248 if (cnt-- < 1) in sra_reply() 254 if (cnt < HEXKEYBYTES) { in sra_reply() 377 if (cnt <= 4) in sra_printsub() 380 for (i = 4; i < cnt; i++) in sra_printsub() [all …]
|
/freebsd/crypto/heimdal/appl/telnet/libtelnet/ |
H A D | enc_des.c | 245 int cfb64_is(unsigned char *data, int cnt) in cfb64_is() argument 247 return(fb64_is(data, cnt, &fb[CFB])); in cfb64_is() 252 return(fb64_is(data, cnt, &fb[OFB])); in ofb64_is() 261 if (cnt-- < 1) in fb64_is() 266 if (cnt != sizeof(DES_cblock)) { in fb64_is() 296 printd(data, cnt); in fb64_is() 329 return(fb64_reply(data, cnt, &fb[CFB])); in cfb64_reply() 334 return(fb64_reply(data, cnt, &fb[OFB])); in ofb64_reply() 342 if (cnt-- < 1) in fb64_reply() 363 printd(data, cnt); in fb64_reply() [all …]
|
H A D | rsaencpwd.c | 193 rsaencpwd_is(ap, data, cnt) in rsaencpwd_is() argument 196 int cnt; 207 cnt--; 313 rsaencpwd_reply(ap, data, cnt) in rsaencpwd_reply() argument 316 int cnt; 325 if (cnt-- < 1) 329 if (cnt > 0) { 331 cnt, data); 423 if (cnt <= 4) in rsaencpwd_printsub() 426 for (i = 4; i < cnt; i++) in rsaencpwd_printsub() [all …]
|
H A D | misc.c | 82 auth_encrypt_connect(int cnt) in auth_encrypt_connect() argument 87 printd(const unsigned char *data, int cnt) in printd() argument 89 if (cnt > 16) in printd() 90 cnt = 16; in printd() 91 while (cnt-- > 0) { in printd()
|
/freebsd/usr.bin/wall/ |
H A D | wall.c | 177 int cnt; in makemsg() local 234 cnt = 0; in makemsg() 236 for (p = lbuf; (ch = *p) != L'\0'; ++p, ++cnt) { in makemsg() 239 cnt = 0; in makemsg() 242 for (; cnt < 79; ++cnt) in makemsg() 248 if (cnt == 79) { in makemsg() 251 cnt = 0; in makemsg() 259 if (++cnt == 79) { in makemsg() 262 cnt = 0; in makemsg() 265 --cnt; in makemsg()
|
H A D | ttymsg.c | 60 int cnt, fd; in ttymsg() local 93 for (cnt = 0, left = 0; cnt < iovcnt; ++cnt) in ttymsg() 94 left += iov[cnt].iov_len; in ttymsg() 107 for (cnt = 0; (size_t)wret >= iov->iov_len; ++cnt) { in ttymsg()
|
/freebsd/sys/arm64/arm64/ |
H A D | mem.c | 53 u_int cnt; in memrw() local 70 cnt = ulmin(iov->iov_len, PAGE_SIZE - (u_int)off); in memrw() 71 if (cnt == 0) in memrw() 78 error = uiomove((void *)v, cnt, uio); in memrw() 91 if (!kernacc((void *)v, cnt, prot)) { in memrw() 108 error = uiomove((void *)v, cnt, uio); in memrw() 115 uiomove_fromphys(&marr, off, cnt, uio); in memrw()
|
/freebsd/contrib/one-true-awk/testdir/ |
H A D | ctimes | 8 /:$/ { name = $1; cnt = 0; next } 12 time[cnt] += x[1] 14 time[cnt] += 60 * x[1] + x[2] 17 cnt++ 18 if (cnt == 2) 31 time[0] = time[1] = cnt = 0
|
H A D | sgi.ctimes | 8 /:$/ { name = $1; cnt = 0; next } 12 time[cnt] += x[1] 14 time[cnt] += 60 * x[1] + x[2] 17 cnt++ 18 if (cnt == 2) 31 time[0] = time[1] = cnt = 0
|
/freebsd/sys/riscv/riscv/ |
H A D | mem.c | 54 u_int cnt; in memrw() local 71 cnt = ulmin(iov->iov_len, PAGE_SIZE - (u_int)off); in memrw() 72 if (cnt == 0) in memrw() 79 error = uiomove((void *)v, cnt, uio); in memrw() 92 if (!kernacc((void *)v, cnt, prot)) { in memrw() 109 error = uiomove((void *)v, cnt, uio); in memrw() 116 uiomove_fromphys(&marr, off, cnt, uio); in memrw()
|
/freebsd/lib/libiconv_modules/UTF8/ |
H A D | citrus_utf8.c | 248 size_t cnt; in _citrus_UTF8_wcrtomb_priv() local 255 cnt = _UTF8_findlen(wc); in _citrus_UTF8_wcrtomb_priv() 256 if (cnt <= 0 || cnt > 6) { in _citrus_UTF8_wcrtomb_priv() 261 if (n < cnt) { in _citrus_UTF8_wcrtomb_priv() 269 for (i = cnt - 1; i > 0; i--) { in _citrus_UTF8_wcrtomb_priv() 274 if (cnt == 1) in _citrus_UTF8_wcrtomb_priv() 277 s[0] &= (0x7f >> cnt); in _citrus_UTF8_wcrtomb_priv() 278 s[0] |= ((0xff00 >> cnt) & 0xff); in _citrus_UTF8_wcrtomb_priv() 282 *nresult = (size_t)cnt; in _citrus_UTF8_wcrtomb_priv()
|
/freebsd/contrib/ofed/libibmad/ |
H A D | portid.c | 53 if (portid->drpath.cnt == 0) in portid2portnum() 56 return portid->drpath.p[(portid->drpath.cnt - 1)]; in portid2portnum() 72 if (portid->drpath.cnt) in portid2str() 88 path->cnt = -1; in str2drpath() 100 path->p[++path->cnt] = (uint8_t) atoi(str); in str2drpath() 111 return path->cnt; in str2drpath() 121 for (i = 1; i <= path->cnt; i++) { in drpath2str()
|
/freebsd/tests/sys/cddl/zfs/tests/redundancy/ |
H A D | redundancy.kshlib | 126 typeset -i cnt=$2 128 head -$cnt $BASEDIR/vdevs | tr '\n' ' ' 201 typeset -i cnt=$2 206 vdevs=$(get_vdevs $pool $cnt) 211 while [ $i -lt $cnt ]; do 260 typeset -i cnt=$2 263 vdevs=$(get_vdevs $pool $cnt) 282 typeset -i cnt=$2 285 vdevs=$(get_vdevs $pool $cnt)
|
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/ |
H A D | zfs_acl_chmod_compact_001_pos.ksh | 84 eval typeset -i cnt=\${#${arr_name}[@]} 85 (( ind = $RANDOM % cnt )) 196 typeset -i cnt 204 (( cnt = ($RANDOM % ${#a_access[@]}) + 1 )) 205 acl_access=$(form_random_str a_access $cnt) 212 (( cnt = ($RANDOM % ${#a_inherit_object[@]}) + 1 )) 213 acl_inherit_object=$(form_random_str a_inherit_object $cnt) 214 (( cnt = ($RANDOM % ${#a_inherit_strategy[@]}) + 1 )) 215 acl_inherit_strategy=$(form_random_str a_inherit_strategy $cnt)
|
/freebsd/contrib/sendmail/src/ |
H A D | ratectrl.c | 269 int cnt; local 283 cnt = 0; 391 cnt += cth->ct_Count; 399 if (cnt < ratelimit) 430 ++*prv, ++cnt; 459 return cnt; 504 int cnt = 0; local 530 cnt += ct->ct_Count; 539 return cnt; 547 int i, j, cnt; local [all …]
|
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_ranges.c | 33 uint64_t off, Dwarf_Ranges *rg, Dwarf_Unsigned *cnt) in _dwarf_ranges_parse() argument 62 if (cnt != NULL) in _dwarf_ranges_parse() 63 *cnt = i; in _dwarf_ranges_parse() 108 Dwarf_Unsigned cnt; in _dwarf_ranges_add() local 123 ret = _dwarf_ranges_parse(dbg, cu, ds, off, NULL, &cnt); in _dwarf_ranges_add() 129 rl->rl_rglen = cnt; in _dwarf_ranges_add() 130 if (cnt != 0) { in _dwarf_ranges_add() 131 if ((rl->rl_rgarray = calloc(cnt, sizeof(Dwarf_Ranges))) == in _dwarf_ranges_add()
|
/freebsd/usr.bin/head/ |
H A D | head.c | 157 head(FILE *fp, intmax_t cnt) in head() argument 163 while (cnt != 0 && (readlen = getline(&cp, &bufsize, fp)) >= 0) { in head() 167 cnt--; in head() 172 head_bytes(FILE *fp, off_t cnt) in head_bytes() argument 177 while (cnt) { in head_bytes() 178 if ((uintmax_t)cnt < sizeof(buf)) in head_bytes() 179 readlen = cnt; in head_bytes() 187 cnt -= readlen; in head_bytes()
|