Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 25 of 684) sorted by relevance

12345678910>>...28

/openbsd/usr.sbin/rpki-client/
H A Dio.c66 if (sz > 0) in io_buf_buffer()
103 if (sz == 0) in io_read_buf()
117 size_t sz; in io_read_str() local
119 io_read_buf(b, &sz, sizeof(sz)); in io_read_str()
139 io_read_buf(b, sz, sizeof(*sz)); in io_read_buf_alloc()
178 size_t sz; in io_buf_read() local
205 memcpy(&sz, b->buf, sizeof(sz)); in io_buf_read()
206 if (sz == 0 || sz > INT32_MAX) in io_buf_read()
237 size_t sz; in io_buf_recvfd() local
291 memcpy(&sz, b->buf, sizeof(sz)); in io_buf_recvfd()
[all …]
H A Dip.c83 size_t i, sz = AFI_IPV4 == afi ? 4 : 16; in ip_addr_check_covered() local
90 if (memcmp(ips[i].min, min, sz) <= 0 && in ip_addr_check_covered()
91 memcmp(ips[i].max, max, sz) >= 0) in ip_addr_check_covered()
296 size_t sz; in ip_cert_compose_ranges() local
300 sz = PREFIX_SIZE(p->ip.prefixlen); in ip_cert_compose_ranges()
302 memcpy(p->min, p->ip.addr, sz); in ip_cert_compose_ranges()
304 memcpy(p->max, p->ip.addr, sz); in ip_cert_compose_ranges()
316 p->max[sz - 1] |= in ip_cert_compose_ranges()
323 sz = p->afi == AFI_IPV4 ? 4 : 16; in ip_cert_compose_ranges()
337 memcpy(p->min, p->addr.addr, sz); in ip_roa_compose_ranges()
[all …]
/openbsd/regress/lib/libc/malloc/malloc_general/
H A Dmalloc_general.c41 for (i = 0; i < sz; i++) in fill()
60 size_t sz; in main() local
80 sz = size(); in main()
82 printf("M %zu=", sz); in main()
85 a[i].p = r == 0 ? malloc_conceal(sz) : malloc(sz); in main()
86 a[i].sz = sz; in main()
91 fill(a[i].p, sz); in main()
94 sz = size(); in main()
103 check(q, a[i].sz < sz ? a[i].sz : sz); in main()
106 a[i].sz = sz; in main()
[all …]
/openbsd/sys/arch/mips64/mips64/
H A Dcache_mips64r2.c142 eva = va + sz; in mips64r2_hitwbinv_primary()
154 eva = va + sz; in mips64r2_hitwbinv_secondary()
166 eva = va + sz; in mips64r2_hitwbinv_ternary()
178 eva = va + sz; in mips64r2_hitinv_primary()
190 eva = va + sz; in mips64r2_hitinv_secondary()
202 eva = va + sz; in mips64r2_hitinv_ternary()
342 vsize_t sz; in mips64r2_HitSyncDCache() local
360 vsize_t sz; in mips64r2_HitInvalidateDCache() local
377 vsize_t sz; in mips64r2_IOSyncDCache() local
406 if (sz != 0) in mips64r2_IOSyncDCache()
[all …]
H A Dcache_loongson2.c155 vsize_t sz; in Loongson2_InvalidateICache() local
164 eva = sva + sz; in Loongson2_InvalidateICache()
239 eva = va + sz; in ls2f_hitwbinv_primary()
251 eva = va + sz; in ls2f_hitwbinv_secondary()
262 vsize_t sz; in Loongson2_HitSyncDCache() local
285 eva = va + sz; in ls2f_hitinv_primary()
297 eva = va + sz; in ls2f_hitinv_secondary()
308 vsize_t sz; in Loongson2_HitInvalidateDCache() local
329 vsize_t sz; in Loongson2_IOSyncDCache() local
349 sz -= LS2F_CACHE_LINE; in Loongson2_IOSyncDCache()
[all …]
/openbsd/usr.bin/rsync/
H A Dblocks.c276 sz = st->offs - last; in blk_match()
277 st->dirty += sz; in blk_match()
278 st->total += sz; in blk_match()
305 sz = st->mapsz - last; in blk_match()
311 st->total += sz; in blk_match()
312 st->dirty += sz; in blk_match()
327 size_t pos = 0, sz; in blk_recv_ack() local
334 assert(sz == 20); in blk_recv_ack()
341 assert(pos == sz); in blk_recv_ack()
451 size_t pos = 0, sz; in blk_send_ack() local
[all …]
H A Dio.c57 size_t *sz) in io_write_nonblocking() argument
63 *sz = 0; in io_write_nonblocking()
97 *sz = wsz; in io_write_nonblocking()
111 while (sz > 0) { in io_write_blocking()
121 sz -= wsz; in io_write_blocking()
146 wsz = (sz < 0xFFFFFF) ? sz : 0xFFFFFF; in io_write_buf()
158 sz -= wsz; in io_write_buf()
194 *sz = 0; in io_read_nonblocking()
228 *sz = rsz; in io_read_nonblocking()
254 sz -= rsz; in io_read_blocking()
[all …]
H A Dsymlinks.c35 size_t sz; in symlink_read() local
39 for (sz = PATH_MAX; ; sz *= 2) { in symlink_read()
40 if ((pp = realloc(buf, sz + 1)) == NULL) { in symlink_read()
47 if ((nsz = readlink(path, buf, sz)) == -1) { in symlink_read()
55 } else if ((size_t)nsz < sz) in symlink_read()
74 size_t sz; in symlinkat_read() local
78 for (sz = PATH_MAX; ; sz *= 2) { in symlinkat_read()
79 if ((pp = realloc(buf, sz + 1)) == NULL) { in symlinkat_read()
86 if ((nsz = readlinkat(fd, path, buf, sz)) == -1) { in symlinkat_read()
94 } else if ((size_t)nsz < sz) in symlinkat_read()
/openbsd/usr.bin/mandoc/
H A Dpreconv.c113 size_t sz, phsz; in preconv_cue() local
116 sz = b->sz - offset; in preconv_cue()
121 eoln = ln + sz; in preconv_cue()
132 sz -= 10; in preconv_cue()
134 while (sz > 0) { in preconv_cue()
137 sz--; in preconv_cue()
139 if (0 == sz) in preconv_cue()
153 sz -= phsz; in preconv_cue()
158 sz -= 7; in preconv_cue()
163 sz--; in preconv_cue()
[all …]
/openbsd/gnu/llvm/compiler-rt/lib/tsan/rtl/
H A Dtsan_mman.cpp181 sz > max_user_defined_malloc_size) { in user_alloc_internal()
201 ReportOutOfMemory(sz, &stack); in user_alloc_internal()
204 OnUserAlloc(thr, pc, (uptr)p, sz, true); in user_alloc_internal()
252 ctx->metamap.AllocBlock(thr, pc, p, sz); in OnUserAlloc()
261 MemoryResetRange(thr, pc, (uptr)p, sz); in OnUserAlloc()
276 MemoryRangeFreed(thr, pc, (uptr)p, sz); in OnUserFree()
284 if (!sz) { in user_realloc()
309 uptr sz) { in user_posix_memalign() argument
347 ReportPvallocOverflow(sz, &stack); in user_pvalloc()
350 sz = sz ? RoundUpTo(sz, PageSize) : PageSize; in user_pvalloc()
[all …]
H A Dtsan_sync.cpp50 b->siz = sz; in AllocBlock()
65 return sz; in FreeBlock()
127 sz -= diff; in ResetRange()
129 diff = p + sz - RoundDown(p + sz, kPageSize); in ResetRange()
132 sz -= diff; in ResetRange()
135 CHECK_GT(sz, 0); in ResetRange()
137 CHECK_EQ(sz, RoundUp(sz, kPageSize)); in ResetRange()
139 const uptr sz0 = sz; in ResetRange()
144 sz -= kPageSize; in ResetRange()
151 sz -= kPageSize; in ResetRange()
[all …]
/openbsd/libexec/ld.so/
H A Dmalloc.c72 #define MMAPNONE(sz) _dl_mmap(NULL, (size_t)(sz), PROT_NONE, \ argument
152 (sz) = ((sz) == 0 ? (r)->size : ((sz) == 1 ? 0 : (1 << ((sz)-1))))
384 if (sz != PAGEROUND(sz)) in unmap()
447 if (sz != PAGEROUND(sz)) { in map()
452 p = MMAP(sz); in map()
490 p = MMAP(sz); in map()
708 p = ptr + sz; in validate_canary()
888 size_t byte, sz; in validate_junk() local
908 size_t sz; in ofree() local
1082 if (sz != PAGEROUND(sz)) in mapalign()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Encode/t/
H A Dunibench.pl26 my $sz = 256 * $i;
28 $S{utf8}{$sz}{$cp} = $utf8_seed{$cp} x $i;
29 $S{utf16}{$sz}{$cp} = encode('UTF-16BE', $S{utf8}{$sz}{$cp});
34 my $sz = $i * 256;
42 $meth->('UTF-16BE', $S{$from}{$sz}{$cp})
43 eq $S{$to}{$sz}{$cp}
44 or die "$op,$from,$to,$sz,$cp";
49 eq $S{$to}{$sz}{$cp}
50 or die "$op,$from,$to,$sz,$cp";
55 eq $S{$to}{$sz}{$cp} or
[all …]
/openbsd/regress/sys/uvm/mmap_4g/
H A Dmmap_4g.c25 size_t i, sz; in main() local
33 sz = sizeof(buf); in main()
34 offset = 4LL * 1024LL * 1024LL * 1024LL - sz/2; in main()
38 memset(buf, 0, sz); in main()
39 if (write(fd, buf, sz) != sz) in main()
50 for (i = 0; i < sz; i++) in main()
52 if (munmap(p, sz) == -1) in main()
59 if (read(fd, buf, sz) != sz) in main()
61 for (i = 0; i < sz; i++) in main()
68 if (read(fd, buf, sz) != sz) in main()
[all …]
/openbsd/lib/libc/db/btree/
H A Dbt_overflow.c79 u_int32_t sz; in __ovfl_get() local
84 *ssz = sz; in __ovfl_get()
91 if (*bufsz < sz) { in __ovfl_get()
92 tp = realloc(*buf, sz); in __ovfl_get()
96 *bufsz = sz; in __ovfl_get()
108 nb = MINIMUM(sz, plen); in __ovfl_get()
112 if ((sz -= nb) == 0) in __ovfl_get()
136 u_int32_t sz; in __ovfl_put() local
162 if ((sz -= nb) == 0) { in __ovfl_put()
186 u_int32_t sz; in __ovfl_delete() local
[all …]
/openbsd/regress/usr.bin/ssh/unittests/sshbuf/
H A Dtest_sshbuf_misc.c27 size_t sz; in sshbuf_misc_tests() local
38 sz = fread(tmp, 1, sizeof(tmp), out); in sshbuf_misc_tests()
41 ASSERT_SIZE_T_GT(sz, 0); in sshbuf_misc_tests()
42 tmp[sz] = '\0'; in sshbuf_misc_tests()
187 ASSERT_SIZE_T_EQ(sz, 0); in sshbuf_misc_tests()
190 ASSERT_SIZE_T_EQ(sz, 0); in sshbuf_misc_tests()
194 ASSERT_SIZE_T_EQ(sz, 10); in sshbuf_misc_tests()
196 ASSERT_SIZE_T_EQ(sz, 23); in sshbuf_misc_tests()
198 ASSERT_SIZE_T_EQ(sz, 28); in sshbuf_misc_tests()
200 ASSERT_SIZE_T_EQ(sz, 28); in sshbuf_misc_tests()
[all …]
/openbsd/lib/libc/stdlib/
H A Dmalloc.c84 #define MALLOC_MOVE_COND(sz) ((sz) - mopts.malloc_guard < \ argument
105 #define MMAPNONE(sz,f) mmap(NULL, (sz), PROT_NONE, \ argument
129 #define BIGCACHE_FILL(sz) (MAX_BIGCACHEABLE_SIZE * (sz) / 4) argument
330 (sz) = ((sz) == 0 ? (r)->size : B2SIZE((sz) - 1))
802 if (sz != PAGEROUND(sz) || psz == 0) in unmap()
893 if (sz != PAGEROUND(sz) || psz == 0) in map()
1606 size_t sz; in ofree() local
2043 size_t sz; in orecallocarray() local
2200 if (sz != PAGEROUND(sz)) in mapalign()
2234 if (sz > MALLOC_MAXCHUNK && sz < MALLOC_PAGESIZE) in omemalign()
[all …]
/openbsd/gnu/usr.bin/perl/lib/Tie/
H A DArray.pm38 my $sz = $obj->FETCHSIZE;
40 $off += $sz if ($off < 0);
41 my $len = (@_) ? shift : $sz - $off;
42 $len += $sz - $off if $len < 0;
47 $off = $sz if $off > $sz;
48 $len -= $off + $len - $sz if $off + $len > $sz;
53 $obj->EXTEND($sz+$d);
67 $obj->STORESIZE($sz-$d);
104 my $sz = $ob->FETCHSIZE;
106 $off += $sz if $off < 0;
[all …]
/openbsd/lib/libelf/
H A Dlibelf_ar_util.c52 e = s + sz; in _libelf_ar_get_number()
231 size_t sz; in _libelf_ar_open() local
279 if (sz == 0) in _libelf_ar_open()
298 sz = LIBELF_ADJUST_AR_SIZE(sz); in _libelf_ar_open()
299 s += sz; in _libelf_ar_open()
307 sz = LIBELF_ADJUST_AR_SIZE(sz); in _libelf_ar_open()
308 s += sz; in _libelf_ar_open()
327 sz = LIBELF_ADJUST_AR_SIZE(sz); in _libelf_ar_open()
328 s += sz; in _libelf_ar_open()
340 sz = LIBELF_ADJUST_AR_SIZE(sz); in _libelf_ar_open()
[all …]
/openbsd/sys/lib/libsa/
H A Dloadfile_elf.c79 size_t sz; in ELFNAME() local
86 phdr = ALLOC(sz); in ELFNAME()
90 FREE(phdr, sz); in ELFNAME()
93 if (read(fd, phdr, sz) != sz) { in ELFNAME()
95 FREE(phdr, sz); in ELFNAME()
180 FREE(phdr, sz); in ELFNAME()
197 if (read(fd, shp, sz) != sz) { in ELFNAME()
199 FREE(shp, sz); in ELFNAME()
211 FREE(shp, sz); in ELFNAME()
217 FREE(shp, sz); in ELFNAME()
[all …]
/openbsd/gnu/gcc/gcc/config/
H A Dhost-darwin.c34 darwin_gt_pch_get_address (size_t sz, int fd ATTRIBUTE_UNUSED) in darwin_gt_pch_get_address() argument
36 if (sz <= sizeof (pch_address_space)) in darwin_gt_pch_get_address()
46 darwin_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off) in darwin_gt_pch_use_address() argument
55 ret = (addr == pch_address_space && sz <= sizeof (pch_address_space)); in darwin_gt_pch_use_address()
57 sz = 0; in darwin_gt_pch_use_address()
60 sz = (sz + pagesize - 1) / pagesize * pagesize; in darwin_gt_pch_use_address()
62 if (munmap (pch_address_space + sz, sizeof (pch_address_space) - sz) != 0) in darwin_gt_pch_use_address()
67 mmap_result = mmap (addr, sz, in darwin_gt_pch_use_address()
/openbsd/sys/tmpfs/
H A Dtmpfs_mem.c122 tmpfs_mem_incr(struct tmpfs_mount *mp, size_t sz) in tmpfs_mem_incr() argument
128 if (mp->tm_bytes_used + sz >= lim) { in tmpfs_mem_incr()
132 mp->tm_bytes_used += sz; in tmpfs_mem_incr()
142 KASSERT(mp->tm_bytes_used >= sz); in tmpfs_mem_decr()
143 mp->tm_bytes_used -= sz; in tmpfs_mem_decr()
201 KASSERT(sz > 0 && sz <= 1024); in tmpfs_strname_alloc()
202 if (!tmpfs_mem_incr(mp, sz)) { in tmpfs_strname_alloc()
205 return malloc(sz, M_TEMP, M_WAITOK); /* XXX */ in tmpfs_strname_alloc()
213 KASSERT(sz > 0 && sz <= 1024); in tmpfs_strname_free()
214 tmpfs_mem_decr(mp, sz); in tmpfs_strname_free()
[all …]
/openbsd/sys/arch/arm/arm/
H A Dsys_machdep.c65 vsize_t sz, chunk; in arm32_sync_icache() local
72 sz = ua.len; in arm32_sync_icache()
76 if (va + sz <= vm_map_min(map) || va >= vm_map_max(map) || in arm32_sync_icache()
77 va + sz < va) in arm32_sync_icache()
81 sz -= vm_map_min(map) - va; in arm32_sync_icache()
83 } else if (va + sz >= vm_map_max(map)) { in arm32_sync_icache()
84 sz = vm_map_max(map) - va; in arm32_sync_icache()
88 while (sz > 0) { in arm32_sync_icache()
89 if (chunk > sz) in arm32_sync_icache()
90 chunk = sz; in arm32_sync_icache()
[all …]
/openbsd/usr.sbin/acme-client/
H A Dhttp.c159 sz -= ssz; in http_read()
171 xfer = sz; in http_write()
172 while (sz > 0) { in http_write()
175 sz -= ssz; in http_write()
406 if (sz == NULL) in http_body_read()
407 sz = &szp; in http_body_read()
417 *sz = 0; in http_body_read()
501 sz = &szp; in http_head_parse()
542 *sz = hsz; in http_head_parse()
593 sz = &szp; in http_head_read()
[all …]
/openbsd/usr.sbin/ocspcheck/
H A Dhttp.c158 sz -= ssz; in http_read()
170 xfer = sz; in http_write()
171 while (sz > 0) { in http_write()
174 sz -= ssz; in http_write()
398 if (sz == NULL) in http_body_read()
399 sz = &szp; in http_body_read()
409 *sz = 0; in http_body_read()
495 sz = &szp; in http_head_parse()
536 *sz = hsz; in http_head_parse()
587 sz = &szp; in http_head_read()
[all …]

12345678910>>...28