Home
last modified time | relevance | path

Searched refs:strndup (Results 1 – 25 of 93) 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/libxcam/xcore/
Danalyzer_loader.cpp30 _path = strndup (lib_path, XCAM_MAX_STR_SIZE); in AnalyzerLoader()
32 _symbol = strndup (symbol, XCAM_MAX_STR_SIZE); in AnalyzerLoader()
Dworker.cpp30 _name = strndup (name, XCAM_MAX_STR_SIZE); in Worker()
49 _name = strndup (name, XCAM_MAX_STR_SIZE); in set_name()
Dimage_handler.cpp29 _name = strndup (name, XCAM_MAX_STR_SIZE); in ImageHandler()
Dxcam_thread.cpp34 _name = strndup (name, XCAM_MAX_STR_SIZE); in Thread()
Dfile_handle.cpp69 _file_name = strndup (name, 512); in open()
/external/libxcam/modules/isp/
Dx3a_analyzer_aiq.cpp43 : _name (strndup(name, XCAM_MAX_STR_SIZE)) in CpfReader()
75 _cpf_path = strndup (cpf_path, XCAM_MAX_STR_SIZE); in X3aAnalyzerAiq()
91 _cpf_path = strndup (cpf_path, XCAM_MAX_STR_SIZE); in X3aAnalyzerAiq()
/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/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()
/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/libxkbcommon/xkbcommon/src/compose/
Dpaths.c119 match = strndup(right, right_len); in resolve_name()
125 match = strndup(left, left_len); in resolve_name()
/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/clang/test/Sema/
Dbuiltins-gnu-mode.c9 int strndup; variable
/external/mesa3d/src/util/
Dstrndup.h37 strndup(const char *str, size_t max) in strndup() function
DMakefile.sources46 strndup.h \
/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/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/libxcam/modules/isp/iq/
Dx3a_ciq_tuning_handler.cpp33 _name = strndup (name, XCAM_MAX_STR_SIZE); in X3aCiqTuningHandler()
/external/libxcam/wrapper/gstreamer/
Dgstxcamsrc.cpp594 xcamsrc->path_to_cpf = strndup(DEFAULT_CPF_FILE_NAME, XCAM_MAX_STR_SIZE); in gst_xcam_src_init()
595 xcamsrc->path_to_3alib = strndup(DEFAULT_DYNAMIC_3A_LIB, XCAM_MAX_STR_SIZE); in gst_xcam_src_init()
749 src->device = strndup (device, XCAM_MAX_STR_SIZE); in gst_xcam_src_set_property()
784 src->path_to_fake = strndup (raw_path, XCAM_MAX_STR_SIZE); in gst_xcam_src_set_property()
818 src->path_to_cpf = strndup (cpf, XCAM_MAX_STR_SIZE); in gst_xcam_src_set_property()
827 src->path_to_3alib = strndup (path, XCAM_MAX_STR_SIZE); in gst_xcam_src_set_property()
928 xcamsrc->device = strndup (CAPTURE_DEVICE_STILL, XCAM_MAX_STR_SIZE); in gst_xcam_src_start()
930 xcamsrc->device = strndup (CAPTURE_DEVICE_VIDEO, XCAM_MAX_STR_SIZE); in gst_xcam_src_start()
/external/strace/
Dxmalloc.c137 p = strndup(str, n); in xstrndup()
/external/libxcam/tests/
Dtest-binary-kernel.cpp77 kernel_name = strndup (optarg, 1024); in main()
/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()

1234