Home
last modified time | relevance | path

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

123456789

/netbsd/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dstrftime.c185 ret = snprintf (buf, maxsize - n, in strftime()
189 ret = snprintf (buf, maxsize - n, in strftime()
194 ret = snprintf (buf, maxsize - n, in strftime()
198 ret = snprintf (buf, maxsize - n, in strftime()
202 ret = snprintf (buf, maxsize - n, in strftime()
212 ret = snprintf (buf, maxsize - n, in strftime()
216 ret = snprintf (buf, maxsize - n, in strftime()
220 ret = snprintf (buf, maxsize - n, in strftime()
227 ret = snprintf (buf, maxsize - n, in strftime()
231 ret = snprintf (buf, maxsize - n, in strftime()
[all …]
/netbsd/usr.sbin/installboot/
H A Dbbinfo.c73 if ((bb = malloc(bbparams->maxsize)) == NULL) { in shared_bbinfo_clearboot()
75 (unsigned long) bbparams->maxsize); in shared_bbinfo_clearboot()
84 } else if ((uint32_t)rv != bbparams->maxsize) { in shared_bbinfo_clearboot()
91 bbparams->maxsize - bbparams->headeroffset); in shared_bbinfo_clearboot()
130 } else if ((uint32_t)rv != bbparams->maxsize) { in shared_bbinfo_clearboot()
166 if ((bb = malloc(bbparams->maxsize)) == NULL) { in shared_bbinfo_setboot()
168 (unsigned long) bbparams->maxsize); in shared_bbinfo_setboot()
185 memset(bb, 0, bbparams->maxsize); in shared_bbinfo_setboot()
187 bbparams->maxsize - bbparams->headeroffset); in shared_bbinfo_setboot()
217 if (bbi >= bbparams->maxsize) { in shared_bbinfo_setboot()
[all …]
/netbsd/usr.bin/xargs/
H A Dstrnsubst.c38 strnsubst(char **str, const char *match, const char *replstr, size_t maxsize) in strnsubst() argument
53 if (maxsize == 0) { in strnsubst()
55 maxsize = strlen(s1) + 1; in strnsubst()
57 s2 = calloc(maxsize, 1); in strnsubst()
64 if (match == NULL || replstr == NULL || maxsize == strlen(s1)) { in strnsubst()
65 (void)strlcpy(s2, s1, maxsize); in strnsubst()
74 strlen(match) + 1) > maxsize) { in strnsubst()
75 (void)strlcat(s2, s1, maxsize); in strnsubst()
/netbsd/lib/libc/locale/
H A Dwcsftime.c58 wcsftime(wchar_t *wcs, size_t maxsize, in __weak_alias()
61 return wcsftime_l(wcs, maxsize, format, timeptr, _current_locale()); in __weak_alias()
65 wcsftime_l(wchar_t *wcs, size_t maxsize, in wcsftime_l() argument
91 if (SIZE_T_MAX / MB_CUR_MAX_L(loc) <= maxsize) { in wcsftime_l()
96 dst = malloc(maxsize * MB_CUR_MAX_L(loc)); in wcsftime_l()
99 if (strftime_l(dst, maxsize, sformat, timeptr, loc) == 0) in wcsftime_l()
102 n = mbstowcs_l(wcs, dstp, maxsize, loc); in wcsftime_l()
/netbsd/external/gpl3/gcc/dist/gcc/
H A Dtree-dfa.c386 poly_offset_int maxsize; in get_ref_base_and_extent() local
413 maxsize = bitsize; in get_ref_base_and_extent()
456 maxsize = -1; in get_ref_base_and_extent()
464 maxsize += tem; in get_ref_base_and_extent()
485 maxsize = -1; in get_ref_base_and_extent()
527 maxsize = -1; in get_ref_base_and_extent()
557 maxsize = rmaxsize; in get_ref_base_and_extent()
572 maxsize -= woffset; in get_ref_base_and_extent()
597 maxsize = -1; in get_ref_base_and_extent()
619 maxsize = -1; in get_ref_base_and_extent()
[all …]
H A Dtree-dfa.cc387 poly_offset_int maxsize; in get_ref_base_and_extent() local
419 maxsize = bitsize; in get_ref_base_and_extent()
462 maxsize = -1; in get_ref_base_and_extent()
470 maxsize += tem; in get_ref_base_and_extent()
491 maxsize = -1; in get_ref_base_and_extent()
533 maxsize = -1; in get_ref_base_and_extent()
572 maxsize = rmaxsize; in get_ref_base_and_extent()
587 maxsize -= woffset; in get_ref_base_and_extent()
612 maxsize = -1; in get_ref_base_and_extent()
634 maxsize = -1; in get_ref_base_and_extent()
[all …]
/netbsd/external/gpl3/gcc.old/dist/gcc/
H A Dtree-dfa.c386 poly_offset_int maxsize; in get_ref_base_and_extent() local
413 maxsize = bitsize; in get_ref_base_and_extent()
456 maxsize = -1; in get_ref_base_and_extent()
464 maxsize += tem; in get_ref_base_and_extent()
485 maxsize = -1; in get_ref_base_and_extent()
527 maxsize = -1; in get_ref_base_and_extent()
557 maxsize = rmaxsize; in get_ref_base_and_extent()
572 maxsize -= woffset; in get_ref_base_and_extent()
597 maxsize = -1; in get_ref_base_and_extent()
619 maxsize = -1; in get_ref_base_and_extent()
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/asn1/
H A Da_strnid.c96 tbl->minsize, tbl->maxsize); in ASN1_STRING_set_by_NID()
170 rv->maxsize = tmp->maxsize; in stable_get()
176 rv->maxsize = -1; in stable_get()
183 long minsize, long maxsize, unsigned long mask, in ASN1_STRING_TABLE_add() argument
195 if (maxsize >= 0) in ASN1_STRING_TABLE_add()
196 tmp->maxsize = maxsize; in ASN1_STRING_TABLE_add()
/netbsd/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Da_strnid.c96 tbl->minsize, tbl->maxsize); in ASN1_STRING_set_by_NID()
173 rv->maxsize = tmp->maxsize; in stable_get()
179 rv->maxsize = -1; in stable_get()
186 long minsize, long maxsize, unsigned long mask, in ASN1_STRING_TABLE_add() argument
198 if (maxsize >= 0) in ASN1_STRING_TABLE_add()
199 tmp->maxsize = maxsize; in ASN1_STRING_TABLE_add()
/netbsd/crypto/external/bsd/openssl/dist/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 …]
/netbsd/external/bsd/ntp/dist/ntpq/
H A Dlibntpq.c420 int maxsize in ntpq_read_assoc_peervars() argument
441 if (dsize > maxsize) in ntpq_read_assoc_peervars()
442 dsize = maxsize; in ntpq_read_assoc_peervars()
477 size_t maxsize in ntpq_read_sysvars() argument
498 dsize = min(dsize, maxsize); in ntpq_read_sysvars()
662 int maxsize in ntpq_read_assoc_clockvars() argument
679 if (dsize > maxsize) in ntpq_read_assoc_clockvars()
680 dsize = maxsize; in ntpq_read_assoc_clockvars()
/netbsd/external/gpl3/binutils/dist/libiberty/
H A Dspaces.c52 static int maxsize; in spaces() local
54 if (count > maxsize) in spaces()
64 maxsize = count; in spaces()
67 return (const char *) (buf + maxsize - count); in spaces()
/netbsd/external/gpl3/gdb/dist/libiberty/
H A Dspaces.c52 static int maxsize; in spaces() local
54 if (count > maxsize) in spaces()
64 maxsize = count; in spaces()
67 return (const char *) (buf + maxsize - count); in spaces()
/netbsd/external/gpl3/binutils.old/dist/libiberty/
H A Dspaces.c52 static int maxsize; in spaces() local
54 if (count > maxsize) in spaces()
64 maxsize = count; in spaces()
67 return (const char *) (buf + maxsize - count); in spaces()
/netbsd/external/gpl3/gcc.old/dist/libiberty/
H A Dspaces.c52 static int maxsize; in spaces() local
54 if (count > maxsize) in spaces()
64 maxsize = count; in spaces()
67 return (const char *) (buf + maxsize - count); in spaces()
/netbsd/external/gpl3/gdb.old/dist/libiberty/
H A Dspaces.c52 static int maxsize; in spaces() local
54 if (count > maxsize) in spaces()
64 maxsize = count; in spaces()
67 return (const char *) (buf + maxsize - count); in spaces()
/netbsd/external/gpl3/gcc/dist/libiberty/
H A Dspaces.c52 static int maxsize; in spaces() local
54 if (count > maxsize) in spaces()
64 maxsize = count; in spaces()
67 return (const char *) (buf + maxsize - count); in spaces()
/netbsd/external/bsd/am-utils/dist/amd/
H A Dsun_map_tok.l106 int sun_map_input(char *buff, int maxsize);
109 # define YY_INPUT(buff,result,maxsize) (result = sun_map_input(buff,maxsize)) argument
206 sun_map_input(char *buff, int maxsize) in sun_map_input() argument
208 int size = MIN(maxsize, (sun_map_tok_end - sun_map_tok_pos)); in sun_map_input()
/netbsd/crypto/external/bsd/netpgp/dist/src/netpgp/
H A Dnetpgp.c209 if (newsize > *maxsize) { in stdin_to_mem()
222 if ((*out = calloc(1, *maxsize)) == NULL) { in stdin_to_mem()
257 unsigned maxsize; in netpgp_cmd() local
266 cc = stdin_to_mem(netpgp, &in, &out, &maxsize); in netpgp_cmd()
269 in, cc, out, maxsize, p->armour); in netpgp_cmd()
281 cc = stdin_to_mem(netpgp, &in, &out, &maxsize); in netpgp_cmd()
283 maxsize, 0); in netpgp_cmd()
293 cc = stdin_to_mem(netpgp, &in, &out, &maxsize); in netpgp_cmd()
297 maxsize, p->armour, in netpgp_cmd()
315 cc = stdin_to_mem(netpgp, &in, &out, &maxsize); in netpgp_cmd()
[all …]
/netbsd/sys/dev/ir/
H A Dirframe.c230 if (uio->uio_resid < sc->sc_params.maxsize) { in irframeread()
233 (long)uio->uio_resid, sc->sc_params.maxsize); in irframeread()
250 if (uio->uio_resid > sc->sc_params.maxsize) { in irframewrite()
253 (long)uio->uio_resid, sc->sc_params.maxsize); in irframewrite()
266 "speedmask=0x%x\n", p->speed, p->ebofs, p->maxsize, in irf_set_params()
269 if (p->maxsize > IRDA_MAX_FRAME_SIZE) { in irf_set_params()
271 printf("irf_set_params: bad maxsize=%u\n", p->maxsize); in irf_set_params()
278 printf("irf_set_params: bad maxsize=%u\n", p->maxsize); in irf_set_params()
327 params.maxsize = IRDA_DEFAULT_SIZE; in irf_reset_params()
/netbsd/crypto/external/bsd/openssl.old/dist/ssl/
H A Dpacket.c46 if (pkt->maxsize - pkt->written < len) in WPACKET_reserve_bytes()
129 pkt->maxsize = (max < len) ? max : len; in WPACKET_init_static_len()
142 pkt->maxsize = maxmaxsize(lenbytes); in WPACKET_init_len()
322 int WPACKET_set_max_size(WPACKET *pkt, size_t maxsize) in WPACKET_set_max_size() argument
337 lenbytes = sizeof(pkt->maxsize); in WPACKET_set_max_size()
339 if (maxmaxsize(lenbytes) < maxsize || maxsize < pkt->written) in WPACKET_set_max_size()
342 pkt->maxsize = maxsize; in WPACKET_set_max_size()
/netbsd/sys/dev/usb/
H A Duirda.c414 sc->sc_params.maxsize = IRDA_MAX_FRAME_SIZE; in uirda_open()
550 if (n > sc->sc_params.maxsize) in uirda_write()
674 sc, p->speed, p->ebofs, p->maxsize)); in uirda_set_params()
725 if (p->maxsize != sc->sc_params.maxsize) { in uirda_set_params()
726 if (p->maxsize > IRDA_MAX_FRAME_SIZE) in uirda_set_params()
728 sc->sc_params.maxsize = p->maxsize; in uirda_set_params()
731 sc->sc_params.maxsize)); in uirda_set_params()
732 if (p->maxsize > 10000 || p < 0) /* XXX */ in uirda_set_params()
755 sc->sc_params.maxsize = p->maxsize; in uirda_set_params()
872 sc->sc_params.maxsize + UIRDA_INPUT_HEADER_SIZE)); in uirda_start_read()
[all …]
/netbsd/external/lgpl3/gmp/dist/mpf/
H A Deq.c39 mp_size_t usize, vsize, minsize, maxsize, n_limbs, i, size; in mpf_eq() local
101 maxsize = usize + vsize - minsize; in mpf_eq()
113 n_bits -= (maxsize - 1) * GMP_NUMB_BITS; in mpf_eq()
115 size = maxsize - minsize; in mpf_eq()
/netbsd/external/gpl2/gmake/dist/
H A Dstrcache.c186 int totsize = 0, avgsize, maxsize = 0, minsize = bufsize; in strcache_print_stats() local
199 maxsize = (sz > maxsize ? sz : maxsize); in strcache_print_stats()
213 prefix, totsize, maxsize, minsize, avgsize); in strcache_print_stats()
/netbsd/external/bsd/openldap/dist/contrib/slapd-modules/nssov/nss-pam-ldapd/
H A Dtio.c63 size_t maxsize; /* the maximum size of the buffer */ member
134 fp->readbuffer.maxsize = maxreadsize; in tio_fdopen()
146 fp->writebuffer.maxsize = maxwritesize; in tio_fdopen()
247 if (fp->readbuffer.size < fp->readbuffer.maxsize) in tio_read()
250 if (newsz > fp->readbuffer.maxsize) in tio_read()
251 newsz = fp->readbuffer.maxsize; in tio_read()
459 if (fp->writebuffer.size < fp->writebuffer.maxsize) in tio_write()
462 if (newsz > fp->writebuffer.maxsize) in tio_write()
463 newsz = fp->writebuffer.maxsize; in tio_write()

123456789