/openbsd/gnu/usr.bin/perl/lib/Tie/ |
H A D | SubstrHash.pm | 48 my $rlen = 1 + $klen + $vlen; 51 $self->[0] x= $rlen * $tsize->[1]; 64 my (undef, $klen, $vlen, $tsize, $rlen) = @$self; 67 my $offset = $hash * $rlen; 68 my $record = substr($self->[0], $offset, $rlen); 83 my (undef, $klen, $vlen, $tsize, $rlen) = @$self; 91 my $offset = $hash * $rlen; 92 my $record = substr($self->[0], $offset, $rlen); 95 die "panic" unless length($record) == $rlen; 116 my (undef, $klen, $vlen, $tsize, $rlen) = @$self; [all …]
|
/openbsd/usr.sbin/smtpd/ |
H A D | queue_proc.c | 28 static size_t rlen; variable 47 rlen = imsg.hdr.len - IMSG_HEADER_SIZE; in queue_proc_call() 74 if (len > rlen) { in queue_proc_read() 80 rlen -= len; in queue_proc_read() 87 if (rlen) { in queue_proc_end() 245 if (rlen > len) { in queue_proc_envelope_load() 250 r = rlen; in queue_proc_envelope_load() 251 queue_proc_read(buf, rlen); in queue_proc_envelope_load() 269 if (rlen > len) { in queue_proc_envelope_walk() 273 if (r != (int)rlen) { in queue_proc_envelope_walk() [all …]
|
/openbsd/usr.bin/ssh/ |
H A D | sshbuf.c | 243 size_t rlen; in sshbuf_set_max_size() local 260 rlen = SSHBUF_SIZE_INIT; in sshbuf_set_max_size() 263 if (rlen > max_size) in sshbuf_set_max_size() 264 rlen = max_size; in sshbuf_set_max_size() 265 SSHBUF_DBG(("new alloc = %zu", rlen)); in sshbuf_set_max_size() 269 buf->alloc = rlen; in sshbuf_set_max_size() 329 size_t rlen, need; in sshbuf_allocate() local 352 if (rlen > buf->max_size) in sshbuf_allocate() 353 rlen = buf->alloc + need; in sshbuf_allocate() 354 SSHBUF_DBG(("adjusted rlen %zu", rlen)); in sshbuf_allocate() [all …]
|
/openbsd/sys/dev/microcode/myx/ |
H A D | build.c | 43 size_t rlen, total = 0; in myx_build_firmware() local 71 rlen = ulen - total; in myx_build_firmware() 72 if (rlen > CHUNK) in myx_build_firmware() 73 rlen = CHUNK; in myx_build_firmware() 75 if (fwrite(&ufw[total], rlen, 1, f) < 1) { in myx_build_firmware() 81 total += rlen; in myx_build_firmware()
|
/openbsd/gnu/usr.bin/cvs/vms/ |
H A D | filutils.c | 166 long rlen; local 281 && (rlen = strlen (ptr) - 1) > 0 282 && (ptr[rlen] == ']' || ptr[rlen] == '>') 283 && ptr[rlen - 1] == '.') 286 int tmp = ptr[rlen]; 290 buf[rlen - 1] = tmp; 291 buf[rlen] = '\0'; 303 rlen = strlen (rptr) - 1; 304 strncat (dst, rptr, rlen); 305 dst[slen + rlen] = '\0';
|
/openbsd/sys/dev/pv/ |
H A D | hypervic.c | 297 uint32_t rlen; in hv_heartbeat() local 301 if (rv || rlen == 0) { in hv_heartbeat() 309 sc->sc_dev.dv_xname, rlen); in hv_heartbeat() 366 uint32_t rlen; in hv_shutdown() local 370 if (rv || rlen == 0) { in hv_shutdown() 378 sc->sc_dev.dv_xname, rlen); in hv_shutdown() 445 uint32_t rlen; in hv_timesync() local 449 if (rv || rlen == 0) { in hv_timesync() 1050 uint32_t fwver, msgver, rlen; in hv_kvp() local 1055 &rlen, &rid, 0); in hv_kvp() [all …]
|
/openbsd/regress/sys/kern/kqueue/ |
H A D | kqueue-tun.c | 73 int rlen; in tunnel_write() local 82 if ((rlen = writev(fd, iv, 2)) > 0) in tunnel_write() 84 fdkey, (long)(rlen - sizeof(type))); in tunnel_write() 94 int rlen; in tunnel_read() local 104 if ((rlen = readv(fd, iv, 2)) > 0) { in tunnel_read() 106 fdkey, (long)(rlen - sizeof(type))); in tunnel_read() 107 tpkt.len = rlen - sizeof(type); in tunnel_read()
|
/openbsd/games/boggle/mkindex/ |
H A D | mkindex.c | 48 int clen, rlen, prev; in main() local 57 while (nextword(stdin, buf, &clen, &rlen) != NULL) { in main() 77 nextword(FILE *fp, char *buffer, int *clen, int *rlen) in nextword() argument 100 *rlen = (int) (p - buf); in nextword() 101 *clen = *rlen - *clen; in nextword()
|
/openbsd/sys/dev/microcode/cirruslogic/ |
H A D | build.c | 30 ssize_t rlen; in main() local 38 rlen = write(fd, &BA1Struct, sizeof BA1Struct); in main() 39 if (rlen == -1) in main() 41 if (rlen != sizeof BA1Struct) in main()
|
/openbsd/sys/dev/microcode/rsu/ |
H A D | build.c | 32 ssize_t rlen; in output() local 41 rlen = write(fd, ucode, size); in output() 42 if (rlen == -1) in output() 44 if (rlen != size) in output()
|
/openbsd/sys/dev/microcode/zydas/ |
H A D | build.c | 32 ssize_t rlen; in output() local 41 rlen = write(fd, ucode, size); in output() 42 if (rlen == -1) in output() 44 if (rlen != size) in output()
|
/openbsd/sys/dev/microcode/rum/ |
H A D | build.c | 32 ssize_t rlen; in output() local 41 rlen = write(fd, ucode, size); in output() 42 if (rlen == -1) in output() 44 if (rlen != size) in output()
|
/openbsd/sys/dev/microcode/neomagic/ |
H A D | build.c | 33 ssize_t rlen; in main() local 46 rlen = write(fd, &nf, sizeof nf); in main() 47 if (rlen == -1) in main() 49 if (rlen != sizeof nf) in main()
|
/openbsd/sys/dev/microcode/ral/ |
H A D | build.c | 32 ssize_t rlen; in output() local 41 rlen = write(fd, ucode, size); in output() 42 if (rlen == -1) in output() 44 if (rlen != size) in output()
|
/openbsd/sys/dev/microcode/rtwn/ |
H A D | build.c | 32 ssize_t rlen; in output() local 41 rlen = write(fd, ucode, size); in output() 42 if (rlen == -1) in output() 44 if (rlen != size) in output()
|
/openbsd/sys/dev/microcode/typhoon/ |
H A D | build.c | 43 ssize_t rlen; in main() local 50 rlen = write(fd, tc990image, sizeof tc990image); in main() 51 if (rlen == -1) in main() 53 if (rlen != sizeof tc990image) in main()
|
/openbsd/sys/dev/microcode/urtwn/ |
H A D | build.c | 32 ssize_t rlen; in output() local 41 rlen = write(fd, ucode, size); in output() 42 if (rlen == -1) in output() 44 if (rlen != size) in output()
|
/openbsd/sys/arch/arm64/dev/ |
H A D | simplebus.c | 290 int parent, rlen, rone; in simplebus_bs_map() local 302 rlen = sc->sc_rangeslen / sizeof(uint32_t); in simplebus_bs_map() 306 for (range = sc->sc_ranges; rlen >= rone; rlen -= rone, range += rone) { in simplebus_bs_map() 341 int parent, rlen, rone; in simplebus_bs_mmap() local 353 rlen = sc->sc_rangeslen / sizeof(uint32_t); in simplebus_bs_mmap() 357 for (range = sc->sc_ranges; rlen >= rone; rlen -= rone, range += rone) { in simplebus_bs_mmap() 391 int rlen, rone, seg; in simplebus_dmamap_load_buffer() local 415 for (range = sc->sc_dmaranges; rlen >= rone; in simplebus_dmamap_load_buffer() 416 rlen -= rone, range += rone) { in simplebus_dmamap_load_buffer() 450 int rlen, rone, seg; in simplebus_dmamap_load_raw() local [all …]
|
/openbsd/gnu/usr.bin/perl/cpan/MIME-Base64/ |
H A D | Base64.xs | 101 STRLEN rlen; /* length of result string */ variable 111 str = SvPV(sv, rlen); /* SvPV(sv, len) gives warning for signed len */ 112 len = (SSize_t)rlen; 123 rlen = (len+2) / 3 * 4; /* encoded bytes */ 124 if (rlen) { 126 rlen += ((rlen-1) / MAX_LINE + 1) * eollen; 130 RETVAL = newSV(rlen ? rlen : 1); 132 SvCUR_set(RETVAL, rlen); 160 if (rlen) { 191 STRLEN rlen = len * 3 / 4; variable [all …]
|
/openbsd/sys/dev/microcode/atmel/ |
H A D | build.c | 36 ssize_t rlen; in output() local 44 rlen = write(fd, buf, buflen); in output() 45 if (rlen == -1) in output() 47 if (rlen != buflen) in output()
|
/openbsd/sys/dev/microcode/kue/ |
H A D | build.c | 35 ssize_t rlen; in main() local 63 rlen = write(fd, kf, len); in main() 64 if (rlen == -1) in main() 66 if (rlen != len) in main()
|
/openbsd/sys/dev/microcode/fxp/ |
H A D | build.c | 43 ssize_t rlen; in output() local 54 rlen = write(fd, &dword, sizeof(dword)); in output() 55 if (rlen == -1) in output() 57 if (rlen != sizeof(dword)) in output()
|
/openbsd/sys/net/ |
H A D | ppp-deflate.c | 463 int rlen, olen, ospace; in z_decompress() local 469 rlen = mi->m_len; in z_decompress() 471 while (rlen <= 0) { in z_decompress() 476 rlen = mi->m_len; in z_decompress() 479 --rlen; in z_decompress() 521 state->strm.avail_in = rlen; in z_decompress() 549 rlen += mi->m_len; in z_decompress() 608 int rlen, proto, r; in z_incomp() local 626 rlen = mi->m_len; in z_incomp() 649 rlen += mi->m_len; in z_incomp() [all …]
|
/openbsd/sys/dev/microcode/yds/ |
H A D | build.c | 44 ssize_t rlen; in main() local 79 rlen = write(fd, yf, len); in main() 80 if (rlen == -1) in main() 82 if (rlen != len) in main()
|
/openbsd/sys/dev/microcode/tusb3410/ |
H A D | build.c | 31 ssize_t rlen; in main() local 39 rlen = write(fd, uticom_fw_3410, sizeof uticom_fw_3410); in main() 40 if (rlen != sizeof uticom_fw_3410) in main()
|