/openbsd-current/usr.bin/vi/vi/ |
H A D | v_increment.c | 56 size_t beg, blen, end, len, nlen, wlen; local 109 wlen = len - beg; 110 if (p[beg] == '0' && wlen > 2 && 117 } else if (p[beg] == '0' && wlen > 1) { 123 } else if (wlen >= 1 && (p[beg] == '+' || p[beg] == '-')) { 165 wlen = (end - beg); 176 memmove(bp, &p[beg], wlen); 177 bp[wlen] = '\0'; 224 wlen -= 2; 226 nlen = snprintf(nbuf, sizeof(nbuf), ntype, wlen, ulva [all...] |
/openbsd-current/sys/isofs/cd9660/ |
H A D | cd9660_rrip.c | 115 int len, wlen, cont; local 141 wlen = 0; 147 wlen = 1; 152 wlen = 2; 168 wlen = strlen(inbuf); 174 wlen = hostnamelen; 182 wlen = isonum_711(pcomp->clen); 187 wlen = ana->maxlen + 1; 191 if (len + wlen > ana->maxlen) { 200 bcopy(inbuf, outbuf, wlen); 223 int wlen; local [all...] |
/openbsd-current/usr.sbin/unbound/libunbound/ |
H A D | context.c | 328 size_t wlen = (pkt&&q->res->why_bogus)?strlen(q->res->why_bogus)+1:0; local 330 *len = size_of_uint32s + pkt_len + wlen; 338 sldns_write_uint32(p+5*sizeof(uint32_t), (uint32_t)wlen); 339 if(wlen > 0) 340 memmove(p+size_of_uint32s, q->res->why_bogus, wlen); 342 memmove(p+size_of_uint32s+wlen, 354 size_t wlen; local 363 wlen = (size_t)sldns_read_uint32(p+5*sizeof(uint32_t)); 364 if(len > size_of_uint32s && wlen > 0) { 365 if(len >= size_of_uint32s+wlen) [all...] |
/openbsd-current/sbin/unwind/libunbound/libunbound/ |
H A D | context.c | 328 size_t wlen = (pkt&&q->res->why_bogus)?strlen(q->res->why_bogus)+1:0; local 330 *len = size_of_uint32s + pkt_len + wlen; 338 sldns_write_uint32(p+5*sizeof(uint32_t), (uint32_t)wlen); 339 if(wlen > 0) 340 memmove(p+size_of_uint32s, q->res->why_bogus, wlen); 342 memmove(p+size_of_uint32s+wlen, 354 size_t wlen; local 363 wlen = (size_t)sldns_read_uint32(p+5*sizeof(uint32_t)); 364 if(len > size_of_uint32s && wlen > 0) { 365 if(len >= size_of_uint32s+wlen) [all...] |
/openbsd-current/usr.bin/nc/ |
H A D | socks.c | 183 size_t hlen, wlen; local 244 wlen = 7 + hlen; 254 wlen = 10; 265 wlen = 22; 271 cnt = atomicio(vwrite, proxyfd, buf, wlen); 272 if (cnt != wlen) 273 err(1, "write failed (%zu/%zu)", cnt, wlen); 307 wlen = 9; 309 cnt = atomicio(vwrite, proxyfd, buf, wlen); 310 if (cnt != wlen) [all...] |
/openbsd-current/usr.bin/column/ |
H A D | column.c | 239 int wlen; local 250 for (s = p; (wlen = mbtowc(&wc, s, MB_CUR_MAX)) > 0; 251 s += wlen) 259 while ((wlen = mbtowc(&wc, p, MB_CUR_MAX)) > 0 && 261 p += wlen; 273 if ((wlen = mbtowc(&wc, p, MB_CUR_MAX)) == -1) { 286 p += wlen; 312 p += wlen;
|
/openbsd-current/gnu/usr.bin/perl/cygwin/ |
H A D | cygwin.c | 166 const Size_t wlen = (wcslen(wsrc) + 1) * sizeof(wchar_t); local 169 Size_t blen = wlen * 3 / 2; 173 utf16_to_utf8((U8 *) wsrc, buf, wlen, &blen); 190 Size_t wlen = sizeof(wchar_t) * len; local 192 wchar_t* wsrc = (wchar_t *) safemalloc(wlen); 194 utf8_to_utf16(buf, (U8 *) wsrc, len, &wlen); 315 STRLEN wlen; local 324 wlen = PATH_LEN_GUESS; 325 wsrc = utf8_to_wide_extra_len(src_path, &wlen); 329 wlen [all...] |
/openbsd-current/lib/libedit/ |
H A D | chartype.c | 138 size_t wlen; local 156 wlen = mbstowcs(p, argv[i], bufspace); 158 if (wlen == (size_t)-1 || wlen == bufspace) { 163 wlen++; /* include NUL in the count */ 164 bufspace -= wlen; 165 p += wlen;
|
/openbsd-current/bin/rm/ |
H A D | rm.c | 349 size_t wlen; local 351 for (; len > 0; len -= wlen) { 352 wlen = len < bsize ? len : bsize; 353 arc4random_buf(buf, wlen); 354 if (write(fd, buf, wlen) != wlen)
|
/openbsd-current/sys/dev/fdt/ |
H A D | tipd.c | 300 size_t wlen, void *rbuf, size_t rlen) 307 if (wlen >= sizeof(buf) - 1) 316 if (wlen > 0) { 317 buf[0] = wlen; 318 memcpy(&buf[1], wbuf, wlen); 299 tipd_exec(struct tipd_softc *sc, const char *cmd, const void *wbuf, size_t wlen, void *rbuf, size_t rlen) argument
|
/openbsd-current/usr.sbin/pppd/ |
H A D | upap.c | 578 int mlen, ulen, wlen; local 604 wlen = p[ulen + 1]; 605 if (len < ulen + wlen + 2) 609 p += ulen + wlen + 2; 610 len -= ulen + wlen + 2; 614 print_string(pwd, wlen, printer, arg);
|
/openbsd-current/gnu/lib/libreadline/ |
H A D | isearch.c | 171 int n, wstart, wlen; local 397 wlen = n - wstart + 1; 398 if (search_string_index + wlen + 1 >= search_string_size) 400 search_string_size += wlen + 1;
|
/openbsd-current/usr.bin/ftp/ |
H A D | fetch.c | 190 ssize_t len, wlen; local 256 for (cp = buf; len > 0; len -= wlen, cp += wlen) { 257 if ((wlen = write(out, cp, len)) == -1) { 323 ssize_t len, wlen; local 1065 for (cp = buf; len > 0; len -= wlen, cp += wlen) { 1066 if ((wlen = write(out, cp, len)) == -1) { 1159 size_t hsize = 0, rlen, wlen; local 1189 for (cp = buf, wlen [all...] |
/openbsd-current/gnu/usr.sbin/mkhybrid/src/ |
H A D | apple.c | 1266 int wlen, i; local 1268 wlen = strlen(wname) - strlen(dname); 1278 sprintf(htmp+wlen, "%s%s", hfs_types[i].info, 1310 int type, wlen, i; local 1312 wlen = strlen(wname) - strlen(dname); 1329 sprintf(tmp+wlen, "%s%s", hfs_types[type].info, 1345 sprintf(tmp+wlen, "%s%s", hfs_types[i].info, 1368 int wlen, type, i; local 1371 wlen = strlen(wname) - strlen(dname); 1383 sprintf(rname+wlen, " [all...] |
/openbsd-current/usr.sbin/unbound/util/data/ |
H A D | packed_rrset.c | 278 size_t wlen; local 296 wlen = (size_t)sldns_wire2str_rr_buf(rr, rlen, dest, dest_len); 297 if(wlen >= dest_len) {
|
/openbsd-current/sbin/unwind/libunbound/util/data/ |
H A D | packed_rrset.c | 278 size_t wlen; local 296 wlen = (size_t)sldns_wire2str_rr_buf(rr, rlen, dest, dest_len); 297 if(wlen >= dest_len) {
|
/openbsd-current/bin/ksh/ |
H A D | edit.c | 946 size_t add, wlen; local 950 for (add = 0, wlen = len; wlen - add > 0; add++) { 962 wlen -= add; 967 if (wlen > 0 && rval == 0) 968 rval = putbuf_func(s, wlen);
|
/openbsd-current/gnu/usr.bin/perl/regen/ |
H A D | mph.pl | 650 my $wlen= length $word; 652 my $score= _get_popularity($popularity, $i, $wlen); 656 if ($best_score->{reused_digits} == $wlen) { 808 my $wlen= length $word; 809 for my $i (1 .. $wlen - 1) {
|
/openbsd-current/usr.sbin/bgpd/ |
H A D | mrt.c | 61 uint16_t wlen, alen, len, afi; local 70 memcpy(&wlen, pkg, 2); 71 wlen = ntohs(wlen); 75 if (wlen > 0) { 90 if (wlen == 0 && alen == 0) {
|
/openbsd-current/gnu/usr.bin/perl/cpan/Win32/ |
H A D | Win32.xs | 133 DWORD wlen; 139 wlen = MultiByteToWideChar(cp, 0, str, (int)(len+1), NULL, 0); 140 New(0, wstr, wlen, WCHAR); 141 MultiByteToWideChar(cp, 0, str, (int)(len+1), wstr, wlen); 152 int wlen = (int)wcslen(wstr)+1; 154 int len = WideCharToMultiByte(CP_ACP, WC_NO_BEST_FIT_CHARS, wstr, wlen, NULL, 0, NULL, NULL); 157 len = WideCharToMultiByte(CP_ACP, WC_NO_BEST_FIT_CHARS, wstr, wlen, SvPVX(sv), len, NULL, &use_default); 159 len = WideCharToMultiByte(CP_UTF8, 0, wstr, wlen, NULL, 0, NULL, NULL); 161 len = WideCharToMultiByte(CP_UTF8, 0, wstr, wlen, SvPVX(sv), len, NULL, NULL);
|
/openbsd-current/usr.sbin/unbound/testcode/ |
H A D | testpkts.c | 851 size_t wlen = *plen, sl=0; local 856 if(wlen < LDNS_HEADER_SIZE) 859 wlen -= LDNS_HEADER_SIZE; 863 (void)sldns_wire2str_rrquestion_scan(&w, &wlen, &snull, &sl, 866 (void)sldns_wire2str_rr_scan(&w, &wlen, &snull, &sl, *p, *plen, &comprloop); 868 (void)sldns_wire2str_rr_scan(&w, &wlen, &snull, &sl, *p, *plen, &comprloop); 874 size_t dlen = wlen; 883 (void)sldns_wire2str_rr_scan(&w, &wlen, &snull, &sl, *p, *plen, &comprloop);
|
/openbsd-current/sys/arch/powerpc/powerpc/ |
H A D | bus_dma.c | 435 bus_size_t minlen, wlen; local 453 for (pa = trunc_page(addr), wlen = 0;
|
/openbsd-current/usr.sbin/bgpctl/ |
H A D | bgpctl.c | 1655 uint16_t wlen, alen; local 1658 if (ibuf_get_n16(b, &wlen) == -1 || 1659 ibuf_get_ibuf(b, wlen, &wbuf) == -1) 1662 if (wlen > 0) {
|
/openbsd-current/sys/dev/pci/ |
H A D | arc.c | 2271 int wlen, wdone = 0, rlen, rdone = 0; local 2297 wlen = sizeof(struct arc_fw_bufhdr) + wbuflen + 1; /* 1 for cksum */ 2298 wbuf = malloc(wlen, M_TEMP, M_WAITOK); 2303 DNPRINTF(ARC_D_DB, "%s: arc_msgbuf wlen: %d rlen: %d\n", DEVNAME(sc), 2304 wlen, rlen); 2310 wbuf[wlen - 1] = arc_msg_cksum(wptr, wbuflen); 2315 if ((read_ok) && wdone < wlen) { 2317 rwlen = (wlen - wdone) % sizeof(rwbuf);
|
/openbsd-current/lib/libssl/ |
H A D | s3_lib.c | 1511 size_t rlen, wlen; local 1552 wlen = s->s3->wbuf.len; 1574 s->s3->wbuf.len = wlen;
|