/freebsd/crypto/heimdal/lib/roken/ |
H A D | strftime.c | 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() 225 ret = snprintf (buf, maxsize - n, in strftime() 229 ret = snprintf (buf, maxsize - n, in strftime() [all …]
|
/freebsd/lib/libdpv/ |
H A D | dialog_util.c | 88 if (maxsize == NULL) { in tty_maxsize_update() 97 maxsize->ws_row = TTY_DEFAULT_ROWS; in tty_maxsize_update() 124 if (maxsize == NULL) { in x11_maxsize_update() 177 return (maxsize->ws_row); in dialog_maxrows() 194 return (maxsize->ws_col - 2); in dialog_maxcols() 196 return (maxsize->ws_col); in dialog_maxcols() 198 return (maxsize->ws_col); in dialog_maxcols() 213 return (maxsize->ws_col); in tty_maxcols() 633 if (maxsize != NULL) { in dialog_maxsize_free() 634 free(maxsize); in dialog_maxsize_free() [all …]
|
/freebsd/usr.bin/xargs/ |
H A D | strnsubst.c | 33 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 D | wcsftime.c | 55 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 D | busdma_machdep.c | 54 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/crypto/openssl/crypto/asn1/ |
H A D | a_strnid.c | 96 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/sys/x86/x86/ |
H A D | busdma_machdep.c | 59 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/sys/arm64/arm64/ |
H A D | busdma_machdep.c | 55 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/crypto/openssl/crypto/ |
H A D | packet.c | 49 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 …]
|
/freebsd/contrib/ntp/ntpq/ |
H A D | libntpq.c | 418 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 D | libntpq.h | 93 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 D | spl-xdr.c | 368 xdr_enc_array(XDR *xdrs, caddr_t *arrp, uint_t *sizep, const uint_t maxsize, in xdr_enc_array() argument 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() argument 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() argument 439 if (slen > maxsize) in xdr_enc_string() 451 xdr_dec_string(XDR *xdrs, char **sp, const uint_t maxsize) in xdr_dec_string() argument 459 if (size > maxsize || size > UINT_MAX - 1) in xdr_dec_string()
|
/freebsd/sys/powerpc/powerpc/ |
H A D | busdma_machdep.c | 70 bus_size_t maxsize; member 141 void *filterarg, bus_size_t maxsize, int nsegments, in bus_dma_tag_create() argument 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() 427 if ((dmat->maxsize <= PAGE_SIZE) && in bus_dmamem_alloc() 428 (dmat->alignment <= dmat->maxsize) && in bus_dmamem_alloc() 431 *vaddr = malloc(dmat->maxsize, M_DEVBUF, mflags); in bus_dmamem_alloc() [all …]
|
/freebsd/lib/libc/stdlib/ |
H A D | strfmon.c | 61 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 D | xdr.h | 136 static inline bool_t xdr_string(XDR *xdrs, char **sp, const uint_t maxsize) in xdr_string() argument 138 return (xdrs->x_ops->xdr_string(xdrs, sp, maxsize)); in xdr_string() 145 const uint_t maxsize, const uint_t elsize, const xdrproc_t elproc) in xdr_array() argument 147 return xdrs->x_ops->xdr_array(xdrs, arrp, sizep, maxsize, elsize, in xdr_array()
|
/freebsd/sys/dev/sound/pcm/ |
H A D | buffer.c | 98 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() 251 b->maxsize = bufsize; in sndbuf_remalloc() 442 return b->maxsize; in sndbuf_getmaxsize() [all …]
|
/freebsd/sys/arm/arm/ |
H A D | busdma_machdep.c | 84 bus_size_t maxsize; member 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() 547 pages = atop(roundup2(dmat->maxsize, PAGE_SIZE)) + 1; in allocate_bz_and_pages() 700 bufzone = busdma_bufalloc_findzone(ba, dmat->maxsize); in bus_dmamem_alloc() 724 *vaddr = kmem_alloc_attr(dmat->maxsize, mflags, 0, in bus_dmamem_alloc() 727 *vaddr = kmem_alloc_contig(dmat->maxsize, mflags, 0, in bus_dmamem_alloc() [all …]
|
/freebsd/contrib/ntp/ntpsnmpd/ |
H A D | ntpSnmpSubagentObject.c | 166 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 D | libfuzzer.c | 192 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/tools/test/stress2/misc/ |
H A D | oovm.sh | 40 maxsize=$((2 * 1024)) # Limit size due to runtime reasons 44 [ $size -gt $maxsize ] && size=$maxsize
|
H A D | holdcnt02.sh | 83 static off_t maxsize; 143 if (statbuf.st_size < maxsize) { 184 if (statbuf.st_size >= maxsize) { 213 maxsize = 2LL * 1024 * 1024 * 1024 / FILES;
|
H A D | holdcnt03.sh | 86 static off_t maxsize; 144 if (statbuf.st_size < maxsize) { 185 if (statbuf.st_size >= maxsize) { 212 maxsize = 2LL * 1024 * 1024 * 1024 / FILES;
|
H A D | holdcnt05.sh | 87 static off_t maxsize; 151 if (statbuf.st_size < maxsize) { 192 if (statbuf.st_size >= maxsize) { 221 maxsize = 2LL * 1024 * 1024 * 1024 / FILES;
|
/freebsd/sys/riscv/include/ |
H A D | bus_dma_impl.h | 38 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | rsend.kshlib | 380 maxsize=$2 386 file_name="/$fs/file-$maxsize-$((i+$file_id_offset))" 387 file_size=$((($RANDOM * $RANDOM % ($maxsize - 1)) + 1)) 414 echo Created $nfiles files of random sizes up to $maxsize bytes 428 maxsize=$2 433 rm -f /$fs/file-$maxsize-$((i+$file_id_offset)) 435 echo Removed $nfiles files of random sizes up to $maxsize bytes 450 maxsize=$2 479 file_size=$((($RANDOM * $RANDOM % ($maxsize - 1)) + 1))
|