Searched refs:sz (Results 26 - 50 of 662) sorted by relevance

1234567891011>>

/freebsd-13-stable/stand/userboot/userboot/
H A Dcopy.c54 size_t sz; local
59 sz = len;
60 if (sz > sizeof(buf))
61 sz = sizeof(buf);
62 s = VECTX_READ(fd, buf, sz);
/freebsd-13-stable/lib/libc/iconv/
H A Dcitrus_memstream.h71 void *ptr, size_t sz)
75 _citrus_region_init(&r, ptr, sz);
96 size_t sz; local
98 sz = _citrus_region_size(&ms->ms_region);
99 if (ms->ms_pos>sz)
101 return (sz-ms->ms_pos);
107 size_t sz; local
109 sz = _citrus_region_size(&ms->ms_region);
113 if (pos >= sz)
119 if (pos >= sz)
70 _citrus_memory_stream_bind_ptr(struct _citrus_memory_stream * __restrict ms, void *ptr, size_t sz) argument
159 _citrus_memory_stream_getregion(struct _citrus_memory_stream *ms, struct _citrus_region *r, size_t sz) argument
219 size_t sz; local
[all...]
H A Dcitrus_region.h44 _citrus_region_init(struct _citrus_region *r, void *h, size_t sz) argument
48 r->r_size = sz;
66 _citrus_region_check(const struct _citrus_region *r, size_t ofs, size_t sz) argument
69 return (r->r_size >= ofs + sz ? 0 : -1);
106 const struct _citrus_region *r, size_t ofs, size_t sz)
109 if (_citrus_region_check(r, ofs, sz))
111 _citrus_region_init(subr, _citrus_region_offset(r, ofs), sz);
105 _citrus_region_get_subregion(struct _citrus_region *subr, const struct _citrus_region *r, size_t ofs, size_t sz) argument
/freebsd-13-stable/stand/efi/libefi/
H A Defichar.c83 size_t len, sz; local
88 sz = utf8_len_of_ucs2(nm) + 1;
93 cp = *name = malloc(sz);
100 if (len++ < sz)
102 if (len++ < sz)
104 if (len++ < sz)
107 if (len++ < sz)
109 if (len++ < sz)
112 if (len++ < sz)
117 if (len >= sz) {
134 size_t sz; local
[all...]
/freebsd-13-stable/usr.bin/truncate/
H A Dtruncate.c52 off_t oflow, rsize, sz, tsize, round; local
63 rsize = tsize = sz = 0;
88 sz = (*optarg == '-' || *optarg == '/') ?
112 rsize = sz;
114 tsize = sz;
153 sz = rsize;
154 if (sz < 0)
155 sz = -sz;
156 if (sb.st_size % sz) {
[all...]
/freebsd-13-stable/lib/libc/db/btree/
H A Dbt_overflow.c85 u_int32_t sz; local
88 memmove(&sz, (char *)p + sizeof(pgno_t), sizeof(u_int32_t));
89 *ssz = sz;
92 if (pg == P_INVALID || sz == 0)
96 if (*bufsz < sz) {
97 *buf = reallocf(*buf, sz);
100 *bufsz = sz;
112 nb = MIN(sz, plen);
116 if ((sz -= nb) == 0)
140 u_int32_t sz; local
190 u_int32_t sz; local
[all...]
/freebsd-13-stable/contrib/mandoc/
H A Dmandoc.c42 mandoc_font(const char *cp, int sz) argument
44 switch (sz) {
95 mandoc_escape(const char **end, const char **start, int *sz) argument
109 if (NULL == sz)
110 sz = &local_sz;
128 *sz = 0;
139 *sz = 2;
212 *sz = 2;
237 *sz = 1;
246 *sz
581 mandoc_eos(const char *p, size_t sz) argument
624 mandoc_strntoi(const char *p, size_t sz, int base) argument
[all...]
/freebsd-13-stable/usr.bin/systat/
H A Dfetch.c106 size_t sz; local
118 if (sysctl(mib, mibsz, NULL, &sz, NULL, 0) == -1)
120 sz += sz * mrg / 100;
121 if ((rv = (char *)malloc(sz)) == NULL) {
125 if (sysctl(mib, mibsz, rv, &sz, NULL, 0) == -1) {
135 *szp = sz;
/freebsd-13-stable/sys/contrib/openzfs/module/zfs/
H A Dpathname.c72 pn_alloc_sz(struct pathname *pnp, size_t sz) argument
74 pnp->pn_buf = kmem_alloc(sz, KM_SLEEP);
75 pnp->pn_bufsize = sz;
/freebsd-13-stable/sys/dev/vnic/
H A Dthunder_bgx_fdt.c91 ssize_t sz; local
97 sz = sizeof("sgmii");
98 offset = size - sz;
102 sz = sizeof("xaui");
103 offset = size - sz;
106 if (strncmp(&qlm_mode[offset], type, sz) == 0)
109 sz = sizeof("dxaui");
110 offset = size - sz;
114 sz = sizeof("raui");
115 offset = size - sz;
154 ssize_t sz; local
[all...]
/freebsd-13-stable/sys/tools/fdt/
H A Dembed_dtb.sh40 sz=$((eol - obs));
41 if [ $sz -lt $dtbsize ]
/freebsd-13-stable/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fuzz.c33 size_t sz, sz2, i; local
50 sz = sshbuf_avail(p1);
55 ASSERT_SIZE_T_LT(sz, r);
56 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), sz); local
60 ASSERT_SIZE_T_GE(sz, r);
61 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), sz - r);
73 sz = sshbuf_avail(p1);
80 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), sz); local
84 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), sz + r);
94 sz
96 ASSERT_SIZE_T_EQ(sshbuf_max_size(p1), sz); local
[all...]
/freebsd-13-stable/contrib/sendmail/libsm/
H A Dt-memstat.c45 int r, r2, i, l, slp, sz; local
50 sz = slp = 0;
61 sz = strtol(optarg, NULL, 0);
97 if (sz > 0)
106 mem = malloc(sz);
108 printf("malloc(%d) failed\n", sz);
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_mman.cpp161 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align, argument
163 if (sz >= kMaxAllowedMallocSize || align >= kMaxAllowedMallocSize ||
164 sz > max_user_defined_malloc_size) {
170 ReportAllocationSizeTooBig(sz, malloc_limit, &stack);
172 void *p = allocator()->Allocate(&thr->proc()->alloc_cache, sz, align);
178 ReportOutOfMemory(sz, &stack);
181 OnUserAlloc(thr, pc, (uptr)p, sz, true);
196 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { argument
197 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, kDefaultAlignment));
223 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, boo argument
234 uptr sz = ctx->metamap.FreeBlock(thr->proc(), p); local
240 user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz) argument
258 user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz) argument
269 user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align, uptr sz) argument
286 user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz) argument
297 user_valloc(ThreadState *thr, uptr pc, uptr sz) argument
301 user_pvalloc(ThreadState *thr, uptr pc, uptr sz) argument
342 internal_alloc(MBlockType typ, uptr sz) argument
[all...]
H A Dtsan_sync.cpp61 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { argument
64 b->siz = sz;
77 uptr sz = RoundUpTo(b->siz, kMetaShadowCell);
78 FreeRange(proc, p, sz);
79 return sz;
82 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz) { argument
85 u32 *end = MemToMeta(p + sz);
121 void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz) { argument
125 FreeRange(proc, p, sz);
130 if (sz <
258 MoveMemory(uptr src, uptr dst, uptr sz) argument
[all...]
/freebsd-13-stable/usr.bin/mkimg/
H A Dimage.c153 image_chunk_grow(struct chunk *ch, size_t sz) argument
157 newsz = ch->ch_size + sz;
164 assert(dsz < sz);
166 return (sz - dsz);
218 size_t sz; local
231 sz = (to - from) * secsz;
233 sz = image_chunk_grow(ch, sz);
234 if (sz == 0)
243 ch->ch_size = sz;
251 image_chunk_append(lba_t blk, size_t sz, off_t ofs, int fd) argument
282 image_chunk_copyin(lba_t blk, void *buf, size_t sz, off_t ofs, int fd) argument
307 image_file_map(int fd, off_t ofs, size_t sz, off_t *iofp) argument
333 image_file_unmap(void *buffer, size_t sz) argument
405 size_t iosz, sz; local
549 size_t sz; local
580 size_t iosz, sz; local
606 size_t ofs, sz; local
[all...]
/freebsd-13-stable/crypto/heimdal/lib/roken/
H A Dparse_time-test.c58 size_t sz; local
65 sz = unparse_time(tests[i].val, NULL, 0);
66 if (sz != tests[i].size)
67 errx(1, "sz (%lu) != tests[%d].size (%lu)",
68 (unsigned long)sz, i, (unsigned long)tests[i].size);
74 sz = unparse_time(tests[i].val, buf, buf_sz);
75 if (sz != tests[i].size)
76 errx(1, "sz (%lu) != tests[%d].size (%lu) with in size %lu",
77 (unsigned long)sz, i,
88 sz
[all...]
/freebsd-13-stable/contrib/openbsm/libbsm/
H A Dbsm_wrappers.c567 audit_get_qctrl(au_qctrl_t *qctrl, size_t sz) argument
571 if (sizeof(*qctrl) != sz) {
606 audit_set_qctrl(au_qctrl_t *qctrl, size_t sz) argument
610 if (sizeof(*qctrl) != sz) {
615 ret = auditon(A_SETQCTRL, qctrl, sz);
652 audit_get_kaudit(auditinfo_addr_t *aia, size_t sz) argument
655 if (sizeof(*aia) != sz) {
660 return (auditon(A_GETKAUDIT, aia, sz));
664 audit_set_kaudit(auditinfo_addr_t *aia, size_t sz) argument
667 if (sizeof(*aia) != sz) {
676 audit_get_class(au_evclass_map_t *evc_map, size_t sz) argument
688 audit_set_class(au_evclass_map_t *evc_map, size_t sz) argument
700 audit_get_event(au_evname_map_t *evn_map, size_t sz) argument
712 audit_set_event(au_evname_map_t *evn_map, size_t sz) argument
724 audit_get_kmask(au_mask_t *kmask, size_t sz) argument
735 audit_set_kmask(au_mask_t *kmask, size_t sz) argument
746 audit_get_fsize(au_fstat_t *fstat, size_t sz) argument
758 audit_set_fsize(au_fstat_t *fstat, size_t sz) argument
770 audit_set_pmask(auditpinfo_t *api, size_t sz) argument
782 audit_get_pinfo(auditpinfo_t *api, size_t sz) argument
794 audit_get_pinfo_addr(auditpinfo_addr_t *apia, size_t sz) argument
806 audit_get_sinfo_addr(auditinfo_addr_t *aia, size_t sz) argument
818 audit_get_stat(au_stat_t *stats, size_t sz) argument
830 audit_set_stat(au_stat_t *stats, size_t sz) argument
842 audit_get_cwd(char *path, size_t sz) argument
849 audit_get_car(char *path, size_t sz) argument
[all...]
/freebsd-13-stable/contrib/elftoolchain/libelf/
H A Dlibelf_ar_util.c38 * Convert a string bounded by `start' and `start+sz' (exclusive) to a
42 _libelf_ar_get_number(const char *src, size_t sz, unsigned int base, argument
52 e = s + sz;
231 size_t sz; local
273 READ_AR_HEADER(s, arh, sz, end);
279 if (sz == 0)
296 e->e_u.e_ar.e_rawsymtabsz = sz;
298 sz = LIBELF_ADJUST_AR_SIZE(sz);
299 s += sz;
[all...]
H A Dlibelf_memory.c42 _libelf_memory(unsigned char *image, size_t sz, int reporterror) argument
50 assert(sz > 0);
57 e->e_rawsize = (off_t) sz;
64 if (sz > EI_NIDENT && LIBELF_IS_ELF(image)) {
91 } else if (sz >= SARMAG &&
/freebsd-13-stable/usr.sbin/mfiutil/
H A Dmfi_bbu.c45 mfi_autolearn_period(uint32_t period, char *buf, size_t sz) argument
55 tmp += snprintf(buf, sz, "%u day%s", d, d == 1 ? "" : "s");
56 sz -= tmp - buf;
58 tmp += snprintf(tmp, sz, ", ");
59 sz -= 2;
63 snprintf(tmp, sz, "%u hour%s", h, h == 1 ? "" : "s");
66 snprintf(tmp, sz, "less than 1 hour");
71 mfi_next_learn_time(uint32_t next_learn_time, char *buf, size_t sz) argument
81 len = snprintf(buf, sz, "%s", ctime(&basetime));
88 mfi_autolearn_mode(uint8_t mode, char *buf, size_t sz) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/lib/libuutil/
H A Duu_alloc.c59 size_t sz; local
61 sz = strlen(str) + 1;
62 buf = uu_zalloc(sz);
64 (void) memcpy(buf, str, sz);
96 uu_memdup(const void *buf, size_t sz) argument
100 p = uu_zalloc(sz);
103 (void) memcpy(p, buf, sz);
/freebsd-13-stable/sys/compat/linux/
H A Dlinux_util.c161 size_t sz; local
166 sz = sizeof("pts/") - 1;
167 if (strncmp(node, "pts/", sz) == 0 && node[sz] != '\0') {
173 devno = strtoul(node + sz, NULL, 10);
179 sz = sizeof("dri/card") - 1;
180 if (strncmp(node, "dri/card", sz) == 0 && node[sz] != '\0') {
181 devno = strtoul(node + sz, NULL, 10);
186 sz
[all...]
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/ubsan_minimal/
H A Dubsan_minimal_handlers.cpp27 unsigned sz = __sanitizer::atomic_load_relaxed(&caller_pcs_sz); local
28 if (sz > kMaxCallerPcs) return false; // early exit
29 // when sz==kMaxCallerPcs print "too many errors", but only when cmpxchg
31 if (sz > 0 && sz < kMaxCallerPcs) {
33 for (unsigned i = 0; i < sz; ++i) {
42 &caller_pcs_sz, &sz, sz + 1, __sanitizer::memory_order_seq_cst))
45 if (sz == kMaxCallerPcs) {
49 __sanitizer::atomic_store_relaxed(&caller_pcs[sz], calle
[all...]
/freebsd-13-stable/crypto/heimdal/appl/rsh/
H A Dcommon.c74 do_read (int fd, void *buf, size_t sz, void *ivec) argument
89 if (len > sz)
127 return read (fd, buf, sz);
131 do_write (int fd, void *buf, size_t sz, void *ivec) argument
141 _krb5_put_int(len, sz, 4);
143 unsigned char *tmp = malloc(sz + 4);
146 _krb5_put_int(tmp, sz, 4);
147 memcpy(tmp + 4, buf, sz);
149 tmp, sz + 4, &data, ivec);
153 buf, sz,
[all...]

Completed in 346 milliseconds

1234567891011>>