| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| H A D | strftime.c | 172 strftime (char *buf, size_t maxsize, const char *format, in strftime() argument 178 while (*format != '\0' && n < maxsize) { in strftime() 185 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() [all …]
|
| /netbsd-src/usr.sbin/installboot/ |
| H A D | bbinfo.c | 73 if ((bb = malloc(bbparams->maxsize)) == NULL) { in shared_bbinfo_clearboot() 75 (unsigned long) bbparams->maxsize); in shared_bbinfo_clearboot() 80 rv = pread(params->fsfd, bb, bbparams->maxsize, bbparams->offset); 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() 103 rv = pwrite(params->fsfd, bb, bbparams->maxsize, bbparams->offset); in shared_bbinfo_clearboot() 119 rv = pwrite(params->fsfd, bb, bbparams->maxsize, 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() [all …]
|
| /netbsd-src/usr.bin/xargs/ |
| H A D | strnsubst.c | 38 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-src/lib/libc/locale/ |
| H A D | wcsftime.c | 58 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-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | tree-dfa.c | 386 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() 457 else if (known_size_p (maxsize)) in get_ref_base_and_extent() 464 maxsize += tem; in get_ref_base_and_extent() 480 if (known_size_p (maxsize) in get_ref_base_and_extent() 483 maxsize = wi::to_poly_offset (csize) - bit_offset; in get_ref_base_and_extent() 485 maxsize = -1; in get_ref_base_and_extent() 522 if (known_size_p (maxsize) in get_ref_base_and_extent() 525 maxsize = wi::to_poly_offset (asize) - bit_offset; in get_ref_base_and_extent() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | tree-dfa.cc | 387 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() 463 else if (known_size_p (maxsize)) in get_ref_base_and_extent() 470 maxsize += tem; in get_ref_base_and_extent() 486 if (known_size_p (maxsize) in get_ref_base_and_extent() 489 maxsize = wi::to_poly_offset (csize) - bit_offset; in get_ref_base_and_extent() 491 maxsize = -1; in get_ref_base_and_extent() 528 if (known_size_p (maxsize) in get_ref_base_and_extent() 531 maxsize = wi::to_poly_offset (asize) - bit_offset; in get_ref_base_and_extent() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/asn1/ |
| H A D | a_strnid.c | 96 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-src/crypto/external/bsd/openssl/dist/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()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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 …]
|
| /netbsd-src/external/bsd/ntp/dist/ntpq/ |
| H A D | libntpq.c | 420 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-src/external/gpl3/binutils/dist/libiberty/ |
| H A D | spaces.c | 52 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-src/external/gpl3/binutils.old/dist/libiberty/ |
| H A D | spaces.c | 52 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-src/external/gpl3/gcc/dist/libiberty/ |
| H A D | spaces.c | 52 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-src/external/gpl3/gcc.old/dist/libiberty/ |
| H A D | spaces.c | 52 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-src/external/bsd/am-utils/dist/amd/ |
| H A D | sun_map_tok.l | 106 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-src/crypto/external/bsd/netpgp/dist/src/netpgp/ |
| H A D | netpgp.c | 195 stdin_to_mem(netpgp_t *netpgp, char **temp, char **out, unsigned *maxsize) in stdin_to_mem() argument 203 *maxsize = (unsigned)atoi(netpgp_getvar(netpgp, "max mem alloc")); in stdin_to_mem() 209 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() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/ |
| H A D | packet.c | 46 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-src/sys/dev/ir/ |
| H A D | irframe.c | 230 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-src/external/mpl/bind/dist/lib/isccc/ |
| H A D | ccmsg.c | 63 if (len > ccmsg->maxsize) { in recv_data() 120 .maxsize = 0xffffffffU, /* Largest message possible. */ in recv_data() 132 isccc_ccmsg_setmaxsize(isccc_ccmsg_t *ccmsg, unsigned int maxsize) { in isccc_ccmsg_init() 135 ccmsg->maxsize = maxsize; in isccc_ccmsg_init() 141 isccc_ccmsg_setmaxsize(isccc_ccmsg_t * ccmsg,unsigned int maxsize) isccc_ccmsg_setmaxsize() argument
|
| /netbsd-src/sys/dev/usb/ |
| H A D | uirda.c | 414 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() 739 sc->sc_wr_buf = usbd_get_buffer(sc->sc_wr_xfer, p->maxsize+1); in uirda_set_params() 749 sc->sc_rd_buf = usbd_get_buffer(sc->sc_rd_xfer, p->maxsize+1); in uirda_set_params() [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/mpf/ |
| H A D | eq.c | 39 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-src/external/gpl2/gmake/dist/ |
| H A D | strcache.c | 186 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-src/external/bsd/openldap/dist/contrib/slapd-modules/nssov/nss-pam-ldapd/ |
| H A D | tio.c | 63 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()
|
| /netbsd-src/lib/libc/stdlib/ |
| H A D | strfmon.c | 68 if (dst >= s + maxsize) \ 113 vstrfmon_l(char * __restrict s, size_t maxsize, locale_t loc, in vstrfmon_l() argument 210 if ((size_t)(d + width) >= maxsize) in vstrfmon_l() 219 if ((unsigned int)left_prec >= maxsize - (dst - s)) in vstrfmon_l() 228 if ((unsigned int)right_prec >= maxsize - (dst - s) - in vstrfmon_l() 655 strfmon(char * __restrict s, size_t maxsize, const char * __restrict format, in strfmon() argument 662 ret = vstrfmon_l(s, maxsize, _current_locale(), format, ap); in strfmon() 669 strfmon_l(char * __restrict s, size_t maxsize, locale_t loc, in strfmon_l() argument 676 ret = vstrfmon_l(s, maxsize, loc, format, ap); in strfmon_l()
|
| /netbsd-src/lib/libc/time/ |
| H A D | strftime.c | 184 strftime_z(const timezone_t sp, char * __restrict s, size_t maxsize, in _fmt() 187 return strftime_lz(sp, s, maxsize, format, t, _current_locale()); in _fmt() 192 strftime_l(char *restrict s, size_t maxsize, char const *restrict format, in _fmt() 197 return strftime(s, maxsize, format, t); in _fmt() 202 strftime_lz(const timezone_t sp, char *const s, const size_t maxsize, in _fmt() 209 p = _fmt(sp, format, t, s, s + maxsize, &warn, loc); in _fmt() 222 if (p == s + maxsize) { in _fmt() 789 strftime(char *restrict s, size_t maxsize, char const *restrict format, in _yconv() 796 r = strftime_z(__lclptr, s, maxsize, format, t); in _yconv() 803 strftime_l(char * __restrict s, size_t maxsize, cons in _yconv() 129 strftime_z(const timezone_t sp,char * __restrict s,size_t maxsize,const char * __restrict format,const struct tm * __restrict t) strftime_z() argument 137 strftime_l(char * restrict s,size_t maxsize,char const * restrict format,struct tm const * restrict t,ATTRIBUTE_MAYBE_UNUSED locale_t locale) strftime_l() argument 147 strftime_lz(const timezone_t sp,char * const s,const size_t maxsize,const char * const format,const struct tm * const t,locale_t loc) strftime_lz() argument 736 strftime(char * restrict s,size_t maxsize,char const * restrict format,struct tm const * restrict t) strftime() argument 750 strftime_l(char * __restrict s,size_t maxsize,const char * __restrict format,const struct tm * __restrict t,locale_t loc) strftime_l() argument [all...] |