Home
last modified time | relevance | path

Searched refs:strndup (Results 1 – 25 of 92) sorted by relevance

1234

/external/bison/m4/
Dstrndup.m41 # strndup.m4 serial 21
9 dnl Persuade glibc <string.h> to declare strndup().
14 AC_CHECK_DECLS_ONCE([strndup])
15 AC_CHECK_FUNCS_ONCE([strndup])
23 AC_CACHE_CHECK([for working strndup], [gl_cv_func_strndup_works],
32 char *strndup (const char *, size_t);
35 s = strndup ("some longer string", 15);
37 s = strndup ("shorter string", 13);
/external/clang/test/Analysis/
Dmalloc-interprocedural.c105 char *strndup(const char *str, size_t n) { in strndup() function
126 (void)strndup(0, 20); // no-warning in useStrndup()
129 (void)strndup("hi there", n); // no-warning in useStrndup()
132 (void)strndup("hi there", n); in useStrndup()
Dtaint-generic.c25 char *strndup(const char *s, size_t n);
104 dup = strndup(s, 20); in testUncontrolledFormatString()
/external/bison/lib/
Dstring.in.h400 # undef strndup
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);
415 # undef strndup
417 _GL_WARN_ON_USE (strndup, "strndup is unportable - "
Dxstrndup.c32 char *s = strndup (string, n); in xstrndup()
Dstrndup.c26 strndup (char const *s, size_t n) in strndup() function
/external/mesa3d/src/util/
DMakefile.sources38 strndup.c \
39 strndup.h \
Dstrndup.h34 char *strndup(const char *str, size_t max);
Dstrndup.c30 strndup(const char *str, size_t max) in strndup() function
/external/bison/linux-lib/
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);
727 # undef strndup
729 _GL_WARN_ON_USE (strndup, "strndup is unportable - "
/external/bison/darwin-lib/
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);
727 # undef strndup
729 _GL_WARN_ON_USE (strndup, "strndup is unportable - "
/external/toybox/toys/pending/
Dmdev.c110 char *regex = strndup(pos, end2-pos); in make_device()
141 char *str = strndup(pos, s-pos); in make_device()
152 char *str = strndup(s, end2-s); in make_device()
/external/clang/test/SemaCXX/
Dwarn-memsize-comparison.cpp13 extern "C" char *strndup(const char *src, size_t n);
67 if (strndup(b1, sizeof(b1) != 0)) {} // \ in f()
71 if (strndup(b1, sizeof(b1)) != 0) {} in f()
Dwarn-memset-bad-sizeof.cpp130 extern "C" char *strndup(const char *src, unsigned n);
145 strndup(FOO, sizeof(FOO)); // \ in strcpy_and_friends()
/external/syslinux/gpxe/src/core/
Dstring.c338 char * strndup(const char *s, size_t n) in strndup() function
354 return strndup(s, ~((size_t)0)); in strdup()
/external/clang/test/Sema/
Dbuiltins-gnu-mode.c9 int strndup; variable
/external/llvm/test/Transforms/InstCombine/
Dobjsize.ll175 declare noalias i8* @strndup(i8* nocapture, i32) nounwind
188 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
197 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
206 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
215 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
/external/syslinux/com32/lib/
Dstrndup.c8 char *strndup(const char *s, size_t n) in strndup() function
/external/libmtp/src/
Dutil.h30 char *strndup (const char *s, size_t n);
Dutil.c138 char *strndup (const char *s, size_t n) in strndup() function
/external/strace/
Dxmalloc.c94 p = strndup(str, n); in xstrndup()
/external/syslinux/com32/include/
Dstring.h28 __extern char *strndup(const char *, size_t);
/external/libmojo/base/android/
Dbuild_info.cc76 java_exception_info_ = strndup(info.c_str(), 4096); in SetJavaExceptionInfo()
/external/minijail/
Dbpf.c260 begin->label = strndup(label, MAX_BPF_LABEL_LEN); in bpf_label_id()
279 begin->label = strndup(label, MAX_BPF_LABEL_LEN); in bpf_label_id()
/external/syslinux/gpxe/src/include/
Dstring.h47 char * __malloc strndup(const char *s, size_t n) __nonnull;

1234