Home
last modified time | relevance | path

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

12345678910>>...35

/freebsd/tests/sys/kern/
H A Dsysctl_kern_proc.c35 size_t sz; in sysctl_kern_proc_all() local
37 sz = sizeof(pid_max); in sysctl_kern_proc_all()
38 ATF_REQUIRE(sysctlbyname("kern.pid_max", &pid_max, &sz, NULL, 0) == 0); in sysctl_kern_proc_all()
46 if (sysctl(mib, 4, NULL, &sz, NULL, 0) == 0) { in sysctl_kern_proc_all()
47 buf = malloc(sz); in sysctl_kern_proc_all()
49 (void)sysctl(mib, 4, buf, &sz, NULL, 0); in sysctl_kern_proc_all()
55 ATF_REQUIRE_ERRNO(ESRCH, sysctl(mib, 4, NULL, &sz, NULL, 0) != 0); in sysctl_kern_proc_all()
67 size_t sz; in ATF_TC_BODY() local
79 sz = 0; in ATF_TC_BODY()
80 ATF_REQUIRE(sysctl(mib, 4, NULL, &sz, NULL, 0) == 0); in ATF_TC_BODY()
[all …]
/freebsd/usr.bin/mkimg/
H A Dimage.c151 image_chunk_grow(struct chunk *ch, size_t sz) in image_chunk_grow() argument
155 newsz = ch->ch_size + sz; in image_chunk_grow()
162 assert(dsz < sz); in image_chunk_grow()
164 return (sz - dsz); in image_chunk_grow()
216 size_t sz; in image_chunk_skipto() local
229 sz = (to - from) * secsz; in image_chunk_skipto()
231 sz = image_chunk_grow(ch, sz); in image_chunk_skipto()
232 if (sz == 0) in image_chunk_skipto()
241 ch->ch_size = sz; in image_chunk_skipto()
249 image_chunk_append(lba_t blk, size_t sz, off_t ofs, int fd) in image_chunk_append() argument
[all …]
/freebsd/stand/efi/libefi/
H A Defichar.c87 size_t len, sz; in ucs2_to_utf8() local
92 sz = utf8_len_of_ucs2(nm) + 1; in ucs2_to_utf8()
97 cp = *name = EFICHAR_MALLOC(sz); in ucs2_to_utf8()
104 if (len++ < sz) in ucs2_to_utf8()
106 if (len++ < sz) in ucs2_to_utf8()
108 if (len++ < sz) in ucs2_to_utf8()
111 if (len++ < sz) in ucs2_to_utf8()
113 if (len++ < sz) in ucs2_to_utf8()
116 if (len++ < sz) in ucs2_to_utf8()
121 if (len >= sz) { in ucs2_to_utf8()
[all …]
/freebsd/contrib/openbsm/libbsm/
H A Dbsm_wrappers.c567 audit_get_qctrl(au_qctrl_t *qctrl, size_t sz) in audit_get_qctrl() argument
571 if (sizeof(*qctrl) != sz) { in audit_get_qctrl()
606 audit_set_qctrl(au_qctrl_t *qctrl, size_t sz) in audit_set_qctrl() argument
610 if (sizeof(*qctrl) != sz) { in audit_set_qctrl()
615 ret = auditon(A_SETQCTRL, qctrl, sz); in audit_set_qctrl()
652 audit_get_kaudit(auditinfo_addr_t *aia, size_t sz) in audit_get_kaudit() argument
655 if (sizeof(*aia) != sz) { in audit_get_kaudit()
660 return (auditon(A_GETKAUDIT, aia, sz)); in audit_get_kaudit()
664 audit_set_kaudit(auditinfo_addr_t *aia, size_t sz) in audit_set_kaudit() argument
667 if (sizeof(*aia) != sz) { in audit_set_kaudit()
[all …]
/freebsd/sys/dev/vnic/
H A Dthunder_bgx_fdt.c87 ssize_t sz; in bgx_fdt_phy_mode_match() local
93 sz = sizeof("sgmii"); in bgx_fdt_phy_mode_match()
94 offset = size - sz; in bgx_fdt_phy_mode_match()
98 sz = sizeof("xaui"); in bgx_fdt_phy_mode_match()
99 offset = size - sz; in bgx_fdt_phy_mode_match()
102 if (strncmp(&qlm_mode[offset], type, sz) == 0) in bgx_fdt_phy_mode_match()
105 sz = sizeof("dxaui"); in bgx_fdt_phy_mode_match()
106 offset = size - sz; in bgx_fdt_phy_mode_match()
110 sz = sizeof("raui"); in bgx_fdt_phy_mode_match()
111 offset = size - sz; in bgx_fdt_phy_mode_match()
[all …]
/freebsd/crypto/openssl/crypto/ffc/
H A Dffc_dh.c16 # define FFDHE(sz, keylength) { \ argument
17 SN_ffdhe##sz, NID_ffdhe##sz, \
18 sz, \
20 &ossl_bignum_ffdhe##sz##_p, &ossl_bignum_ffdhe##sz##_q, \
24 # define MODP(sz, keylength) { \ argument
25 SN_modp_##sz, NID_modp_##sz, \
26 sz, \
28 &ossl_bignum_modp_##sz##_p, &ossl_bignum_modp_##sz##_q, \
32 # define RFC5114(name, uid, sz, tag) { \ argument
34 sz, \
[all …]
/freebsd/tests/sys/vm/
H A Dpage_fault_signal.c71 int sz; in ATF_TC_BODY() local
73 sz = getpagesize(); in ATF_TC_BODY()
74 p = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0); in ATF_TC_BODY()
76 r = munmap(p, sz); in ATF_TC_BODY()
90 int sz; in ATF_TC_BODY() local
92 sz = getpagesize(); in ATF_TC_BODY()
93 p = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0); in ATF_TC_BODY()
99 (void)munmap(p, sz); in ATF_TC_BODY()
108 int sz; in ATF_TC_BODY() local
110 sz = getpagesize(); in ATF_TC_BODY()
[all …]
/freebsd/contrib/libder/tests/
H A Dfuzz_stream.c31 size_t sz = sdata->datasz; in supply_thread() local
35 writesz = write(sdata->socket, sdata->data, sz); in supply_thread()
38 sz -= writesz; in supply_thread()
39 } while (sz != 0 && writesz > 0); in supply_thread()
41 sdata->datasz = sz; in supply_thread()
49 fuzz_fd(const struct fuzz_params *fparams, const uint8_t *data, size_t sz) in fuzz_fd() argument
65 sdata.datasz = sz; in fuzz_fd()
87 while (totalsz < sz) { in fuzz_fd()
103 assert(totalsz == sz); in fuzz_fd()
111 fuzz_file(const struct fuzz_params *fparams, const uint8_t *data, size_t sz) in fuzz_file() argument
[all …]
/freebsd/contrib/mandoc/
H A Dpreconv.c115 size_t sz, phsz; in preconv_cue() local
118 sz = b->sz - offset; in preconv_cue()
122 if (NULL == (eoln = memchr(ln, '\n', sz))) in preconv_cue()
123 eoln = ln + sz; in preconv_cue()
127 if ((sz = (size_t)(eoln - ln)) < 10 || in preconv_cue()
134 sz -= 10; in preconv_cue()
136 while (sz > 0) { in preconv_cue()
137 while (sz > 0 && ' ' == *ln) { in preconv_cue()
139 sz--; in preconv_cue()
141 if (0 == sz) in preconv_cue()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_mman.cpp192 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align, in user_alloc_internal() argument
194 if (sz >= kMaxAllowedMallocSize || align >= kMaxAllowedMallocSize || in user_alloc_internal()
195 sz > max_user_defined_malloc_size) { in user_alloc_internal()
201 ReportAllocationSizeTooBig(sz, malloc_limit, &stack); in user_alloc_internal()
209 void *p = allocator()->Allocate(&thr->proc()->alloc_cache, sz, align); in user_alloc_internal()
215 ReportOutOfMemory(sz, &stack); in user_alloc_internal()
218 OnUserAlloc(thr, pc, (uptr)p, sz, true); in user_alloc_internal()
233 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { in user_alloc() argument
234 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, kDefaultAlignment)); in user_alloc()
260 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) { in OnUserAlloc() argument
[all …]
H A Dtsan_sync.cpp47 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { in AllocBlock() argument
50 b->siz = sz; in AllocBlock()
63 uptr sz = RoundUpTo(b->siz, kMetaShadowCell); in FreeBlock() local
64 FreeRange(proc, p, sz, reset); in FreeBlock()
65 return sz; in FreeBlock()
68 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz, bool reset) { in FreeRange() argument
71 u32 *end = MemToMeta(p + sz); in FreeRange()
108 void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz, bool reset) { in ResetRange() argument
112 FreeRange(proc, p, sz, reset); in ResetRange()
117 if (sz <= 4 * kPageSize) { in ResetRange()
[all …]
/freebsd/lib/libc/db/btree/
H A Dbt_overflow.c79 u_int32_t sz; in __ovfl_get() local
82 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t)); in __ovfl_get()
83 *ssz = sz; in __ovfl_get()
86 if (pg == P_INVALID || sz == 0) in __ovfl_get()
90 if (*bufsz < sz) { in __ovfl_get()
91 *buf = reallocf(*buf, sz); in __ovfl_get()
94 *bufsz = sz; in __ovfl_get()
106 nb = MIN(sz, plen); in __ovfl_get()
110 if ((sz -= nb) == 0) in __ovfl_get()
134 u_int32_t sz; in __ovfl_put() local
[all …]
/freebsd/lib/libc/iconv/
H A Dcitrus_memstream.h70 void *ptr, size_t sz) in _citrus_memory_stream_bind_ptr() argument
74 _citrus_region_init(&r, ptr, sz); in _citrus_memory_stream_bind_ptr()
95 size_t sz; in _citrus_memory_stream_remainder() local
97 sz = _citrus_region_size(&ms->ms_region); in _citrus_memory_stream_remainder()
98 if (ms->ms_pos>sz) in _citrus_memory_stream_remainder()
100 return (sz-ms->ms_pos); in _citrus_memory_stream_remainder()
106 size_t sz; in _citrus_memory_stream_seek() local
108 sz = _citrus_region_size(&ms->ms_region); in _citrus_memory_stream_seek()
112 if (pos >= sz) in _citrus_memory_stream_seek()
118 if (pos >= sz) in _citrus_memory_stream_seek()
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dmm-internal.h47 void *event_mm_malloc_(size_t sz);
72 void *event_mm_realloc_(void *p, size_t sz);
75 #define mm_malloc(sz) event_mm_malloc_(sz) argument
78 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) argument
81 #define mm_malloc(sz) malloc(sz)
82 #define mm_calloc(n, sz) calloc((n), (sz))
84 #define mm_realloc(p, sz) realloc((p), (sz))
/freebsd/contrib/libevent/
H A Dmm-internal.h47 void *event_mm_malloc_(size_t sz);
72 void *event_mm_realloc_(void *p, size_t sz);
75 #define mm_malloc(sz) event_mm_malloc_(sz) argument
78 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) argument
81 #define mm_malloc(sz) malloc(sz)
82 #define mm_calloc(n, sz) calloc((n), (sz))
84 #define mm_realloc(p, sz) realloc((p), (sz))
/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_misc.c31 size_t sz; in sshbuf_misc_tests() local
42 sz = fread(tmp, 1, sizeof(tmp), out); in sshbuf_misc_tests()
45 ASSERT_SIZE_T_GT(sz, 0); in sshbuf_misc_tests()
46 tmp[sz] = '\0'; in sshbuf_misc_tests()
190 ASSERT_INT_EQ(sshbuf_find(p1, 0, "i", 1, &sz), 0); in sshbuf_misc_tests()
191 ASSERT_SIZE_T_EQ(sz, 0); in sshbuf_misc_tests()
192 ASSERT_INT_EQ(sshbuf_find(p1, 0, "j", 1, &sz), SSH_ERR_INVALID_FORMAT); in sshbuf_misc_tests()
193 ASSERT_INT_EQ(sshbuf_find(p1, 0, "imploring", 9, &sz), 0); in sshbuf_misc_tests()
194 ASSERT_SIZE_T_EQ(sz, 0); in sshbuf_misc_tests()
195 ASSERT_INT_EQ(sshbuf_find(p1, 0, "implored", 9, &sz), in sshbuf_misc_tests()
[all …]
/freebsd/sys/contrib/openzfs/module/unicode/
H A Du8_textprep.c344 int sz; in u8_validate() local
371 sz = u8_number_of_bytes[*ib]; in u8_validate()
372 if (sz == U8_ILLEGAL_CHAR) { in u8_validate()
377 if (sz == U8_OUT_OF_RANGE_CHAR || in u8_validate()
378 (validate_ucs2_range_only && sz > U8_MAX_BYTES_UCS2)) { in u8_validate()
388 if ((ibtail - ib) < sz) { in u8_validate()
393 if (sz == 1) { in u8_validate()
405 for (i = 1; i < sz; i++) { in u8_validate()
424 s1 = ib - sz; in u8_validate()
461 do_case_conv(int uv, uchar_t *u8s, uchar_t *s, int sz, boolean_t is_it_toupper) in do_case_conv() argument
[all …]
/freebsd/contrib/elftoolchain/libelf/
H A Dlibelf_ar_util.c42 _libelf_ar_get_number(const char *src, size_t sz, unsigned int base, in _libelf_ar_get_number() argument
52 e = s + sz; in _libelf_ar_get_number()
231 size_t sz; in _libelf_ar_open() local
273 READ_AR_HEADER(s, arh, sz, end); in _libelf_ar_open()
279 if (sz == 0) in _libelf_ar_open()
296 e->e_u.e_ar.e_rawsymtabsz = sz; in _libelf_ar_open()
298 sz = LIBELF_ADJUST_AR_SIZE(sz); in _libelf_ar_open()
299 s += sz; in _libelf_ar_open()
305 e->e_u.e_ar.e_rawstrtabsz = sz; in _libelf_ar_open()
307 sz = LIBELF_ADJUST_AR_SIZE(sz); in _libelf_ar_open()
[all …]
/freebsd/contrib/elftoolchain/libdwarf/
H A Ddwarf_sections.c47 Dwarf_Unsigned sz; in dwarf_get_section_max_offsets_b() local
68 sz = dbg->dbg_section[i].ds_size; in dwarf_get_section_max_offsets_b()
70 SET(debug_info, sz); in dwarf_get_section_max_offsets_b()
72 SET(debug_abbrev, sz); in dwarf_get_section_max_offsets_b()
74 SET(debug_line, sz); in dwarf_get_section_max_offsets_b()
76 SET(debug_loc, sz); in dwarf_get_section_max_offsets_b()
78 SET(debug_aranges, sz); in dwarf_get_section_max_offsets_b()
80 SET(debug_macinfo, sz); in dwarf_get_section_max_offsets_b()
82 SET(debug_pubnames, sz); in dwarf_get_section_max_offsets_b()
84 SET(debug_str, sz); in dwarf_get_section_max_offsets_b()
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_util.c157 size_t sz; in linux_driver_get_name_dev()
162 sz = sizeof("pts/") - 1; in linux_driver_get_major_minor()
163 if (strncmp(node, "pts/", sz) == 0 && node[sz] != '\0') { in linux_driver_get_major_minor()
169 devno = strtoul(node + sz, NULL, 10); in linux_driver_get_major_minor()
175 sz = sizeof("dri/card") - 1; in linux_driver_get_major_minor()
176 if (strncmp(node, "dri/card", sz) == 0 && node[sz] != '\0') { in linux_driver_get_major_minor()
177 devno = strtoul(node + sz, NULL, 10); in linux_driver_get_major_minor()
182 sz in linux_driver_get_major_minor()
165 size_t sz; linux_driver_get_major_minor() local
[all...]
/freebsd/contrib/elftoolchain/elfcopy/
H A Dascii.c41 static void append_data(struct section *s, const void *buf, size_t sz);
47 uint64_t *num, uint8_t *data, size_t *sz);
49 const void *buf, size_t sz);
50 static void ihex_write_00(int ofd, uint64_t addr, const void *buf, size_t sz);
56 static int read_num(const char *line, int *len, uint64_t *num, size_t sz,
59 uint8_t *data, size_t *sz);
61 size_t sz);
66 size_t sz, size_t rlen);
68 static void write_num(char *line, int *len, uint64_t num, size_t sz,
207 size_t sz; in create_elf_from_srec() local
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/
H A Dtst.usdt.d.out1 [0] sz 445.890000 odd false even true
2 [1] sz 793.684200 odd true even false
3 [2] sz 1412.757876 odd false even true
4 [3] sz 2514.709019 odd true even false
5 [4] sz 4476.182054 odd false even true
6 [5] sz 7967.604057 odd true even false
7 [6] sz 14182.335221 odd false even true
8 [8] sz 44935.310914 odd false even true
9 [9] sz 79984.853427 odd true even false
/freebsd/crypto/openssl/crypto/sha/asm/
H A Dsha512p8-ppc.pl75 $sz="d";
80 $sz="w";
120 vshasigma${sz} $Sigma,@X[($j+1)%16],0,0
121 vaddu${sz}m @X[$j],@X[$j],$Sigma
122 vshasigma${sz} $Sigma,@X[($j+14)%16],0,15
123 vaddu${sz}m @X[$j],@X[$j],$Sigma
124 vaddu${sz}m @X[$j],@X[$j],@X[($j+9)%16]
127 vaddu${sz}m $h,$h,@X[$i%16] ; h+=X[i]
129 vaddu${sz}m $g,$g,$Ki ; future h+=K[i]
130 vaddu${sz}m $h,$h,$Func ; h+=Ch(e,f,g)
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dvmem.h90 #define vmem_alloc(sz, fl) spl_vmem_alloc((sz), (fl), __func__, __LINE__) argument
91 #define vmem_zalloc(sz, fl) spl_vmem_zalloc((sz), (fl), __func__, __LINE__) argument
92 #define vmem_free(ptr, sz) spl_vmem_free((ptr), (sz)) argument
94 extern void *spl_vmem_alloc(size_t sz, int fl, const char *func, int line)
96 extern void *spl_vmem_zalloc(size_t sz, int fl, const char *func, int line)
98 extern void spl_vmem_free(const void *ptr, size_t sz);
/freebsd/sys/dev/virtio/mmio/
H A Dvirtio_mmio_cmdline.c46 unsigned long sz; in parsearg() local
52 sz = strtoul(arg, &p, 0); in parsearg()
53 if ((sz == 0) || (sz == ULONG_MAX)) in parsearg()
57 sz <<= 10; in parsearg()
60 sz <<= 10; in parsearg()
63 sz <<= 10; in parsearg()
66 sz <<= 10; in parsearg()
69 sz <<= 10; in parsearg()
72 sz <<= 10; in parsearg()
108 bus_set_resource(child, SYS_RES_MEMORY, 0, baseaddr, sz); in parsearg()

12345678910>>...35