Home
last modified time | relevance | path

Searched refs:maxsize (Results 1 – 25 of 126) sorted by relevance

123456

/freebsd/crypto/heimdal/lib/roken/
H A Dstrftime.c170 strftime (char *buf, size_t maxsize, const char *format, in strftime() argument
176 while (*format != '\0' && n < maxsize) { in strftime()
183 ret = snprintf (buf, maxsize - n, in strftime()
187 ret = snprintf (buf, maxsize - n, in strftime()
192 ret = snprintf (buf, maxsize - n, in strftime()
196 ret = snprintf (buf, maxsize - n, in strftime()
200 ret = snprintf (buf, maxsize - n, in strftime()
210 ret = snprintf (buf, maxsize - n, in strftime()
214 ret = snprintf (buf, maxsize - n, in strftime()
218 ret = snprintf (buf, maxsize - n, in strftime()
[all …]
/freebsd/lib/libdpv/
H A Ddialog_util.c66 static struct winsize *maxsize = NULL; variable
88 if (maxsize == NULL) { in tty_maxsize_update()
89 if ((maxsize = malloc(sizeof(struct winsize))) == NULL) in tty_maxsize_update()
91 memset((void *)maxsize, '\0', sizeof(struct winsize)); in tty_maxsize_update()
96 if ((tcgetattr(fd, &t) < 0) || (ioctl(fd, TIOCGWINSZ, maxsize) < 0)) { in tty_maxsize_update()
97 maxsize->ws_row = TTY_DEFAULT_ROWS; in tty_maxsize_update()
98 maxsize->ws_col = TTY_DEFAULT_COLS; in tty_maxsize_update()
124 if (maxsize == NULL) { in x11_maxsize_update()
125 if ((maxsize = malloc(sizeof(struct winsize))) == NULL) in x11_maxsize_update()
127 memset((void *)maxsize, '\0', sizeof(struct winsize)); in x11_maxsize_update()
[all …]
/freebsd/usr.bin/xargs/
H A Dstrnsubst.c33 strnsubst(char **str, const char *match, const char *replstr, size_t maxsize) in strnsubst() argument
49 if (maxsize == 0) { in strnsubst()
51 maxsize = strlen(s1) + 1; in strnsubst()
53 s2 = calloc(1, maxsize); in strnsubst()
60 if (match == NULL || replstr == NULL || maxsize == strlen(s1)) { in strnsubst()
61 strlcpy(s2, s1, maxsize); in strnsubst()
70 strlen(match) + 1) > maxsize) { in strnsubst()
71 strlcat(s2, s1, maxsize); in strnsubst()
/freebsd/lib/libc/locale/
H A Dwcsftime.c55 wcsftime_l(wchar_t * __restrict wcs, size_t maxsize, in wcsftime_l() argument
90 if (SIZE_T_MAX / MB_CUR_MAX <= maxsize) { in wcsftime_l()
95 if ((dst = malloc(maxsize * MB_CUR_MAX)) == NULL) in wcsftime_l()
97 if (strftime_l(dst, maxsize, sformat, timeptr, locale) == 0) in wcsftime_l()
101 n = mbsrtowcs_l(wcs, &dstp, maxsize, &mbs, locale); in wcsftime_l()
117 wcsftime(wchar_t * __restrict wcs, size_t maxsize, in wcsftime() argument
120 return wcsftime_l(wcs, maxsize, format, timeptr, __get_locale()); in wcsftime()
/freebsd/sys/riscv/riscv/
H A Dbusdma_machdep.c54 bus_addr_t highaddr, bus_size_t maxsize, int nsegments, in common_bus_dma_tag_create() argument
83 common->maxsize = maxsize; in common_bus_dma_tag_create()
117 bus_dma_filter_t *filter, void *filterarg, bus_size_t maxsize, in bus_dma_tag_create() argument
130 boundary, lowaddr, highaddr, maxsize, nsegments, maxsegsz, in bus_dma_tag_create()
135 boundary, lowaddr, highaddr, maxsize, nsegments, maxsegsz, in bus_dma_tag_create()
155 t->maxsize = common->maxsize; in bus_dma_template_clone()
/freebsd/sys/x86/x86/
H A Dbusdma_machdep.c59 bus_addr_t highaddr, bus_size_t maxsize, int nsegments, bus_size_t maxsegsz, in common_bus_dma_tag_create() argument
88 common->maxsize = maxsize; in common_bus_dma_tag_create()
140 bus_dma_filter_t *filter, void *filterarg, bus_size_t maxsize, in bus_dma_tag_create() argument
153 boundary, lowaddr, highaddr, maxsize, nsegments, maxsegsz, in bus_dma_tag_create()
158 boundary, lowaddr, highaddr, maxsize, nsegments, maxsegsz, in bus_dma_tag_create()
178 t->maxsize = common->maxsize; in bus_dma_template_clone()
/freebsd/crypto/openssl/crypto/asn1/
H A Da_strnid.c96 tbl->minsize, tbl->maxsize); in ASN1_STRING_set_by_NID()
175 rv->maxsize = tmp->maxsize; in stable_get()
181 rv->maxsize = -1; in stable_get()
188 long minsize, long maxsize, unsigned long mask, in ASN1_STRING_TABLE_add() argument
200 if (maxsize >= 0) in ASN1_STRING_TABLE_add()
201 tmp->maxsize = maxsize; in ASN1_STRING_TABLE_add()
/freebsd/crypto/openssl/crypto/
H A Dpacket.c49 if (pkt->maxsize - pkt->written < len) in WPACKET_reserve_bytes()
139 pkt->maxsize = (max < len) ? max : len; in WPACKET_init_static_len()
153 pkt->maxsize = len; in WPACKET_init_der()
167 pkt->maxsize = maxmaxsize(lenbytes); in WPACKET_init_len()
182 pkt->maxsize = maxmaxsize(lenbytes); in WPACKET_init_null()
192 pkt->maxsize = SIZE_MAX; in WPACKET_init_null_der()
395 int WPACKET_set_max_size(WPACKET *pkt, size_t maxsize) in WPACKET_set_max_size() argument
410 lenbytes = sizeof(pkt->maxsize); in WPACKET_set_max_size()
412 if (maxmaxsize(lenbytes) < maxsize || maxsize < pkt->written) in WPACKET_set_max_size()
415 pkt->maxsize = maxsize; in WPACKET_set_max_size()
[all …]
H A Dpunycode.c257 size_t size = 0, maxsize; in ossl_a2ulabel() local
264 maxsize = 0; in ossl_a2ulabel()
266 maxsize = *outlen; in ossl_a2ulabel()
271 if (size++ < maxsize) \ in ossl_a2ulabel()
/freebsd/sys/arm64/arm64/
H A Dbusdma_machdep.c55 bus_addr_t highaddr, bus_size_t maxsize, int nsegments, in common_bus_dma_tag_create() argument
84 common->maxsize = maxsize; in common_bus_dma_tag_create()
123 bus_dma_filter_t *filter, void *filterarg, bus_size_t maxsize, in bus_dma_tag_create() argument
136 boundary, lowaddr, highaddr, maxsize, nsegments, maxsegsz, in bus_dma_tag_create()
141 boundary, lowaddr, highaddr, maxsize, nsegments, maxsegsz, in bus_dma_tag_create()
161 t->maxsize = common->maxsize; in bus_dma_template_clone()
/freebsd/contrib/ntp/ntpq/
H A Dlibntpq.c418 int maxsize in ntpq_read_assoc_peervars() argument
439 if (dsize > maxsize) in ntpq_read_assoc_peervars()
440 dsize = maxsize; in ntpq_read_assoc_peervars()
475 size_t maxsize in ntpq_read_sysvars() argument
496 dsize = min(dsize, maxsize); in ntpq_read_sysvars()
660 int maxsize in ntpq_read_assoc_clockvars() argument
677 if (dsize > maxsize) in ntpq_read_assoc_clockvars()
678 dsize = maxsize; in ntpq_read_assoc_clockvars()
H A Dlibntpq.h93 extern size_t ntpq_read_sysvars(char *resultbuf, size_t maxsize);
102 extern int ntpq_read_assoc_peervars( associd_t associd, char *resultbuf, int maxsize );
103 extern int ntpq_read_assoc_clockvars( associd_t associd, char *resultbuf, int maxsize );
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-xdr.c368 xdr_enc_array(XDR *xdrs, caddr_t *arrp, uint_t *sizep, const uint_t maxsize, in xdr_enc_array()
374 if (*sizep > maxsize || *sizep > UINT_MAX / elsize) in xdr_enc_array()
390 xdr_dec_array(XDR *xdrs, caddr_t *arrp, uint_t *sizep, const uint_t maxsize, in xdr_dec_array()
402 if (size > maxsize || size > UINT_MAX / elsize) in xdr_dec_array()
434 xdr_enc_string(XDR *xdrs, char **sp, const uint_t maxsize) in xdr_enc_string()
439 if (slen > maxsize) in xdr_enc_string()
451 xdr_dec_string(XDR *xdrs, char **sp, const uint_t maxsize) in xdr_dec_string()
459 if (size > maxsize || size > UINT_MAX - 1) in xdr_dec_string()
367 xdr_enc_array(XDR * xdrs,caddr_t * arrp,uint_t * sizep,const uint_t maxsize,const uint_t elsize,const xdrproc_t elproc) xdr_enc_array() argument
389 xdr_dec_array(XDR * xdrs,caddr_t * arrp,uint_t * sizep,const uint_t maxsize,const uint_t elsize,const xdrproc_t elproc) xdr_dec_array() argument
433 xdr_enc_string(XDR * xdrs,char ** sp,const uint_t maxsize) xdr_enc_string() argument
450 xdr_dec_string(XDR * xdrs,char ** sp,const uint_t maxsize) xdr_dec_string() argument
/freebsd/sys/powerpc/powerpc/
H A Dbusdma_machdep.c70 bus_size_t maxsize; member
141 void *filterarg, bus_size_t maxsize, int nsegments, in bus_dma_tag_create()
175 newtag->maxsize = maxsize; in bus_dma_tag_create()
220 if (ptoa(bz->total_bpages) < maxsize) { in bus_dma_tag_create()
223 pages = atop(maxsize) - bz->total_bpages; in bus_dma_tag_create()
254 t->maxsize = dmat->maxsize; in bus_dma_template_clone()
337 pages = MAX(atop(dmat->maxsize), 1); in bus_dmamap_create()
421 * (dmat->alignment <= dmat->maxsize) i in bus_dmamem_alloc()
137 bus_dma_tag_create(bus_dma_tag_t parent,bus_size_t alignment,bus_addr_t boundary,bus_addr_t lowaddr,bus_addr_t highaddr,bus_dma_filter_t * filter,void * filterarg,bus_size_t maxsize,int nsegments,bus_size_t maxsegsz,int flags,bus_dma_lock_t * lockfunc,void * lockfuncarg,bus_dma_tag_t * dmat) bus_dma_tag_create() argument
[all...]
/freebsd/lib/libc/stdlib/
H A Dstrfmon.c61 if (dst >= s + maxsize) \
105 vstrfmon_l(char *__restrict s, size_t maxsize, locale_t loc, in vstrfmon_l() argument
202 if ((unsigned int)width >= maxsize - (dst - s)) in vstrfmon_l()
211 if ((unsigned int)left_prec >= maxsize - (dst - s)) in vstrfmon_l()
221 maxsize - (dst - s) - left_prec) in vstrfmon_l()
643 strfmon(char *restrict s, size_t maxsize, const char *restrict format, ...) in strfmon() argument
649 ret = vstrfmon_l(s, maxsize, __get_locale(), format, ap); in strfmon()
656 strfmon_l(char *restrict s, size_t maxsize, locale_t loc, in strfmon_l() argument
663 ret = vstrfmon_l(s, maxsize, loc, format, ap); in strfmon_l()
/freebsd/sys/contrib/openzfs/include/os/linux/spl/rpc/
H A Dxdr.h134 * The *sp buffer must have (maxsize + 1) bytes.
136 static inline bool_t xdr_string(XDR *xdrs, char **sp, const uint_t maxsize)
138 return (xdrs->x_ops->xdr_string(xdrs, sp, maxsize)); in xdr_string() argument
145 const uint_t maxsize, const uint_t elsize, const xdrproc_t elproc)
147 return xdrs->x_ops->xdr_array(xdrs, arrp, sizep, maxsize, elsize, in xdr_array() argument
/freebsd/sys/dev/sound/pcm/
H A Dbuffer.c98 b->maxsize = size; in sndbuf_alloc()
99 b->bufsize = b->maxsize; in sndbuf_alloc()
107 if (bus_dmamap_load(b->dmatag, b->dmamap, b->buf, b->maxsize, in sndbuf_alloc()
113 ret = sndbuf_resize(b, 2, b->maxsize / 2); in sndbuf_alloc()
127 b->maxsize = size; in sndbuf_setup()
128 b->bufsize = b->maxsize; in sndbuf_setup()
129 return sndbuf_resize(b, 2, b->maxsize / 2); in sndbuf_setup()
169 if (b->maxsize == 0) in sndbuf_resize()
175 if (blkcnt < 2 || blksz < 16 || (blkcnt * blksz) > b->maxsize) { in sndbuf_resize()
251 b->maxsize = bufsize; in sndbuf_remalloc()
[all …]
/freebsd/sys/arm/arm/
H A Dbusdma_machdep.c84 bus_size_t maxsize; member
363 bus_dma_filter_t *filter, void *filterarg, bus_size_t maxsize, in bus_dma_tag_create()
399 newtag->maxsize = maxsize; in bus_dma_tag_create()
443 maxsize = roundup2(maxsize, PAGE_SIZE) + PAGE_SIZE; in bus_dma_tag_create()
451 if (ptoa(bz->total_bpages) < maxsize) { in bus_dma_tag_create()
454 pages = atop(maxsize) - bz->total_bpages; in bus_dma_tag_create()
487 t->maxsize = dmat->maxsize; in bus_dma_template_clone()
359 bus_dma_tag_create(bus_dma_tag_t parent,bus_size_t alignment,bus_addr_t boundary,bus_addr_t lowaddr,bus_addr_t highaddr,bus_dma_filter_t * filter,void * filterarg,bus_size_t maxsize,int nsegments,bus_size_t maxsegsz,int flags,bus_dma_lock_t * lockfunc,void * lockfuncarg,bus_dma_tag_t * dmat) bus_dma_tag_create() argument
[all...]
/freebsd/contrib/ntp/ntpsnmpd/
H A DntpSnmpSubagentObject.c166 size_t maxsize in ntpsnmpd_cut_string() argument
174 if (maxsize < 1) in ntpsnmpd_cut_string()
179 memset(dest, 0, maxsize); in ntpsnmpd_cut_string()
185 else if (l == fieldnumber && j < maxsize) in ntpsnmpd_cut_string()
188 j = min(j, maxsize - 1); in ntpsnmpd_cut_string()
/freebsd/contrib/libfido2/fuzz/
H A Dlibfuzzer.c192 LLVMFuzzerCustomMutator(uint8_t *data, size_t size, size_t maxsize, in LLVMFuzzerCustomMutator() argument
202 __msan_unpoison(data, maxsize); in LLVMFuzzerCustomMutator()
213 return pack_dummy(data, maxsize); in LLVMFuzzerCustomMutator()
219 blob_len > sizeof(blob) || blob_len > maxsize) { in LLVMFuzzerCustomMutator()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Drsend.kshlib373 maxsize=$2
379 file_name="/$fs/file-$maxsize-$((i+$file_id_offset))"
380 file_size=$((($RANDOM * $RANDOM % ($maxsize - 1)) + 1))
407 echo Created $nfiles files of random sizes up to $maxsize bytes
421 maxsize=$2
426 rm -f /$fs/file-$maxsize-$((i+$file_id_offset))
428 echo Removed $nfiles files of random sizes up to $maxsize bytes
443 maxsize=$2
472 file_size=$((($RANDOM * $RANDOM % ($maxsize - 1)) + 1))
/freebsd/usr.sbin/pmcstat/
H A Dpmcpl_calltree.c229 pmcpl_ct_arc_grow(int cursize, int *maxsize, struct pmcpl_ct_arc **items) in pmcpl_ct_arc_grow() argument
233 if (cursize < *maxsize) in pmcpl_ct_arc_grow()
236 nmaxsize = *maxsize + max(cursize + 1 - *maxsize, PMCPL_CT_GROWSIZE); in pmcpl_ct_arc_grow()
240 bzero((char *)*items + *maxsize * sizeof(struct pmcpl_ct_arc), in pmcpl_ct_arc_grow()
241 (nmaxsize - *maxsize) * sizeof(struct pmcpl_ct_arc)); in pmcpl_ct_arc_grow()
242 *maxsize = nmaxsize; in pmcpl_ct_arc_grow()
250 pmcpl_ct_instr_grow(int cursize, int *maxsize, struct pmcpl_ct_instr **items) in pmcpl_ct_instr_grow() argument
254 if (cursize < *maxsize) in pmcpl_ct_instr_grow()
257 nmaxsize = *maxsize + max(cursize + 1 - *maxsize, PMCPL_CT_GROWSIZE); in pmcpl_ct_instr_grow()
261 bzero((char *)*items + *maxsize * sizeof(struct pmcpl_ct_instr), in pmcpl_ct_instr_grow()
[all …]
/freebsd/sys/riscv/include/
H A Dbus_dma_impl.h38 bus_size_t maxsize; member
49 bus_addr_t highaddr, bus_size_t maxsize, int nsegments,
80 bus_size_t maxsize, int nsegments, bus_size_t maxsegsz, int flags,
/freebsd/tools/test/stress2/misc/
H A Doovm.sh40 maxsize=$((2 * 1024)) # Limit size due to runtime reasons
44 [ $size -gt $maxsize ] && size=$maxsize
H A Dholdcnt02.sh83 static off_t maxsize;
143 if (statbuf.st_size < maxsize) {
184 if (statbuf.st_size >= maxsize) {
213 maxsize = 2LL * 1024 * 1024 * 1024 / FILES;

123456