Searched refs:cnt (Results 126 - 150 of 836) sorted by relevance

1234567891011>>

/freebsd-11-stable/lib/libiconv_modules/UTF8/
H A Dcitrus_utf8.c248 size_t cnt; local
255 cnt = _UTF8_findlen(wc);
256 if (cnt <= 0 || cnt > 6) {
261 if (n < cnt) {
269 for (i = cnt - 1; i > 0; i--) {
274 if (cnt == 1)
277 s[0] &= (0x7f >> cnt);
278 s[0] |= ((0xff00 >> cnt) & 0xff);
282 *nresult = (size_t)cnt;
[all...]
/freebsd-11-stable/contrib/atf/atf-c/detail/
H A Dtext_test.c140 size_t cnt; local
143 cnt = 0;
145 RE(atf_text_for_each_word("1 2 3", " ", word_count, &cnt));
147 ATF_REQUIRE(cnt == 3);
150 cnt = 0;
152 RE(atf_text_for_each_word("1 2 3", ".", word_count, &cnt));
154 ATF_REQUIRE(cnt == 1);
157 cnt = 0;
159 RE(atf_text_for_each_word("1 2 3 4 5", " ", word_count, &cnt));
161 ATF_REQUIRE(cnt
[all...]
/freebsd-11-stable/contrib/telnet/libtelnet/
H A Dkerberos.c234 kerberos4_is(Authenticator *ap, unsigned char *data, int cnt) argument
244 if (cnt-- < 1)
255 memmove((void *)auth.dat, (void *)data, auth.length = cnt);
257 printf("Got %d bytes of authentication data\r\n", cnt);
335 kerberos4_reply(Authenticator *ap, unsigned char *data, int cnt) argument
341 if (cnt-- < 1)
345 if (cnt > 0) {
347 cnt, data);
378 if ((cnt != sizeof(Block)) ||
416 kerberos4_printsub(unsigned char *data, int cnt, unsigne argument
[all...]
H A Dsra.c155 sra_is(Authenticator *ap, unsigned char *data, int cnt) argument
160 if (cnt-- < 1)
165 if (cnt < HEXKEYBYTES) {
187 if (cnt > 512) /* Attempted buffer overflow */
189 memcpy(xuser,data,cnt);
190 xuser[cnt] = '\0';
198 if (cnt > 512) /* Attempted buffer overflow */
201 memcpy(xpass,data,cnt);
202 xpass[cnt] = '\0';
246 sra_reply(Authenticator *ap, unsigned char *data, int cnt) argument
358 sra_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument
[all...]
/freebsd-11-stable/contrib/unbound/compat/
H A Dgetentropy_solaris.c257 static int cnt; local
285 cnt += (int)tv.tv_sec;
286 cnt += (int)tv.tv_usec;
353 mo = cnt %
356 cnt += (int)((long)(mm[m].p)
366 cnt += (int)ts.tv_nsec;
372 cnt += (int)ru.ru_utime.tv_sec;
373 cnt += (int)ru.ru_utime.tv_usec;
414 cnt += (int)ru.ru_utime.tv_sec;
415 cnt
[all...]
H A Dgetentropy_linux.c217 int fd, cnt, flags; local
244 if (ioctl(fd, RNDGETENTCNT, &cnt) == -1) {
337 static int cnt; local
364 cnt += (int)tv.tv_sec;
365 cnt += (int)tv.tv_usec;
431 mo = cnt %
434 cnt += (int)((long)(mm[m].p)
444 cnt += (int)ts.tv_nsec;
450 cnt += (int)ru.ru_utime.tv_sec;
451 cnt
[all...]
/freebsd-11-stable/sys/crypto/aesni/
H A Daesni_wrap.c82 size_t i, j, cnt; local
85 cnt = len / AES_BLOCK_LEN / 8;
86 for (i = 0; i < cnt; i++) {
99 cnt = len / AES_BLOCK_LEN;
100 for (; i < cnt; i++) {
117 size_t i, cnt; local
119 cnt = len / AES_BLOCK_LEN / 8;
120 for (i = 0; i < cnt; i++) {
138 cnt = len / AES_BLOCK_LEN;
139 for (; i < cnt;
156 size_t i, cnt; local
218 size_t i, cnt; local
385 size_t i, cnt; local
[all...]
/freebsd-11-stable/usr.sbin/newsyslog/tests/
H A Dlegacy_test.sh166 cnt=$1; shift
167 if [ $cnt -eq `echo "$@" | wc -w` ]
280 cnt="$1"
300 begin "rotate normal 1 cnt=$cnt ${name_postfix}"
303 ckntfe 1 $cnt ${dir}${LOGFNAME}.0${ext}
307 begin "rotate normal 2 cnt=$cnt ${name_postfix}"
310 ckntfe 1 $cnt ${dir}${LOGFNAME}.0${ext}
311 ckntfe 2 $cnt
[all...]
/freebsd-11-stable/contrib/nvi/vi/
H A Dv_ch.c140 u_long cnt; local
168 for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) {
222 u_long cnt; local
251 for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) {
H A Dv_replace.c52 u_long cnt; local
87 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1;
89 vp->m_stop.cno = vp->m_start.cno + cnt - 1;
172 p += vp->m_start.cno + cnt;
173 len -= vp->m_start.cno + cnt;
195 STRSET(bp + vp->m_start.cno, vip->rlast, cnt);
/freebsd-11-stable/sys/contrib/alpine-hal/
H A Dal_hal_plat_services.h381 * @param cnt number of bytes to set
383 #define al_memset(p, val, cnt) memset(p, val, cnt)
390 * @param cnt number of bytes to copy
392 #define al_memcpy(p1, p2, cnt) memcpy(p1, p2, cnt)
399 * @param cnt number of bytes to compare
401 #define al_memcmp(p1, p2, cnt) memcmp(p1, p2, cnt)
/freebsd-11-stable/usr.sbin/ctm/ctm/
H A Dctm_pass1.c25 int i,j,sep,cnt; local
71 cnt = -1;
203 GETBYTECNT(cnt,sep);
206 if(cnt < 0) WRONG
207 GETDATA(trash,cnt);
208 p = MD5Data(trash,cnt,md5_1);
/freebsd-11-stable/lib/libiconv_modules/UTF1632/
H A Dcitrus_utf1632.c253 size_t cnt; local
255 cnt = (size_t)0;
259 cnt = 4;
261 cnt = 2;
264 if (n < cnt)
266 memcpy(s, bom, cnt);
267 s += cnt, n -= cnt;
281 cnt += 4;
288 cnt
[all...]
/freebsd-11-stable/sys/powerpc/powerpc/
H A Ddb_interface.c61 size_t cnt; local
68 cnt = size;
76 while (cnt-- > 0)
/freebsd-11-stable/usr.bin/lsvfs/
H A Dlsvfs.c44 int cnt, rv = 0, i; local
70 cnt = buflen / sizeof(struct xvfsconf);
72 for (i = 0; i < cnt; i++) {
/freebsd-11-stable/sys/sys/
H A Dgtaskqueue.h61 int taskqgroup_adjust(struct taskqgroup *qgroup, int cnt, int stride);
83 #define TASKQGROUP_DEFINE(name, cnt, stride) \
99 taskqgroup_adjust(qgroup_##name, (cnt), (stride)); \
/freebsd-11-stable/contrib/netbsd-tests/kernel/tty/
H A Dt_pr.c49 ssize_t cnt; local
55 cnt = rump_sys_read(to, buf, sizeof(buf));
56 if (cnt < (ssize_t)strlen(msg)) {
57 printf("short message read: %zd chars: \"%s\"\n", cnt, buf);
/freebsd-11-stable/contrib/gdb/gdb/config/i386/
H A Dnm-i386sco5.h61 #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
/freebsd-11-stable/sys/contrib/ngatm/netnatm/msg/
H A Dgenmsgc.awk90 for(i = 0; i < cnt; i++) {
119 for(i = 0; i < cnt; i++) {
171 for(i = 0; i < cnt; i++) {
211 for (i = 0; i < cnt; i++) {
/freebsd-11-stable/usr.bin/calendar/
H A Dpom.c107 int cnt, d; local
137 for (cnt = EPOCH; cnt < GMT.tm_year; ++cnt)
138 yeardays += isleap(1900 + cnt) ? DAYSPERLEAPYEAR : DAYSPERYEAR;
147 for (cnt = EPOCH; cnt < GMT.tm_year; ++cnt)
148 yeardays += isleap(1900 + cnt) ? DAYSPERLEAPYEAR : DAYSPERYEAR;
/freebsd-11-stable/sys/kern/
H A Dkern_syscalls.c67 u_int32_t cnt, oldcnt; local
73 cnt = oldcnt | SY_THR_DRAINING;
74 } while (atomic_cmpset_acq_32(&se->sy_thrcnt, oldcnt, cnt) == 0);
83 u_int32_t cnt, oldcnt; local
91 cnt = oldcnt + SY_THR_INCR;
92 } while (atomic_cmpset_acq_32(&se->sy_thrcnt, oldcnt, cnt) == 0);
99 u_int32_t cnt, oldcnt; local
105 cnt = oldcnt - SY_THR_INCR;
106 } while (atomic_cmpset_rel_32(&se->sy_thrcnt, oldcnt, cnt) == 0);
H A Dkern_clock.c498 hardclock_cnt(int cnt, int usermode) argument
510 *t += cnt;
531 tick * cnt) == 0)
538 tick * cnt) == 0)
702 statclock_cnt(int cnt, int usermode) argument
719 td->td_uticks += cnt;
721 cp_time[CP_NICE] += cnt;
723 cp_time[CP_USER] += cnt;
739 td->td_iticks += cnt;
740 cp_time[CP_INTR] += cnt;
782 profclock_cnt(int cnt, int usermode, uintfptr_t pc) argument
[all...]
/freebsd-11-stable/sys/mips/include/
H A Dintr_machdep.h74 PCPU_INC(cnt.v_intr);
/freebsd-11-stable/lib/libc/gen/
H A Dsyslog.c135 int cnt; local
232 cnt = sizeof(tbuf) - tbuf_cookie.left;
235 if (tbuf[cnt - 1] == '\n')
236 cnt--;
244 v->iov_len = cnt - (stdp - tbuf);
273 if (send(LogFile, tbuf, cnt, 0) < 0) {
281 if (send(LogFile, tbuf, cnt, 0) >= 0)
297 if (send(LogFile, tbuf, cnt, 0) >= 0)
316 v->iov_len = cnt - (p - tbuf);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace.cpp33 void BufferedStackTrace::Init(const uptr *pcs, uptr cnt, uptr extra_top_pc) { argument
34 size = cnt + !!extra_top_pc;
36 internal_memcpy(trace_buffer, pcs, cnt * sizeof(trace_buffer[0]));
38 trace_buffer[cnt] = extra_top_pc;

Completed in 114 milliseconds

1234567891011>>