Home
last modified time | relevance | path

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

1234

/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/igt-gpu-tools/tools/
Dintel_opregion_decode.c155 s = strndup(header->sign, sizeof(header->sign)); in decode_header()
162 s = strndup(header->sver, sizeof(header->sver)); in decode_header()
166 s = strndup(header->vver, sizeof(header->vver)); in decode_header()
170 s = strndup(header->gver, sizeof(header->gver)); in decode_header()
179 s = strndup(header->dver, sizeof(header->dver)); in decode_header()
327 s = strndup(vbt->product_string, sizeof(vbt->product_string)); in decode_vbt()
/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/blktrace/iowatcher/
Dmpstat.c158 line = strndup(cur, cpu - cur); in count_mpstat_cpus()
169 cur = strndup(record, len); in count_mpstat_cpus()
194 tmp = strndup(trace_name, cur - trace_name); in guess_filename()
Dfio.c59 tmp = strndup(cur, end - cur); in parse_fio_line()
/external/toybox/toys/pending/
Dmdev.c117 char *regex = strndup(pos, end2-pos); in make_device()
148 char *str = strndup(pos, s-pos); in make_device()
159 char *str = strndup(s, end2-s); in make_device()
/external/libxkbcommon/xkbcommon/src/compose/
Dpaths.c119 match = strndup(right, right_len); in resolve_name()
125 match = strndup(left, left_len); in resolve_name()
/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/mesa3d/src/util/
Dstrndup.h37 strndup(const char *str, size_t max) in strndup() function
DMakefile.sources101 strndup.h \
/external/libepoxy/test/
Degl_has_extension_nocontext.c61 an_extension = strndup(extensions, first_space - extensions); in main()
Degl_epoxy_api.c134 an_extension = strndup(extensions, first_space - extensions); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dobjsize.ll177 declare noalias i8* @strndup(i8* nocapture, i32) nounwind
190 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
199 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
208 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
217 …%call = tail call i8* @strndup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0…
/external/u-boot/include/linux/
Dstring.h97 extern char * strndup(const char *, size_t);
/external/strace/
Dxmalloc.c137 p = strndup(str, n); in xstrndup()
/external/minijail/
Dbpf.c350 begin->label = strndup(label, MAX_BPF_LABEL_LEN); in bpf_label_id()
369 begin->label = strndup(label, MAX_BPF_LABEL_LEN); in bpf_label_id()
/external/selinux/libselinux/src/
Dlabel_support.c47 *entry = strndup(tmp_buf, *len); in read_spec_entry()
/external/libxkbcommon/xkbcommon/src/
Datom.c212 node.string = strndup(string, len); in atom_intern()
/external/libxkbcommon/xkbcommon/src/x11/
Dutil.c146 *out = strndup(name, length); in get_atom_name()
/external/ltp/lib/
Dtst_kconfig.c157 result->value = strndup(val+1, strlen(val)-2); in match()
/external/mesa3d/src/compiler/glsl/
Dlower_xfb_varying.cpp131 return strndup(name, name_size); in get_field_name()
/external/selinux/libsepol/src/
Dutil.c226 *str = strndup(tmp_buf, *len); in tokenize_str()

1234