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

12

/haiku-buildtools/gcc/libiberty/
H A Dstrnlen.c1 /* Portable version of strnlen.
6 @deftypefn Supplemental size_t strnlen (const char *@var{s}, size_t @var{maxlen})
22 strnlen (const char *s, size_t maxlen) function
H A DMakefile.in155 strtoll.c strtoul.c strtoull.c strndup.c strnlen.c \
222 ./strncmp.$(objext) ./strndup.$(objext) ./strnlen.$(objext) \
1423 ./strnlen.$(objext): $(srcdir)/strnlen.c config.h
1425 $(COMPILE.c) $(PICFLAG) $(srcdir)/strnlen.c -o pic/$@; \
1428 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strnlen.c -o noasan/$@; \
1430 $(COMPILE.c) $(srcdir)/strnlen.c $(OUTPUT_OPTION)
/haiku-buildtools/binutils/libiberty/
H A Dstrnlen.c1 /* Portable version of strnlen.
6 @deftypefn Supplemental size_t strnlen (const char *@var{s}, size_t @var{maxlen})
22 strnlen (const char *s, size_t maxlen) function
H A DMakefile.in157 strtoll.c strtoul.c strtoull.c strndup.c strnlen.c \
225 ./strncmp.$(objext) ./strndup.$(objext) ./strnlen.$(objext) \
1435 ./strnlen.$(objext): $(srcdir)/strnlen.c config.h
1437 $(COMPILE.c) $(PICFLAG) $(srcdir)/strnlen.c -o pic/$@; \
1440 $(COMPILE.c) $(PICFLAG) $(NOASANFLAG) $(srcdir)/strnlen.c -o noasan/$@; \
1442 $(COMPILE.c) $(srcdir)/strnlen.c $(OUTPUT_OPTION)
/haiku-buildtools/gcc/libsanitizer/libbacktrace/
H A Dbacktrace-rename.h54 #undef strnlen macro
63 #define strnlen(x,y) __asan_internal_strnlen (x, y) macro
/haiku-buildtools/gcc/libsanitizer/asan/
H A Dasan_interceptors.h87 DECLARE_REAL(uptr, strnlen, const char *s, uptr maxlen)
H A Dasan_interceptors.cc77 if (REAL(strnlen) != 0) {
78 return REAL(strnlen)(s, maxlen);
557 INTERCEPTOR(uptr, strnlen, const char *s, uptr maxlen) {
559 uptr length = REAL(strnlen)(s, maxlen);
756 ASAN_INTERCEPT_FUNC(strnlen);
H A Dasan_win_dll_thunk.cc349 INTERCEPT_LIBRARY_FUNCTION(strnlen); variable
/haiku-buildtools/gcc/gcc/common/config/aarch64/
H A Daarch64-common.c112 feat_size = feats ? strnlen (feats, AARCH64_CPU_NAME_LENGTH) : 0;
/haiku-buildtools/gcc/gmp/printf/
H A Drepl-vsnprintf.c30 #define _GNU_SOURCE /* for strnlen prototype */
64 /* Autoconf notes that AIX 4.3 has a broken strnlen, but fortunately it
69 strnlen (const char *s, size_t n) function
293 prec = (seen_prec ? strnlen (s, prec) : strlen (s));
/haiku-buildtools/binutils/binutils/
H A Dsysdep.h117 size_t strnlen (const char *, size_t);
H A Ddwarf.c477 data += strnlen ((char *) data, end - data) + 1;
1670 data += strnlen ((char *) data, end - data) + 1;
2937 data += strnlen ((char *) data, end - data) + 1;
2964 data += strnlen ((char *) data, end - data) + 1;
3271 data += strnlen ((char *) data, end - data) + 1;
3291 ptr_directory_table += strnlen ((char *) ptr_directory_table,
3310 data += strnlen ((char *) data, end - data) + 1;
3337 ptr_file_name_table += strnlen ((char *) ptr_file_name_table,
3908 data += strnlen ((char *) data, maxprint) + 1;
3976 curr += strnlen ((cha
[all...]
H A Dreadelf.c12640 data += strnlen ((const char *) data, maxlen);
13146 p += strnlen ((char *) p, maxlen) + 1;
13386 p += strnlen ((char *) p, maxlen) + 1;
13481 p += strnlen ((char *) p, maxlen) + 1;
14063 p += strnlen ((char *) p, maxlen) + 1;
14082 p += strnlen ((char *) p, maxlen) + 1;
14206 p += strnlen ((char *) p, maxlen) + 1;
14293 namelen = strnlen ((char *) p, attr_len) + 1;
16927 l += strnlen (arch.sym_table + l, arch.sym_size - l) + 1;
/haiku-buildtools/gcc/libmpx/mpxwrap/
H A Dmpx_wrappers.c179 size_t src_size = strnlen (src, n);
222 size_t src_size = strnlen (src, n);
260 size_t src_size = strnlen (src, n);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/asan/
H A Dasan_str_test.cc82 // Normal strnlen calls.
83 Ident(strnlen(str - 1, 0));
84 Ident(strnlen(str, size));
85 Ident(strnlen(str + size - 1, 1));
87 Ident(strnlen(str, 2 * size));
89 EXPECT_DEATH(Ident(strnlen(str - 1, 1)), LeftOOBReadMessage(1));
90 EXPECT_DEATH(Ident(strnlen(str + size, 1)), RightOOBReadMessage(0));
93 EXPECT_DEATH(Ident(strnlen(str, size + 1)), RightOOBReadMessage(0));
/haiku-buildtools/binutils/bfd/
H A Dsysdep.h174 size_t strnlen (const char *, size_t);
H A Dopncls.c1202 crc_offset = strnlen (name, bfd_get_section_size (sect)) + 1;
1258 buildid_offset = strnlen (name, bfd_get_section_size (sect)) + 1;
H A Delf-attrs.c472 namelen = strnlen ((char *) p, section_len) + 1;
H A Dpeicode.h1274 /* See PR 20905 for an example of where the strnlen is necessary. */
1275 source_dll = symbol_name + strnlen (symbol_name, size - 1) + 1;
H A Darchive.c1084 len = strnlen (stringbase, stringsize);
/haiku-buildtools/gcc/include/
H A Dlibiberty.h659 extern size_t strnlen (const char *, size_t);
/haiku-buildtools/binutils/include/
H A Dlibiberty.h670 extern size_t strnlen (const char *, size_t);
/haiku-buildtools/gcc/libbacktrace/
H A Ddwarf.c48 /* If strnlen is not declared, provide our own version. */
61 #define strnlen xstrnlen macro
694 return advance (buf, strnlen ((const char *) buf->buf, buf->left) + 1);
1626 p += strnlen((const char *) p, pend - p) + 1;
1646 strnlen ((const char *) hdr_buf.buf, hdr_buf.left) + 1))
1658 p += strnlen ((const char *) p, pend - p) + 1;
1683 strnlen ((const char *) hdr_buf.buf, hdr_buf.left) + 1))
1803 if (!advance (line_buf, strnlen (f, line_buf->left) + 1))
/haiku-buildtools/gcc/gcc/
H A Dlto-cgraph.c1089 unsigned int len = strnlen (ib->data + ib->p, ib->len - ib->p - 1);
1109 unsigned int len = strnlen (ib->data + ib->p, ib->len - ib->p - 1);
/haiku-buildtools/gcc/gcc/testsuite/gcc.target/arm/
H A Dpr59896.c412 size_t strnlen (const char *, size_t);

Completed in 277 milliseconds

12