| /netbsd-src/usr.bin/pwait/ |
| H A D | pwait.c | 77 size_t nleft, n, i; in main() local 131 nleft = 0; in main() 145 for (i = 0; i < nleft; i++) in main() 149 EV_SET(e + nleft, (uintptr_t)pid, EVFILT_PROC, EV_ADD, in main() 151 if (kevent(kq, e + nleft, 1, NULL, 0, NULL) == -1) in main() 154 nleft++; in main() 158 while (nleft > 0) { in main() 161 switch (rv = kevent(kq, NULL, 0, e, nleft, tsp)) { in main() 194 nleft -= n; in main()
|
| /netbsd-src/sys/arch/atari/dev/ |
| H A D | nvram.c | 141 int nleft; in nvram_uio() local 155 nleft = uio->uio_resid; in nvram_uio() 156 if (offset + nleft >= MC_NVRAM_CSUM) { in nvram_uio() 159 nleft = MC_NVRAM_CSUM - offset; in nvram_uio() 160 if (nleft <= 0) in nvram_uio() 163 DPRINTF(("Translated: offset = %d, bytes: %d\n", (long)offset, nleft)); in nvram_uio() 166 for (i = 0, p = buf; i < nleft; i++, p++) in nvram_uio() 169 if ((i = uiomove(buf, nleft, uio)) != 0) in nvram_uio() 172 for (i = 0, p = buf; i < nleft; i++, p++) in nvram_uio()
|
| /netbsd-src/external/bsd/openldap/dist/libraries/liblutil/ |
| H A D | passfile.c | 43 size_t nread, nleft, nr; in lutil_get_filed_password() local 78 nleft = passwd->bv_len; in lutil_get_filed_password() 80 if( nleft == 0 ) { in lutil_get_filed_password() 91 nleft = passwd->bv_len; in lutil_get_filed_password() 96 nr = fread( &passwd->bv_val[nread], 1, nleft, f ); in lutil_get_filed_password() 98 if( nr < nleft && ferror( f ) ) { in lutil_get_filed_password() 107 nleft -= nr; in lutil_get_filed_password()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/cmac/ |
| H A D | cmac.c | 164 size_t nleft; in CMAC_Update() local 165 nleft = bl - ctx->nlast_block; in CMAC_Update() 166 if (dlen < nleft) in CMAC_Update() 167 nleft = dlen; in CMAC_Update() 168 memcpy(ctx->last_block + ctx->nlast_block, data, nleft); in CMAC_Update() 169 dlen -= nleft; in CMAC_Update() 170 ctx->nlast_block += nleft; in CMAC_Update() 174 data += nleft; in CMAC_Update()
|
| /netbsd-src/usr.sbin/timed/timed/ |
| H A D | cksum.c | 57 int nleft = len; in in_cksum() local 67 while (nleft > 1) { in in_cksum() 73 nleft -= 2; in in_cksum() 77 if (nleft == 1) in in_cksum()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/cmac/ |
| H A D | cmac.c | 176 size_t nleft; in CMAC_Update() local 178 nleft = bl - ctx->nlast_block; in CMAC_Update() 179 if (dlen < nleft) in CMAC_Update() 180 nleft = dlen; in CMAC_Update() 181 memcpy(ctx->last_block + ctx->nlast_block, data, nleft); in CMAC_Update() 182 dlen -= nleft; in CMAC_Update() 183 ctx->nlast_block += nleft; in CMAC_Update() 187 data += nleft; in CMAC_Update()
|
| /netbsd-src/tests/lib/libpthread/ |
| H A D | h_resolv.c | 148 int i, c, done, *nleft; in main() local 174 if ((nleft = malloc(nthreads * sizeof(int))) == NULL) in main() 185 nleft[i] = nhosts; in main() 186 threads[i] = run(&nleft[i]); in main() 192 if (nleft[i] != 0) { in main() 210 free(nleft); in main()
|
| /netbsd-src/external/gpl3/gdb/dist/readline/readline/ |
| H A D | display.c | 1208 int nleft, pos, changed_screen_line, tx; in rl_redisplay() local 1315 nleft = _rl_screenwidth - _rl_last_c_pos; in rl_redisplay() 1317 nleft = _rl_screenwidth + wrap_offset - _rl_last_c_pos; in rl_redisplay() 1318 if (nleft) in rl_redisplay() 1319 _rl_clear_to_eol (nleft); in rl_redisplay() 1343 nleft = _rl_screenwidth - _rl_last_c_pos; in rl_redisplay() 1345 nleft = _rl_screenwidth + wrap_offset - _rl_last_c_pos; in rl_redisplay() 1346 if (nleft) in rl_redisplay() 1347 _rl_clear_to_eol (nleft); in rl_redisplay() 1395 nleft = prompt_visible_length + wrap_offset; in rl_redisplay() [all …]
|
| /netbsd-src/usr.sbin/mrouted/ |
| H A D | inet.c | 201 int nleft = (int)len; in inet_cksum() local 217 while (nleft > 1) { in inet_cksum() 219 nleft -= 2; in inet_cksum() 223 if (nleft == 1) { in inet_cksum()
|
| H A D | main.c | 378 int nleft = nroutes - nsent; in fasttimer() local 379 while (nleft > 0) { in fasttimer() 382 nleft -= n; in fasttimer()
|
| /netbsd-src/external/bsd/openldap/dist/libraries/liblber/ |
| H A D | io.c | 60 ber_len_t actuallen, nleft; in ber_skip_data() local 65 nleft = ber_pvt_ber_remaining( ber ); in ber_skip_data() 66 actuallen = nleft < len ? nleft : len; in ber_skip_data() 83 ber_len_t actuallen, nleft; in ber_read() local 89 nleft = ber_pvt_ber_remaining( ber ); in ber_read() 90 actuallen = nleft < len ? nleft : len; in ber_read()
|
| /netbsd-src/external/gpl3/binutils/dist/gprofng/src/ |
| H A D | vec.h | 492 size_t nleft = mid - base; in qsort() local 493 size_t nright = nelem - nleft - 1; in qsort() 494 if (nleft <= nright) in qsort() 496 qsort (base, nleft, qcmp, arg); in qsort() 503 nelem = nleft; in qsort()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/ |
| H A D | vec.h | 492 size_t nleft = mid - base; in qsort() local 493 size_t nright = nelem - nleft - 1; in qsort() 494 if (nleft <= nright) in qsort() 496 qsort (base, nleft, qcmp, arg); in qsort() 503 nelem = nleft; in qsort()
|
| /netbsd-src/bin/sh/ |
| H A D | output.h | 43 int nleft; member 103 #define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)-…
|
| /netbsd-src/usr.bin/rdist/ |
| H A D | expand.c | 62 int nleft; variable 120 nleft = NCARGS - 4; in expand() 532 nleft -= len; in Cat() 533 if (nleft <= 0 || ++eargc >= GAVSIZ) in Cat()
|
| /netbsd-src/external/bsd/openldap/dist/libraries/libldap/ |
| H A D | avl.c | 509 int nleft, nright; in ldap_avl_free() local 514 nleft = nright = 0; in ldap_avl_free() 516 nleft = ldap_avl_free( root->avl_left, dfree ); in ldap_avl_free() 525 return( nleft + nright + 1 ); in ldap_avl_free()
|
| H A D | tavl.c | 434 int nleft, nright; in ldap_tavl_free() local 439 nleft = ldap_tavl_free( ldap_avl_lchild( root ), dfree ); in ldap_tavl_free() 447 return( nleft + nright + 1 ); in ldap_tavl_free()
|
| /netbsd-src/sys/arch/sparc/sparc/ |
| H A D | pmap.c | 4698 int nleft, pmeg, inmmu; in pmap_rmk4_4c() local 4707 if ((nleft = sp->sg_npte) == 0) in pmap_rmk4_4c() 4746 nleft--; in pmap_rmk4_4c() 4748 if (nleft < 0) in pmap_rmk4_4c() 4764 if (sp->sg_nwired > nleft || sp->sg_nwired < 0) in pmap_rmk4_4c() 4766 pm, va, nleft, sp->sg_nwired); in pmap_rmk4_4c() 4768 if ((sp->sg_npte = nleft) == 0) in pmap_rmk4_4c() 4843 int nleft, pmeg, inmmu; in pmap_rmu4_4c() local 4851 if ((nleft = sp->sg_npte) == 0) in pmap_rmu4_4c() 4910 nleft--; in pmap_rmu4_4c() [all …]
|
| /netbsd-src/bin/ksh/ |
| H A D | emacs.c | 516 int nleft = xep - xcp; local 518 if (!nleft) { 522 if (x_arg > nleft) 523 x_arg = nleft; 775 int nleft = xep - xcp; local 777 if (!nleft) { 781 if (x_arg > nleft) 782 x_arg = nleft;
|
| /netbsd-src/tests/lib/libc/stdio/ |
| H A D | t_fmemopen.c | 1105 size_t len0, len1, nleft; in ATF_TC_BODY() local 1123 nleft = t0->n - len0; in ATF_TC_BODY() 1125 if (nleft == 0 || len1 == nleft - 1) { in ATF_TC_BODY() 1127 == nleft); in ATF_TC_BODY() 1131 == nleft - 1); in ATF_TC_BODY()
|
| /netbsd-src/sys/uvm/ |
| H A D | uvm_vnode.c | 289 unsigned int flags, struct uvm_page_array *a, unsigned int nleft) in uvn_findpage() argument 314 pg = uvm_page_array_fill_and_peek(a, offset, nleft); in uvn_findpage()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | mpt_netbsd.c | 956 int seg, i, nleft = req->dmap->dm_nsegs; in mpt_run_xfer() local 980 nleft--; in mpt_run_xfer() 992 while (nleft) { in mpt_run_xfer() 1000 if (nleft > MPT_NSGL(mpt)) { in mpt_run_xfer() 1007 ntodo = nleft; in mpt_run_xfer() 1036 nleft--; in mpt_run_xfer()
|
| /netbsd-src/usr.sbin/traceroute/ |
| H A D | traceroute.c | 1548 int nleft = len; in in_cksum2() local 1562 while (nleft > 1) { in in_cksum2() 1564 nleft -= 2; in in_cksum2() 1568 if (nleft == 1) { in in_cksum2()
|
| /netbsd-src/external/gpl2/xcvs/dist/src/ |
| H A D | rcs.c | 4610 size_t nleft = len; in RCS_checkout() local 4614 while (nleft > 0) in RCS_checkout() 4627 nleft -= nstep; in RCS_checkout() 4628 if (nleft < nstep) in RCS_checkout() 4629 nstep = nleft; in RCS_checkout()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/ |
| H A D | string.d | 4057 const nleft = (width - len) / 2; 4058 const nright = width - len - nleft; 4059 return chain(repeat(fillChar, nleft), r, repeat(fillChar, nright));
|