Searched refs:maxlen (Results 1 - 25 of 203) sorted by relevance

123456789

/freebsd-head/lib/libc/string/
H A Dstrnlen.c35 strnlen(const char *s, size_t maxlen) argument
39 for (len = 0; len < maxlen; len++, s++) {
H A Dwcsnlen.c35 wcsnlen(const wchar_t *s, size_t maxlen) argument
39 for (len = 0; len < maxlen; len++, s++) {
H A Dstrndup.c27 strndup(const char *str, size_t maxlen) argument
32 len = strnlen(str, maxlen);
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dstrnlen.c28 strnlen(const char *str, size_t maxlen) argument
32 for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--)
H A Dstrndup.c28 strndup(const char *str, size_t maxlen) argument
33 len = strnlen(str, maxlen);
H A Dbsd-snprintf.c170 static int dopr(char *buffer, size_t maxlen, const char *format,
172 static int fmtstr(char *buffer, size_t *currlen, size_t maxlen,
174 static int fmtint(char *buffer, size_t *currlen, size_t maxlen,
176 static int fmtfp(char *buffer, size_t *currlen, size_t maxlen,
180 dopr(char *buffer, size_t maxlen, const char *format, va_list args_in) argument
210 DOPR_OUTCH(buffer, currlen, maxlen, ch);
321 if (fmtint(buffer, &currlen, maxlen,
341 if (fmtint(buffer, &currlen, maxlen, value,
361 if (fmtint(buffer, &currlen, maxlen, value,
383 if (fmtint(buffer, &currlen, maxlen, valu
502 fmtstr(char *buffer, size_t *currlen, size_t maxlen, char *value, int flags, int min, int max) argument
543 fmtint(char *buffer, size_t *currlen, size_t maxlen, intmax_t value, int base, int min, int max, int flags) argument
703 fmtfp(char *buffer, size_t *currlen, size_t maxlen, LDOUBLE fvalue, int min, int max, int flags) argument
[all...]
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/
H A Derr.D_ACT_SPEC.SpeculateWithCopyOutStr.d42 size_t maxlen;
47 maxlen = 10;
56 copyoutstr(str, addr, maxlen);
/freebsd-head/sys/libkern/
H A Dstrnlen.c35 strnlen(const char *s, size_t maxlen) argument
39 for (len = 0; len < maxlen; len++, s++) {
H A Dstrndup.c41 strndup(const char *string, size_t maxlen, struct malloc_type *type) argument
46 len = strnlen(string, maxlen) + 1;
/freebsd-head/contrib/mandoc/
H A Dcompat_strndup.c33 strndup(const char *str, size_t maxlen) argument
38 for (len = 0; len < maxlen && str[len] != '\0'; len++)
/freebsd-head/tools/regression/audit/audit_pipe_ioctl/
H A Daudit_pipe_ioctl.c48 u_int len, minlen, maxlen; local
72 maxlen = (u_int)(-1);
73 if (ioctl(fd, AUDITPIPE_GET_QLIMIT_MAX, &maxlen) < 0)
75 if (maxlen == (u_int)(-1))
87 if (!(len <= maxlen))
88 errx(-1, "queue length > maxlen");
104 len = maxlen;
111 if (len != maxlen)
112 errx(-1, "set to maxlen didn't work");
/freebsd-head/contrib/ntp/ntpq/
H A Dlibntpq.h86 char *resultbuf, int maxlen);
89 size_t maxlen);
90 extern int ntpq_stripquotes ( char *resultbuf, char *srcbuf, int datalen, int maxlen );
91 extern int ntpq_queryhost_peervars(associd_t association, char *resultbuf, int maxlen);
92 extern int ntpq_get_peervar( const char *varname, char *varvalue, int maxlen);
H A Dlibntpq.c51 * maxlen int Max. number of bytes for resultbuf
58 int ntpq_stripquotes ( char *resultbuf, char *srcbuf, int datalen, int maxlen )
61 char* dep = resultbuf + maxlen - 1;
67 if (maxlen <= 0)
121 * maxlen size_t Max. number of bytes for varvalue
134 size_t maxlen)
145 ntpq_stripquotes(varvalue, value, strlen(value), maxlen);
173 * maxlen int Max. number of bytes for varvalue
183 int ntpq_queryhost(unsigned short VARSET, unsigned short association, char *resultbuf, int maxlen) argument
198 if ( dsize > maxlen)
129 ntpq_getvar( const char * resultbuf, size_t datalen, const char * varname, char * varvalue, size_t maxlen) argument
587 ntpq_get_peervar( const char *varname, char *varvalue, int maxlen) argument
[all...]
/freebsd-head/crypto/openssl/crypto/bio/
H A Db_print.c38 size_t *maxlen, size_t *retlen, int *truncated,
86 size_t *maxlen,
106 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen))
114 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen, ch))
229 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value, 10, min,
257 if (!fmtint(sbuffer, buffer, &currlen, maxlen, value,
267 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max,
279 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max,
291 if (!fmtfp(sbuffer, buffer, &currlen, maxlen, fvalue, min, max,
296 if (!doapr_outch(sbuffer, buffer, &currlen, maxlen,
84 _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) argument
364 fmtstr(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, const char *value, int flags, int min, int max) argument
416 fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int64_t value, int base, int min, int max, int flags) argument
544 fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags, int style) argument
809 doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) argument
[all...]
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_swap/
H A Dzvol_swap_005_pos.ksh63 ((maxlen = max_swaplow - swaplow))
64 swaplen=$(range_shuffle ${pageblocks} ${maxlen} | head -n 1)
/freebsd-head/contrib/netbsd-tests/lib/libcurses/slave/
H A Dslave.c59 int len, maxlen, argslen, i, ret, type; local
62 len = maxlen = 30;
63 if ((cmdbuf = malloc(maxlen)) == NULL)
76 if ((len + 1) > maxlen) {
77 maxlen = len + 1;
78 if ((tmpbuf = realloc(cmdbuf, maxlen)) == NULL)
80 "bytes failed", maxlen);
/freebsd-head/bin/ps/
H A Dfmt.c110 fmt_argv(char **argv, char *cmd, char *thread, size_t maxlen) argument
119 len = maxlen + 3;
122 len = strlen(ap) + maxlen + 4;
130 sprintf(cp, "[%.*s]", (int)maxlen, ap);
133 sprintf(cp, "[%.*s]", (int)maxlen, cmd);
134 } else if (strncmp(cmdpart(argv[0]), cmd, maxlen) != 0)
135 sprintf(cp, "%s (%.*s)", ap, (int)maxlen, cmd);
/freebsd-head/contrib/ncurses/ncurses/tinfo/
H A Dmake_keys.c93 unsigned maxlen = 16; local
108 if (strlen(from) > maxlen)
109 maxlen = (unsigned) strlen(from);
112 (int) maxlen, (int) maxlen,
/freebsd-head/sys/net80211/
H A Dieee80211_ageq.h44 void ieee80211_ageq_init(struct ieee80211_ageq *, int maxlen,
/freebsd-head/contrib/libarchive/libarchive/test/
H A Dtest_write_format_iso9660_filename.c50 size_t maxlen; member in struct:fns
111 assert((length = strlen(pathname)) <= fns->maxlen);
190 assertEqualInt((int)fns->longest_len, (int)fns->maxlen);
334 fns.maxlen = fns.maxflen = fns.maxelen = 255;
340 fns.maxlen = fns.maxflen = fns.maxelen = 64;
346 fns.maxlen = 8+3+1;
360 fns.maxlen = fns.maxflen = fns.maxelen = 255;
366 fns.maxlen = fns.maxflen = fns.maxelen = 64;
372 fns.maxlen = 31;
386 fns.maxlen
[all...]
/freebsd-head/contrib/ncurses/ncurses/base/
H A Dlib_getstr.c75 int maxlen,
87 T((T_CALLED("wgetnstr(%p,%p,%d)"), (void *) win, (void *) str, maxlen));
92 maxlen = _nc_getstr_limit(maxlen);
148 || (str - oldstr >= maxlen)) {
220 wgetnstr(WINDOW *win, char *str, int maxlen) argument
224 maxlen,
73 wgetnstr_events(WINDOW *win, char *str, int maxlen, EVENTLIST_1st(_nc_eventlist * evl)) argument
/freebsd-head/crypto/openssl/crypto/
H A Do_str.c41 size_t maxlen; local
47 maxlen = OPENSSL_strnlen(str, s);
49 ret = CRYPTO_malloc(maxlen + 1, file, line);
51 memcpy(ret, str, maxlen);
52 ret[maxlen] = '\0';
72 size_t OPENSSL_strnlen(const char *str, size_t maxlen) argument
76 for (p = str; maxlen-- != 0 && *p != '\0'; ++p) ;
/freebsd-head/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_libc.cpp171 uptr internal_strlcat(char *dst, const char *src, uptr maxlen) { argument
173 const uptr dstlen = internal_strnlen(dst, maxlen);
174 if (dstlen == maxlen) return maxlen + srclen;
175 if (srclen < maxlen - dstlen) {
178 internal_memmove(dst + dstlen, src, maxlen - dstlen - 1);
179 dst[maxlen - 1] = '\0';
193 uptr internal_strlcpy(char *dst, const char *src, uptr maxlen) { argument
195 if (srclen < maxlen) {
197 } else if (maxlen !
212 internal_strnlen(const char *s, uptr maxlen) argument
[all...]
H A Dsanitizer_libc.h42 uptr internal_strlcat(char *dst, const char *src, uptr maxlen);
45 uptr internal_strlcpy(char *dst, const char *src, uptr maxlen);
47 uptr internal_strnlen(const char *s, uptr maxlen);
/freebsd-head/bin/ls/
H A Dls.h72 int maxlen; member in struct:__anon1

Completed in 157 milliseconds

123456789