| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
| D | memset-2.c | 38 void check (int off, int len, int ch) in check() argument 44 for (i = 0; i < off; i++, q++) in check() 59 int off; in main() local 63 for (off = 0; off < MAX_OFFSET; off++) in main() 67 p = memset (u.buf + off, '\0', 1); in main() 68 if (p != u.buf + off) abort (); in main() 69 check (off, 1, '\0'); in main() 71 p = memset (u.buf + off, A, 1); in main() 72 if (p != u.buf + off) abort (); in main() 73 check (off, 1, 'A'); in main() [all …]
|
| D | memset-1.c | 34 int off, len, i; in main() local 37 for (off = 0; off < MAX_OFFSET; off++) in main() 43 p = memset (u.buf + off, '\0', len); in main() 44 if (p != u.buf + off) in main() 48 for (i = 0; i < off; i++, q++) in main() 60 p = memset (u.buf + off, A, len); in main() 61 if (p != u.buf + off) in main() 65 for (i = 0; i < off; i++, q++) in main() 77 p = memset (u.buf + off, 'B', len); in main() 78 if (p != u.buf + off) in main() [all …]
|
| /openbsd/src/gnu/llvm/lld/MachO/ |
| D | EhFrame.cpp | 21 uint64_t EhReader::readLength(size_t *off) const { in readLength() 22 const size_t errOff = *off; in readLength() 23 if (*off + 4 > data.size()) in readLength() 25 uint64_t len = read32le(data.data() + *off); in readLength() 26 *off += 4; in readLength() 29 if (*off + 8 > data.size()) in readLength() 31 len = read64le(data.data() + *off); in readLength() 32 *off += 8; in readLength() 34 if (*off + len > data.size()) in readLength() 39 void EhReader::skipValidLength(size_t *off) const { in skipValidLength() [all …]
|
| D | InputSection.cpp | 45 uint64_t InputSection::getVA(uint64_t off) const { in getVA() 46 return parent->addr + getOffset(off); in getVA() 60 const Defined *InputSection::getContainingSymbol(uint64_t off) const { in getContainingSymbol() 62 symbols, off, [](uint64_t a, const Defined *b) { return a < b->value; }); in getContainingSymbol() 68 std::string InputSection::getLocation(uint64_t off) const { in getLocation() 71 if (auto *sym = getContainingSymbol(off)) in getLocation() 73 Twine::utohexstr(off - sym->value) + ")") in getLocation() 79 off += subsec.offset; in getLocation() 85 Twine::utohexstr(off) + ")") in getLocation() 89 std::string InputSection::getSourceLocation(uint64_t off) const { in getSourceLocation() [all …]
|
| /openbsd/src/etc/etc.sparc64/ |
| D | ttys | 8 ttyC0 "/usr/libexec/getty std.9600" sun off secure 10 ttya "/usr/libexec/getty std.9600" unknown off secure 11 ttyb "/usr/libexec/getty std.9600" unknown off secure 13 tty00 "/usr/libexec/getty std.9600" unknown off secure 14 tty01 "/usr/libexec/getty std.9600" unknown off secure 16 ttyh0 "/usr/libexec/getty std.9600" unknown off secure 17 ttyh1 "/usr/libexec/getty std.9600" unknown off secure 19 ttym0 "/usr/libexec/getty std.9600" unknown off secure 20 ttym1 "/usr/libexec/getty std.9600" unknown off secure 21 ttym2 "/usr/libexec/getty std.9600" unknown off secure [all …]
|
| /openbsd/src/gnu/usr.bin/binutils/gdb/ |
| D | kod-cisco.c | 134 int off = 0; /* Where we are in the string. */ in cisco_kod_request() local 183 off += 4; in cisco_kod_request() 187 count = strtol (&buffer[off], &s_end, 16); in cisco_kod_request() 188 if (s_end - &buffer[off] != 2 || buffer[off + 2] != ',') in cisco_kod_request() 194 off += 3; in cisco_kod_request() 197 if ((buffer[off] != '0' && buffer[off] != '1') in cisco_kod_request() 198 || buffer[off + 1] != ',') in cisco_kod_request() 204 done = buffer[off] == '1'; in cisco_kod_request() 205 off += 2; in cisco_kod_request() 209 prev_id = &buffer[off]; in cisco_kod_request() [all …]
|
| /openbsd/src/sys/crypto/ |
| D | criov.c | 35 cuio_copydata(struct uio *uio, int off, int len, caddr_t cp) in cuio_copydata() argument 41 if (off < 0) in cuio_copydata() 42 panic("cuio_copydata: off %d < 0", off); in cuio_copydata() 45 while (off > 0) { in cuio_copydata() 48 if (off < iov->iov_len) in cuio_copydata() 50 off -= iov->iov_len; in cuio_copydata() 57 count = min(iov->iov_len - off, len); in cuio_copydata() 58 bcopy(((caddr_t)iov->iov_base) + off, cp, count); in cuio_copydata() 61 off = 0; in cuio_copydata() 68 cuio_copyback(struct uio *uio, int off, int len, const void *_cp) in cuio_copyback() argument [all …]
|
| /openbsd/src/regress/usr.sbin/vmd/diskfmt/ |
| D | vioscribble.c | 69 fill(size_t off, char *buf, size_t len) in fill() argument 75 buf[i] = (off >> 8); in fill() 83 off_t len, off, qcsz, rawsz; in main() local 101 off = (random() % DISKSZ); in main() 103 fill(off, buf, sizeof buf); in main() 104 if (qcowfile.pwrite(qcowfile.p, buf, len, off) == -1) in main() 105 printf("iter %d: unable to write at %llx\n", i, off); in main() 106 rawfile.pwrite(rawfile.p, buf, len, off); in main() 108 if (qcowfile.pread(qcowfile.p, buf, len, off) == -1) in main() 109 printf("unable to read at %llx\n", off); in main() [all …]
|
| /openbsd/src/gnu/llvm/lld/COFF/ |
| D | Chunks.cpp | 85 static void applySecRel(const SectionChunk *sec, uint8_t *off, in applySecRel() argument 94 add32(off, secRel); in applySecRel() 97 static void applySecIdx(uint8_t *off, OutputSection *os, in applySecIdx() argument 107 add16(off, os->sectionIndex); in applySecIdx() 109 add16(off, numOutputSections + 1); in applySecIdx() 112 void SectionChunk::applyRelX64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX64() argument 117 add32(off, s + imageBase); in applyRelX64() 120 add64(off, s + imageBase); in applyRelX64() 122 case IMAGE_REL_AMD64_ADDR32NB: add32(off, s); break; in applyRelX64() 123 case IMAGE_REL_AMD64_REL32: add32(off, s - p - 4); break; in applyRelX64() [all …]
|
| /openbsd/src/gnu/usr.bin/perl/ext/SDBM_File/ |
| D | pair.c | 51 int off; in fitpair() local 55 off = ((n = ino[0]) > 0) ? ino[n] : PBLKSIZ; in fitpair() 56 free = off - (n + 1) * sizeof(short); in fitpair() 68 int off; in putpair() local 71 off = ((n = ino[0]) > 0) ? ino[n] : PBLKSIZ; in putpair() 75 off -= key.dsize; in putpair() 76 (void) memcpy(pag + off, key.dptr, key.dsize); in putpair() 77 ino[n + 1] = off; in putpair() 81 off -= val.dsize; in putpair() 82 (void) memcpy(pag + off, val.dptr, val.dsize); in putpair() [all …]
|
| /openbsd/src/gnu/usr.bin/perl/lib/Tie/ |
| D | Array.pm | 39 my $off = (@_) ? shift : 0; 40 $off += $sz if ($off < 0); 41 my $len = (@_) ? shift : $sz - $off; 42 $len += $sz - $off if $len < 0; 45 push(@result,$obj->FETCH($off+$i)); 47 $off = $sz if $off > $sz; 48 $len -= $off + $len - $sz if $off + $len > $sz; 52 my $e = $off+$len; 62 my $e = $off+$len; 63 for (my $i=$off+$len; $i < $sz; $i++) { [all …]
|
| /openbsd/src/lib/libradius/ |
| D | radius_userpass.c | 45 size_t off; in radius_encrypt_user_password_attr() local 52 for (off = 0; off < plen; off += sizeof(p)) { in radius_encrypt_user_password_attr() 53 c = ((char *)cipher) + off; in radius_encrypt_user_password_attr() 55 strncpy(p, plain + off, sizeof(p)); /* not strlcpy() */ in radius_encrypt_user_password_attr() 58 if (off == 0) in radius_encrypt_user_password_attr() 67 *clen = off; in radius_encrypt_user_password_attr() 77 size_t off; in radius_decrypt_user_password_attr() local 87 for (off = 0; off < clen; off += 16) { in radius_decrypt_user_password_attr() 88 c = ((char *)cipher) + off; in radius_decrypt_user_password_attr() 89 p = plain + off; in radius_decrypt_user_password_attr() [all …]
|
| /openbsd/src/lib/libevent/ |
| D | buffer.c | 73 (x)->off = (y)->off; \ 82 if (outbuf->off == 0) { in evbuffer_add_buffer() 84 size_t oldoff = inbuf->off; in evbuffer_add_buffer() 96 if (inbuf->off != oldoff && inbuf->cb != NULL) in evbuffer_add_buffer() 97 (*inbuf->cb)(inbuf, oldoff, inbuf->off, inbuf->cbarg); in evbuffer_add_buffer() 104 res = evbuffer_add(outbuf, inbuf->buffer, inbuf->off); in evbuffer_add_buffer() 107 evbuffer_drain(inbuf, inbuf->off); in evbuffer_add_buffer() 118 size_t oldoff = buf->off; in evbuffer_add_vprintf() 126 size_t used = buf->misalign + buf->off; in evbuffer_add_vprintf() 127 buffer = (char *)buf->buffer + buf->off; in evbuffer_add_vprintf() [all …]
|
| /openbsd/src/sys/dev/ic/ |
| D | pcdisplay_subr.c | 58 int off; in pcdisplay_cursor_init() local 72 off = (scr->vc_crow * scr->type->ncols + scr->vc_ccol) * 2 + in pcdisplay_cursor_init() 75 scr->cursortmp = bus_space_read_2(memt, memh, off); in pcdisplay_cursor_init() 76 bus_space_write_2(memt, memh, off, scr->cursortmp ^ 0x7700); in pcdisplay_cursor_init() 90 int off; in pcdisplay_cursor() local 95 off = scr->vc_crow * scr->type->ncols + scr->vc_ccol; in pcdisplay_cursor() 97 bus_space_write_2(memt, memh, scr->dispoffset + off * 2, in pcdisplay_cursor() 100 scr->mem[off] = scr->cursortmp; in pcdisplay_cursor() 109 off = (scr->vc_crow * scr->type->ncols + scr->vc_ccol); in pcdisplay_cursor() 111 off = off * 2 + scr->dispoffset; in pcdisplay_cursor() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/gt/ |
| D | shmem_utils.c | 96 static int __shmem_rw(struct file *file, loff_t off, in __shmem_rw() argument 102 for (pfn = off >> PAGE_SHIFT; len; pfn++) { in __shmem_rw() 104 min_t(size_t, PAGE_SIZE - offset_in_page(off), len); in __shmem_rw() 115 memcpy(vaddr + offset_in_page(off), ptr, this); in __shmem_rw() 118 memcpy(ptr, vaddr + offset_in_page(off), this); in __shmem_rw() 126 off = 0; in __shmem_rw() 132 int shmem_read_to_iosys_map(struct file *file, loff_t off, in shmem_read_to_iosys_map() argument 137 for (pfn = off >> PAGE_SHIFT; len; pfn++) { in shmem_read_to_iosys_map() 139 min_t(size_t, PAGE_SIZE - offset_in_page(off), len); in shmem_read_to_iosys_map() 149 iosys_map_memcpy_to(map, map_off, vaddr + offset_in_page(off), in shmem_read_to_iosys_map() [all …]
|
| /openbsd/src/etc/etc.armv7/ |
| D | ttys | 7 ttyC0 "/usr/libexec/getty std.9600" vt220 off secure 11 ttyC4 "/usr/libexec/getty std.9600" vt220 off secure 13 ttyC6 "/usr/libexec/getty std.9600" vt220 off secure 14 ttyC7 "/usr/libexec/getty std.9600" vt220 off secure 15 ttyC8 "/usr/libexec/getty std.9600" vt220 off secure 16 ttyC9 "/usr/libexec/getty std.9600" vt220 off secure 17 ttyCa "/usr/libexec/getty std.9600" vt220 off secure 18 ttyCb "/usr/libexec/getty std.9600" vt220 off secure 19 tty00 "/usr/libexec/getty std.115200" unknown off secure 20 tty01 "/usr/libexec/getty std.9600" unknown off secure [all …]
|
| /openbsd/src/etc/etc.arm64/ |
| D | ttys | 7 ttyC0 "/usr/libexec/getty std.9600" vt220 off secure 11 ttyC4 "/usr/libexec/getty std.9600" vt220 off secure 13 ttyC6 "/usr/libexec/getty std.9600" vt220 off secure 14 ttyC7 "/usr/libexec/getty std.9600" vt220 off secure 15 ttyC8 "/usr/libexec/getty std.9600" vt220 off secure 16 ttyC9 "/usr/libexec/getty std.9600" vt220 off secure 17 ttyCa "/usr/libexec/getty std.9600" vt220 off secure 18 ttyCb "/usr/libexec/getty std.9600" vt220 off secure 19 tty00 "/usr/libexec/getty std.115200" unknown off secure 20 tty01 "/usr/libexec/getty std.9600" unknown off secure [all …]
|
| /openbsd/src/etc/etc.amd64/ |
| D | ttys | 6 console "/usr/libexec/getty std.9600" vt220 off secure 11 ttyC4 "/usr/libexec/getty std.9600" vt220 off secure 13 ttyC6 "/usr/libexec/getty std.9600" vt220 off secure 14 ttyC7 "/usr/libexec/getty std.9600" vt220 off secure 15 ttyC8 "/usr/libexec/getty std.9600" vt220 off secure 16 ttyC9 "/usr/libexec/getty std.9600" vt220 off secure 17 ttyCa "/usr/libexec/getty std.9600" vt220 off secure 18 ttyCb "/usr/libexec/getty std.9600" vt220 off secure 19 tty00 "/usr/libexec/getty std.9600" unknown off 20 tty01 "/usr/libexec/getty std.9600" unknown off [all …]
|
| /openbsd/src/etc/etc.i386/ |
| D | ttys | 6 console "/usr/libexec/getty std.9600" vt220 off secure 11 ttyC4 "/usr/libexec/getty std.9600" vt220 off secure 13 ttyC6 "/usr/libexec/getty std.9600" vt220 off secure 14 ttyC7 "/usr/libexec/getty std.9600" vt220 off secure 15 ttyC8 "/usr/libexec/getty std.9600" vt220 off secure 16 ttyC9 "/usr/libexec/getty std.9600" vt220 off secure 17 ttyCa "/usr/libexec/getty std.9600" vt220 off secure 18 ttyCb "/usr/libexec/getty std.9600" vt220 off secure 19 tty00 "/usr/libexec/getty std.9600" unknown off 20 tty01 "/usr/libexec/getty std.9600" unknown off [all …]
|
| /openbsd/src/etc/etc.powerpc64/ |
| D | ttys | 7 ttyC0 "/usr/libexec/getty std.9600" vt220 off secure 11 ttyC4 "/usr/libexec/getty std.9600" vt220 off secure 13 ttyC6 "/usr/libexec/getty std.9600" vt220 off secure 14 ttyC7 "/usr/libexec/getty std.9600" vt220 off secure 15 ttyC8 "/usr/libexec/getty std.9600" vt220 off secure 16 ttyC9 "/usr/libexec/getty std.9600" vt220 off secure 17 ttyCa "/usr/libexec/getty std.9600" vt220 off secure 18 ttyCb "/usr/libexec/getty std.9600" vt220 off secure 19 tty00 "/usr/libexec/getty std.115200" unknown off secure 20 tty01 "/usr/libexec/getty std.9600" unknown off secure [all …]
|
| /openbsd/src/etc/etc.riscv64/ |
| D | ttys | 7 ttyC0 "/usr/libexec/getty std.9600" vt220 off secure 11 ttyC4 "/usr/libexec/getty std.9600" vt220 off secure 13 ttyC6 "/usr/libexec/getty std.9600" vt220 off secure 14 ttyC7 "/usr/libexec/getty std.9600" vt220 off secure 15 ttyC8 "/usr/libexec/getty std.9600" vt220 off secure 16 ttyC9 "/usr/libexec/getty std.9600" vt220 off secure 17 ttyCa "/usr/libexec/getty std.9600" vt220 off secure 18 ttyCb "/usr/libexec/getty std.9600" vt220 off secure 19 tty00 "/usr/libexec/getty std.115200" unknown off secure 20 tty01 "/usr/libexec/getty std.9600" unknown off secure [all …]
|
| /openbsd/src/lib/libcurses/tinfo/ |
| D | trim_sgr0.c | 248 char *off = set_attribute_9(tp, 0); in _nc_trim_sgr0() local 255 TR(TRACE_DATABASE, ("sgr(9:off) %s", _nc_visbuf(off))); in _nc_trim_sgr0() 259 || !rewrite_sgr(off, exit_alt_charset_mode) in _nc_trim_sgr0() 261 FreeIfNeeded(off); in _nc_trim_sgr0() 262 } else if (similar_sgr(off, end) in _nc_trim_sgr0() 263 && !similar_sgr(off, on)) { in _nc_trim_sgr0() 264 TR(TRACE_DATABASE, ("adjusting sgr(9:off) : %s", _nc_visbuf(off))); in _nc_trim_sgr0() 265 result = off; in _nc_trim_sgr0() 271 j = strlen(off); in _nc_trim_sgr0() 276 off + i); in _nc_trim_sgr0() [all …]
|
| /openbsd/src/lib/libcrypto/ec/ |
| D | eck_prn.c | 77 EC_KEY_print(BIO *bio, const EC_KEY *ec_key, int off) in EC_KEY_print() argument 88 ret = EVP_PKEY_print_private(bio, pkey, off, NULL); in EC_KEY_print() 98 EC_KEY_print_fp(FILE *fp, const EC_KEY *ec_key, int off) in EC_KEY_print_fp() argument 110 ret = EC_KEY_print(bio, ec_key, off); in EC_KEY_print_fp() 161 ecpk_print_asn1_parameters(BIO *bio, const EC_GROUP *group, int off) in ecpk_print_asn1_parameters() argument 167 if (!BIO_indent(bio, off, 128)) { in ecpk_print_asn1_parameters() 183 if (!BIO_indent(bio, off, 128)) { in ecpk_print_asn1_parameters() 200 ecpk_print_explicit_parameters(BIO *bio, const EC_GROUP *group, int off) in ecpk_print_explicit_parameters() argument 255 if (!BIO_indent(bio, off, 128)) in ecpk_print_explicit_parameters() 261 if (!bn_printf(bio, p, off, "Prime:")) in ecpk_print_explicit_parameters() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/ |
| D | i386-memset-1.c | 37 int off, len, i; in main() local 40 for (off = 0; off < MAX_OFFSET; off++) in main() 46 p = memset (u.buf + off, '\0', len); in main() 47 if (p != u.buf + off) in main() 51 for (i = 0; i < off; i++, q++) in main() 63 p = memset (u.buf + off, A, len); in main() 64 if (p != u.buf + off) in main() 68 for (i = 0; i < off; i++, q++) in main() 80 p = memset (u.buf + off, 'B', len); in main() 81 if (p != u.buf + off) in main() [all …]
|
| /openbsd/src/usr.sbin/smtpd/ |
| D | proxy.c | 159 size_t len, off; in proxy_io() local 169 off = sizeof(s->hdr) - s->header_len; in proxy_io() 170 off = (len < off ? len : off); in proxy_io() 171 memcpy((uint8_t *) &s->hdr + s->header_len, buf, off); in proxy_io() 173 s->header_len += off; in proxy_io() 174 buf += off; in proxy_io() 175 len -= off; in proxy_io() 176 io_drop(s->io, off); in proxy_io() 189 off = s->addr_total - s->addr_len; in proxy_io() 190 off = (len < off ? len : off); in proxy_io() [all …]
|