Searched refs:strndup (Results 1 - 25 of 34) sorted by relevance

12

/external/bison/lib/
H A Dxstrndup.c32 char *s = strndup (string, n);
H A Dstrndup.c1 /* A replacement function, for systems that lack strndup.
26 strndup (char const *s, size_t n) function
H A Dstring.in.h400 # undef strndup macro
401 # define strndup rpl_strndup macro
403 _GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n)
405 _GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n));
408 _GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n)
411 _GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n));
413 _GL_CXXALIASWARN (strndup); variable
415 # undef strndup macro
417 _GL_WARN_ON_USE (strndup, "strndup i
[all...]
/external/clang/test/Sema/
H A Dbuiltins-gnu-mode.c9 int strndup; variable
/external/linux-tools-perf/perf-3.12.0/tools/perf/host-darwin-fixup/
H A DAndroidFixup.h30 #define strndup(str, size) strdup(str) macro
/external/clang/test/Analysis/
H A Dmalloc-interprocedural.c105 char *strndup(const char *str, size_t n) { function
126 (void)strndup(0, 20); // no-warning
129 (void)strndup("hi there", n); // no-warning
132 (void)strndup("hi there", n);
H A Dtaint-generic.c25 char *strndup(const char *s, size_t n);
104 dup = strndup(s, 20);
H A Dmalloc.c15 char *strndup(const char *s, size_t n);
255 char *y = strndup(x, 4); // expected-warning{{Use of memory after it is freed}}
937 char *s2 = strndup(s, size);
/external/chromium_org/base/android/
H A Dbuild_info.cc73 java_exception_info_ = strndup(info.c_str(), 4096);
/external/elfutils/0.153/host-darwin-fixup/
H A DAndroidFixup.h91 #define strndup(str, size) strdup(str) macro
/external/clang/test/SemaCXX/
H A Dwarn-memset-bad-sizeof.cpp128 extern "C" char *strndup(const char *src, unsigned n);
143 strndup(FOO, sizeof(FOO)); // \
144 // expected-warning {{'strndup' call operates on objects of type 'const char' while the size is based on a different type 'const char *'}} expected-note{{did you mean to provide an explicit length?}}
H A Dwarn-memsize-comparison.cpp13 extern "C" char *strndup(const char *src, size_t n);
67 if (strndup(b1, sizeof(b1) != 0)) {} // \
68 expected-warning{{size argument in 'strndup' call is a comparison}} \
71 if (strndup(b1, sizeof(b1)) != 0) {}
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dcgroup.c161 s = strndup(str, e - str);
H A Dexec_cmd.c37 argv0_path = strndup(argv0, slash - argv0);
H A Dpath.c156 return strndup(path, chomp_trailing_dir_sep(path, path_len));
H A Dstrfilter.c133 cur->r->p = strndup(s, e - s);
H A Dstring.c171 t = strndup(p, str-p);
H A Dprobe-event.c948 arg->name = strndup(str, tmp - str);
975 arg->var = strndup(str, tmp - str);
1013 (*fieldp)->name = strndup(str, tmp - str);
1148 tp->module = strndup(argv[1], p - argv[1]);
/external/bison/darwin-lib/
H A Dstring.h712 # undef strndup
713 # define strndup rpl_strndup
715 _GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n)
717 _GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n));
720 _GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n)
723 _GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n));
725 _GL_CXXALIASWARN (strndup); variable
727 # undef strndup macro
729 _GL_WARN_ON_USE (strndup, "strndup i
[all...]
/external/bison/linux-lib/
H A Dstring.h712 # undef strndup
713 # define strndup rpl_strndup
715 _GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n)
717 _GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n));
720 _GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n)
723 _GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n));
725 _GL_CXXALIASWARN (strndup); variable
727 # undef strndup macro
729 _GL_WARN_ON_USE (strndup, "strndup i
[all...]
/external/bison/
H A DAndroid.mk124 lib/strndup.c \
/external/elfutils/0.153/libdwfl/
H A Dfind-debuginfo.c194 : strndup (file_name, file_basename - 1 - file_name));
/external/iproute2/misc/
H A Dlnstat_util.c304 file = strndup(name, colon-name);
/external/llvm/include/llvm/Target/
H A DTargetLibraryInfo.h587 /// char *strndup(const char *s1, size_t n);
588 strndup, enumerator in enum:llvm::LibFunc::Func
/external/compiler-rt/lib/msan/
H A Dmsan_interceptors.cc296 INTERCEPTOR(char *, strndup, char *src, SIZE_T n) {
300 char *res = REAL(strndup)(src, n);
1509 INTERCEPT_FUNCTION(strndup);

Completed in 837 milliseconds

12