Searched refs:maxlen (Results 101 - 125 of 195) sorted by relevance

12345678

/freebsd-11.0-release/contrib/amd/libamu/
H A Dxutil.c290 * 'e' never gets longer than maxlen characters.
293 expand_error(const char *f, char *e, size_t maxlen) argument
300 for (p = f, q = e; (*q = *p) && (size_t) len < maxlen; len++, q++, p++) {
302 xstrlcpy(q, strerror(error), maxlen);
308 e[maxlen-1] = '\0'; /* null terminate, to be sure */
/freebsd-11.0-release/sys/i386/i386/
H A Dbios.c483 bios_oem_strings(struct bios_oem *oem, u_char *buffer, size_t maxlen) argument
491 if ( !oem || !buffer || maxlen<2 )
519 if (idx + tot > maxlen - 1) {
521 "idx %d + tot %d = %d > maxlen-1 %d\n",
522 str, idx, tot, idx+tot, maxlen-1);
/freebsd-11.0-release/sys/sys/
H A Dttyqueue.h81 size_t ttyinq_findchar(struct ttyinq *ti, const char *breakc, size_t maxlen,
/freebsd-11.0-release/usr.sbin/rpcbind/
H A Drpcbind.c436 taddr.addr.len = taddr.addr.maxlen = addrlen;
457 nb.len = nb.maxlen = sa->sa_len;
489 taddr.addr.len = taddr.addr.maxlen = addrlen;
506 nb.len = nb.maxlen = sa->sa_len;
H A Drpcb_svc_com.c751 tbuf.len = tbuf.maxlen = localsa->sa_len;
1054 assert(src->len <= src->maxlen);
1056 if (dst->maxlen < src->len || dst->buf == NULL) {
1059 if ((dst->buf = calloc(1, src->maxlen)) == NULL)
1061 dst->maxlen = src->maxlen;
/freebsd-11.0-release/contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind/
H A Dutil.c275 tbuf.maxlen = sizeof (struct sockaddr_storage);
283 tbuf.maxlen = sizeof (struct sockaddr_storage);
H A Drpcbind.c325 taddr.addr.len = taddr.addr.maxlen = addrlen;
342 nb.len = nb.maxlen = sa->sa_len;
/freebsd-11.0-release/usr.sbin/bhyve/
H A Dfwctl.c164 ctl_locate(const char *str, int maxlen) argument
170 if (!strncmp(str, cp->c_oid, maxlen))
/freebsd-11.0-release/contrib/compiler-rt/lib/asan/
H A Dasan_interceptors.cc112 static inline uptr MaybeRealStrnlen(const char *s, uptr maxlen) { argument
115 return REAL(strnlen)(s, maxlen);
118 return internal_strnlen(s, maxlen);
611 INTERCEPTOR(uptr, strnlen, const char *s, uptr maxlen) { argument
615 uptr length = REAL(strnlen)(s, maxlen);
617 ASAN_READ_RANGE(ctx, s, Min(length + 1, maxlen));
/freebsd-11.0-release/lib/libc/rpc/
H A Dsvc_dg.c144 xprt->xp_rtaddr.maxlen = sizeof (struct sockaddr_storage);
152 xprt->xp_ltaddr.maxlen = sizeof (struct sockaddr_storage);
163 su->su_srcaddr.maxlen = sizeof (ss);
403 (void) mem_free(su->su_srcaddr.buf, su->su_srcaddr.maxlen);
406 (void) mem_free(xprt->xp_rtaddr.buf, xprt->xp_rtaddr.maxlen);
408 (void) mem_free(xprt->xp_ltaddr.buf, xprt->xp_ltaddr.maxlen);
H A Drpc_generic.c702 sin->sin_len = ret->maxlen = ret->len = sizeof *sin;
719 sin6->sin6_len = ret->maxlen = ret->len = sizeof *sin6;
730 ret->len = ret->maxlen = sun->sun_len = SUN_LEN(sun);
/freebsd-11.0-release/contrib/sendmail/src/
H A Dmime.c1260 ** maxlen -- size of output buffer
1266 ** reached before maxlen was reached
1270 mime_fromqp(infile, outfile, maxlen)
1273 int maxlen; /* Max # of chars allowed in outfile */
1280 if (--maxlen < 1)
1284 while ((c1 = *infile++) != '\0' && nchar < maxlen)
1322 if (nchar >= maxlen)
/freebsd-11.0-release/contrib/ipfilter/tools/
H A Dipnat.c416 int sz, i, used, maxlen, minlen, totallen; local
456 maxlen = 0;
460 if (buckets[i] > maxlen)
461 maxlen = buckets[i];
474 printf("%d\tmaximal length %s\n", maxlen, side);
/freebsd-11.0-release/contrib/smbfs/lib/smb/
H A Dctx.c155 getsubstring(const char *p, u_char sep, char *dest, int maxlen, const char **next) argument
159 maxlen--;
160 for (len = 0; len < maxlen && *p != sep; p++, len++, dest++) {
/freebsd-11.0-release/contrib/unbound/util/data/
H A Ddname.c74 dname_valid(uint8_t* dname, size_t maxlen) argument
85 if(len > maxlen)
91 if(len > maxlen)
/freebsd-11.0-release/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mac.cc363 uptr len = 0, maxlen = sizeof(version) / sizeof(version[0]); local
364 for (uptr i = 0; i < maxlen; i++) version[i] = '\0';
367 CHECK_LT(len, maxlen);
/freebsd-11.0-release/sys/rpc/
H A Drpc_generic.c407 sin->sin_len = ret->maxlen = ret->len = sizeof *sin;
423 sin6->sin6_len = ret->maxlen = ret->len = sizeof *sin6;
433 ret->len = ret->maxlen = sun->sun_len = SUN_LEN(sun);
/freebsd-11.0-release/usr.sbin/rpcbind/tests/
H A Daddrmerge_test.c334 caller.maxlen = sizeof(struct sockaddr_storage);
366 caller.maxlen = sizeof(struct sockaddr_storage);
395 caller.maxlen = sizeof(struct sockaddr_storage);
/freebsd-11.0-release/usr.sbin/rwhod/
H A Drwhod.c136 int verify(char *name, int maxlen);
330 verify(char *name, int maxlen) argument
335 while (*name != '\0' && size < maxlen - 1) {
/freebsd-11.0-release/contrib/unbound/libunbound/python/
H A Dlibunbound.i691 def dname2str(s, ofs=0, maxlen=0):
695 :param maxlen: maximum length (0 means parse to the end)
703 if maxlen > 0:
704 slen = min(slen, maxlen)
/freebsd-11.0-release/lib/libc/gen/
H A Dfts-compat.c636 int cderrno, descend, len, level, maxlen, nlinks, oflag, saved_errno, local
719 * We really wouldn't have to do the maxlen calculations here, we
735 maxlen = sp->fts_pathlen - len;
748 if (dnamlen >= maxlen) { /* include space for NUL */
772 maxlen = sp->fts_pathlen - len;
H A Dfts.c636 size_t dnamlen, len, maxlen, nitems; local
717 * We really wouldn't have to do the maxlen calculations here, we
733 maxlen = sp->fts_pathlen - len;
746 if (dnamlen >= maxlen) { /* include space for NUL */
770 maxlen = sp->fts_pathlen - len;
/freebsd-11.0-release/contrib/ipfilter/ipsd/
H A Dsdlpi.c98 dbuf.maxlen = sizeof(buf);
/freebsd-11.0-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_diff.c91 char *pn, int maxlen, zfs_stat_t *sb)
107 (void) strlcpy(pn, zc.zc_value, maxlen);
364 int maxlen)
369 maxlen, &sb) != 0) {
90 get_stats_for_obj(differ_info_t *di, const char *dsname, uint64_t obj, char *pn, int maxlen, zfs_stat_t *sb) argument
363 describe_free(FILE *fp, differ_info_t *di, uint64_t object, char *namebuf, int maxlen) argument
/freebsd-11.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/
H A Dgfs.c516 * maxlen - maximum length of a directory entry
536 gfs_dirent_t *entries, gfs_inode_cb inode_cb, int maxlen,
548 dp->gfsd_maxlen = maxlen;
577 gfs_dirent_t *entries, gfs_inode_cb inode_cb, int maxlen,
586 maxlen, readdir_cb, lookup_cb);
1003 * dp - directory entry, sized according to maxlen given to
535 gfs_dir_create(size_t struct_size, vnode_t *pvp, vfs_t *vfsp, vnodeops_t *ops, gfs_dirent_t *entries, gfs_inode_cb inode_cb, int maxlen, gfs_readdir_cb readdir_cb, gfs_lookup_cb lookup_cb) argument
576 gfs_root_create(size_t size, vfs_t *vfsp, vnodeops_t *ops, ino64_t ino, gfs_dirent_t *entries, gfs_inode_cb inode_cb, int maxlen, gfs_readdir_cb readdir_cb, gfs_lookup_cb lookup_cb) argument

Completed in 355 milliseconds

12345678