Searched refs:strnlen (Results 1 - 25 of 52) sorted by relevance

123

/freebsd-11.0-release/crypto/heimdal/lib/roken/
H A Dstrnlen.c39 strnlen(const char *s, size_t len) function
H A Dstrndup.c44 size_t len = strnlen (old, sz);
H A Dstrlcat.c46 len = strnlen(dst, dst_sz);
H A Dresolve.c737 size_t hostlen = strnlen(pRec->Data.MX.pNameExchange, DNS_MAX_NAME_LENGTH);
752 size_t hostlen = strnlen(pRec->Data.SRV.pNameTarget, DNS_MAX_NAME_LENGTH);
778 len = strnlen(pRec->Data.TXT.pStringArray[0], DNS_MAX_TEXT_STRING_LENGTH);
820 hostlen = strnlen(pRec->Data.SIG.pNameSigner, DNS_MAX_NAME_LENGTH);
/freebsd-11.0-release/lib/libc/string/
H A Dstrnlen.c28 __FBSDID("$FreeBSD: releng/11.0/lib/libc/string/strnlen.c 189136 2009-02-28 06:00:58Z das $");
33 strnlen(const char *s, size_t maxlen) function
H A Dstrndup.c32 len = strnlen(str, maxlen);
H A DMakefile.inc17 strncat.c strncmp.c strncpy.c strndup.c strnlen.c strnstr.c \
65 MLINKS+=strlen.3 strnlen.3
/freebsd-11.0-release/crypto/openssh/openbsd-compat/
H A Dstrnlen.c1 /* $OpenBSD: strnlen.c,v 1.3 2010/06/02 12:58:12 millert Exp $ */
19 /* OPENBSD ORIGINAL: lib/libc/string/strnlen.c */
28 strnlen(const char *str, size_t maxlen) function
H A DMakefile.in19 OPENBSD=base64.o basename.o bcrypt_pbkdf.o bindresvport.o blowfish.o daemon.o dirname.o fmt_scaled.o getcwd.o getgrouplist.o getopt_long.o getrrsetbyname.o glob.o inet_aton.o inet_ntoa.o inet_ntop.o mktemp.o pwcache.o readpassphrase.o reallocarray.o realpath.o rresvport.o setenv.o setproctitle.o sha1.o sha2.o rmd160.o md5.o sigact.o strlcat.o strlcpy.o strmode.o strnlen.o strptime.o strsep.o strtonum.o strtoll.o strtoul.o strtoull.o timingsafe_bcmp.o vis.o blowfish.o bcrypt_pbkdf.o explicit_bzero.o
/freebsd-11.0-release/sys/libkern/
H A Dstrnlen.c28 __FBSDID("$FreeBSD: releng/11.0/sys/libkern/strnlen.c 226029 2011-10-04 23:53:47Z jkim $");
33 strnlen(const char *s, size_t maxlen) function
H A Dstrndup.c46 len = strnlen(string, maxlen) + 1;
/freebsd-11.0-release/contrib/netbsd-tests/lib/libc/string/
H A Dt_strlen.c172 atf_tc_set_md_var(tc, "descr", "A naive test of strnlen(3)");
181 ATF_CHECK(strnlen(buf, 000) == 0);
182 ATF_CHECK(strnlen(buf, 111) == 0);
184 ATF_CHECK(strnlen("xxx", 0) == 0);
185 ATF_CHECK(strnlen("xxx", 1) == 1);
186 ATF_CHECK(strnlen("xxx", 2) == 2);
187 ATF_CHECK(strnlen("xxx", 3) == 3);
188 ATF_CHECK(strnlen("xxx", 9) == 3);
/freebsd-11.0-release/contrib/blacklist/port/
H A Dstrlcat.c87 size_t dlen = strnlen(dst, siz);
/freebsd-11.0-release/sys/contrib/ncsw/inc/
H A Dstdlib_ext.h82 * strnlen - Find the length of a length-limited string
86 size_t strnlen(const char * s, size_t count);
/freebsd-11.0-release/contrib/compiler-rt/lib/asan/
H A Dasan_interceptors.h89 DECLARE_REAL(uptr, strnlen, const char *s, uptr maxlen)
H A Dasan_interceptors.cc114 if (REAL(strnlen)) {
115 return REAL(strnlen)(s, maxlen);
611 INTERCEPTOR(uptr, strnlen, const char *s, uptr maxlen) {
613 ASAN_INTERCEPTOR_ENTER(ctx, strnlen);
615 uptr length = REAL(strnlen)(s, maxlen);
760 ASAN_INTERCEPT_FUNC(strnlen);
/freebsd-11.0-release/include/
H A Dstring.h104 size_t strnlen(const char *, size_t) __pure;
/freebsd-11.0-release/cddl/contrib/opensolaris/lib/libuutil/common/
H A Duu_alloc.c79 len = strnlen(s, n);
/freebsd-11.0-release/lib/libc/stdio/
H A Dfmemopen.c130 ck->off = ck->len = strnlen(ck->buf, ck->size);
/freebsd-11.0-release/contrib/gcclibs/libmudflap/
H A Dmf-hooks2.c121 static inline size_t (strnlen) (const char* str, size_t n) function
204 size_t len = strnlen (src, n);
240 so we will call strnlen(s,n) and use that as a bound.
242 if strnlen returns a length beyond the end of the registered extent
247 this same logic applies to further uses of strnlen later down in this
253 src_sz = strnlen (src, n);
254 dest_sz = strnlen (dest, n);
293 s1_sz = strnlen (s1, n);
294 s2_sz = strnlen (s2, n);
306 s1_sz = strnlen (s
[all...]
H A Dmf-runtime.h126 #pragma redefine_extname strnlen __mfwrap_strnlen
/freebsd-11.0-release/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_fmemopen.c521 len = (off_t)strnlen(t->s, t->n);
582 len = (off_t)strnlen(t->s, t->n);
695 len = (off_t)strnlen(t->s, t->n);
839 len = strnlen(t->s, t->n);
892 len = strnlen(t->s, t->n);
1063 len = strnlen(t->s, t->n);
1119 len0 = strnlen(t0->s, t0->n);
1121 len1 = strnlen(t1->s, t1->n);
/freebsd-11.0-release/contrib/compiler-rt/lib/msan/
H A Dmsan_interceptors.cc292 INTERCEPTOR(SIZE_T, strnlen, const char *s, SIZE_T n) {
294 SIZE_T res = REAL(strnlen)(s, n);
313 SIZE_T copy_size = REAL(strnlen)(src, n);
362 // On FreeBSD strndup() leverages strnlen().
364 SIZE_T copy_size = REAL(strnlen)(src, n);
375 SIZE_T copy_size = REAL(strnlen)(src, n);
410 SIZE_T copy_size = REAL(strnlen)(src, n);
918 SIZE_T real_len = REAL(strnlen)(name, len);
1565 INTERCEPT_FUNCTION(strnlen);
/freebsd-11.0-release/contrib/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.h237 case LibFunc::stpcpy: case LibFunc::strlen: case LibFunc::strnlen:
/freebsd-11.0-release/sys/sys/
H A Dlibkern.h150 size_t strnlen(const char *, size_t);

Completed in 383 milliseconds

123