Home
last modified time | relevance | path

Searched refs:strdup (Results 1 – 25 of 870) sorted by relevance

12345678910>>...35

/external/clang/test/Analysis/
Dpr22954.c10 char *strdup(const char *s);
25 a0.s2 = strdup("hello"); in f0()
39 a1.s2 = strdup("hello"); in f1()
53 a2.s2 = strdup("hello"); in f2()
67 a3.s2 = strdup("hello"); in f3()
91 b0.s2 = strdup("hello"); in f4()
92 b0.a.s2 = strdup("hola"); in f4()
113 a0.s2 = strdup("hello"); in f5()
121 a1.s2 = strdup("hello"); in f6()
129 a2.s2 = strdup("hello"); in f7()
[all …]
Dunions.cpp4 extern "C" char *strdup(const char *s);
65 uu.s = strdup(""); in test()
71 uu.s = strdup(""); in testPositive()
88 uu.s = strdup(""); in testInvalidation()
/external/libmtp/examples/
Dsendtr.c200 to_path_copy = strdup(to_path); in sendtrack_function()
292 trackmeta->title = strdup(ptitle); in sendtrack_function()
299 trackmeta->album = strdup(palbum); in sendtrack_function()
300 albuminfo->name = strdup(palbum); in sendtrack_function()
304 albuminfo->artist = strdup(palbumartist); in sendtrack_function()
308 trackmeta->artist = strdup(partist); in sendtrack_function()
310 albuminfo->artist = strdup(partist); in sendtrack_function()
314 trackmeta->composer = strdup(pcomposer); in sendtrack_function()
315 albuminfo->composer = strdup(pcomposer); in sendtrack_function()
319 trackmeta->genre = strdup(pgenre); in sendtrack_function()
[all …]
/external/curl/tests/unit/
Dunit1653.c55 ipv6port = strdup("[fe80::250:56ff:fea7:da15]");
69 ipv6port = strdup("[fe80::250:56ff:fea7:da15|");
80 ipv6port = strdup("[fe80::250:56ff;fea7:da15]:80");
92 ipv6port = strdup("[fe80::250:56ff:fea7:da15%25eth3]:80");
108 ipv6port = strdup("[fe80::250:56ff:fea7:da15%25eth3]");
120 ipv6port = strdup("[fe80::250:56ff:fea7:da15]:81");
136 ipv6port = strdup("[fe80::250:56ff:fea7:da15];81");
147 ipv6port = strdup("[fe80::250:56ff:fea7:da15]80");
159 ipv6port = strdup("[fe80::250:56ff:fea7:da15]:");
171 ipv6port = strdup("[fe80::250:56ff:fea7:da15%!25eth3]:80");
[all …]
Dunit1304.c32 password = strdup(""); in unit_setup()
33 login = strdup(""); in unit_setup()
71 login = strdup("me");
88 login = strdup("me");
104 login = strdup("admi");
122 login = strdup("adminn");
140 login = strdup("");
158 password = strdup("");
176 password = strdup("");
179 login = strdup("");
[all …]
/external/selinux/libselinux/src/
Dsetrans_client.c302 *rawp = strdup(trans); in selinux_trans_to_raw_context()
307 *rawp = strdup(prev_t2r_raw); in selinux_trans_to_raw_context()
314 *rawp = strdup(trans); in selinux_trans_to_raw_context()
316 prev_t2r_trans = strdup(trans); in selinux_trans_to_raw_context()
319 prev_t2r_raw = strdup(*rawp); in selinux_trans_to_raw_context()
344 *transp = strdup(raw); in hidden_def()
349 *transp = strdup(prev_r2t_trans); in hidden_def()
356 *transp = strdup(raw); in hidden_def()
358 prev_r2t_raw = strdup(raw); in hidden_def()
361 prev_r2t_trans = strdup(*transp); in hidden_def()
[all …]
Dseusers.c19 char *newbuf = strdup(buffer); in process_seusers()
39 luser = strdup(start); in process_seusers()
54 seuser = strdup(start); in process_seusers()
70 level = strdup(start); in process_seusers()
261 *r_seuser = strdup(name); in getseuserbyname()
288 rec = strdup(buffer); in getseuser()
297 rec = strdup(buffer); in getseuser()
311 *r_seuser = strdup(seuser); in getseuser()
318 *r_level = strdup(level); in getseuser()
Dquery_user_context.c57 *usercon = strdup(list[choice]); in query_user_context()
63 *usercon = strdup(list[0]); in query_user_context()
67 *usercon = strdup(list[0]); in query_user_context()
175 *newcon = strdup(user_context); in manual_user_enter_context()
/external/selinux/libsemanage/src/
Dconf-parse.y223 current_conf->ignoredirs = strdup($3);
341 conf->store_path = strdup(basename(selinux_policy_root()));
343 conf->store_root_path = strdup("/var/lib/selinux");
344 conf->compiler_directory_path = strdup("/usr/libexec/selinux/hll");
365 conf->load_policy->path = strdup("/sbin/load_policy");
367 conf->load_policy->path = strdup("/usr/sbin/load_policy");
379 conf->setfiles->path = strdup("/sbin/setfiles");
381 conf->setfiles->path = strdup("/usr/sbin/setfiles");
384 (conf->setfiles->args = strdup("-q -c $@ $<")) == NULL) {
393 conf->sefcontext_compile->path = strdup("/sbin/sefcontext_compile");
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/
DTargetMachineC.cpp75 *ErrorMessage = strdup(Error.c_str()); in LLVMGetTargetFromTriple()
155 return strdup(StringRep.c_str()); in LLVMGetTargetMachineTriple()
160 return strdup(StringRep.c_str()); in LLVMGetTargetMachineCPU()
165 return strdup(StringRep.c_str()); in LLVMGetTargetMachineFeatureString()
201 *ErrorMessage = strdup(error.c_str()); in LLVMTargetMachineEmit()
216 *ErrorMessage = strdup(EC.message().c_str()); in LLVMTargetMachineEmitToFile()
238 return strdup(sys::getDefaultTargetTriple().c_str()); in LLVMGetDefaultTargetTriple()
242 return strdup(Triple::normalize(StringRef(triple)).c_str()); in LLVMNormalizeTargetTriple()
246 return strdup(sys::getHostCPUName().data()); in LLVMGetHostCPUName()
257 return strdup(Features.getString().c_str()); in LLVMGetHostCPUFeatures()
/external/kmod/testsuite/
Dtest-util.c106 _cleanup_free_ char *s = strdup("this is a test string"); in test_strchr_replace()
125 { strdup("aa-bb-cc_"), "aa_bb_cc_" }, in test_underscores()
126 { strdup("-aa-bb-cc-"), "_aa_bb_cc_" }, in test_underscores()
127 { strdup("-aa[-bb-]cc-"), "_aa[-bb-]cc_" }, in test_underscores()
128 { strdup("-aa-[bb]-cc-"), "_aa_[bb]_cc_" }, in test_underscores()
129 { strdup("-aa-[b-b]-cc-"), "_aa_[b-b]_cc_" }, in test_underscores()
130 { strdup("-aa-b[-]b-cc"), "_aa_b[-]b_cc" }, in test_underscores()
/external/ltp/testcases/lib/
Dtst_net_vars.c165 return strdup(buf); in get_ipv4_netmask()
192 return strdup(buf); in get_ipv6_netmask()
211 return strdup(buf); in get_ipv4_broadcast()
235 return strdup(net_unused); in get_ipv4_net16_unused()
247 return strdup(net_unused); in get_ipv4_net16_unused()
257 return strdup(net_unused); in get_ipv4_net16_unused()
299 return strdup(net_unused); in get_ipv6_net32_unused()
312 return strdup(net_unused); in get_ipv6_net32_unused()
323 return strdup(net_unused); in get_ipv6_net32_unused()
347 return strdup("\0"); in get_ipv6_network()
[all …]
/external/mdnsresponder/mDNSShared/
Ddnsextd_lexer.l42 dup = strdup( string + 1); in StripQuotes()
75 \* yylval.string = strdup(yytext); return WILDCARD;
76 [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ yylval.string = strdup(yytext); return DOTTED_DECIMAL_ADDRESS;
78 [a-zA-Z0-9]+(\.[a-zA-Z0-9]+)* yylval.string = strdup(yytext); return HOSTNAME;
79 [a-zA-Z0-9\.]+([a-zA-Z0-9\.]+)* yylval.string = strdup(yytext); return DOMAINNAME;
/external/selinux/libsepol/src/
Dcontext_record.c38 char *tmp_user = strdup(user); in hidden_def()
65 char *tmp_role = strdup(role); in hidden_def()
91 char *tmp_type = strdup(type); in hidden_def()
117 char *tmp_mls = strdup(mls); in hidden_def()
167 if (!(new_con->user = strdup(con->user))) in hidden_def()
170 if (!(new_con->role = strdup(con->role))) in hidden_def()
173 if (!(new_con->type = strdup(con->type))) in hidden_def()
176 if (con->mls && !(new_con->mls = strdup(con->mls))) in hidden_def()
225 tmp = strdup(str); in hidden_def()
/external/llvm/lib/Target/
DTargetMachineC.cpp76 *ErrorMessage = strdup(Error.c_str()); in LLVMGetTargetFromTriple()
155 return strdup(StringRep.c_str()); in LLVMGetTargetMachineTriple()
160 return strdup(StringRep.c_str()); in LLVMGetTargetMachineCPU()
165 return strdup(StringRep.c_str()); in LLVMGetTargetMachineFeatureString()
201 *ErrorMessage = strdup(error.c_str()); in LLVMTargetMachineEmit()
216 *ErrorMessage = strdup(EC.message().c_str()); in LLVMTargetMachineEmitToFile()
238 return strdup(sys::getDefaultTargetTriple().c_str()); in LLVMGetDefaultTargetTriple()
/external/selinux/semodule-utils/semodule_package/
Dsemodule_package.c128 module = strdup(optarg); in main()
138 file_contexts = strdup(optarg); in main()
148 outfile = strdup(optarg); in main()
158 seusers = strdup(optarg); in main()
168 user_extra = strdup(optarg); in main()
178 netfilter_contexts = strdup(optarg); in main()
/external/ipsec-tools/src/racoon/
Dsainfo.c95 dloc = strdup("ANONYMOUS");
100 drmt = strdup("ANONYMOUS");
105 dpeer = strdup("NULL");
280 idloc = strdup("ANONYMOUS");
285 idrmt = strdup("ANONYMOUS");
290 id_i = strdup("ANY");
/external/libnl/lib/route/cls/
Dematch_syntax.y56 *errp = strdup(msg);
191 *errp = strdup("Unable to allocate ematch object");
206 *errp = strdup("Unable to allocate ematch object");
224 *errp = strdup("Unable to allocate ematch object");
251 *errp = strdup("Unable to allocate ematch object");
270 *errp = strdup("Unable to allocate ematch object");
452 *errp = strdup("mask only allowed for alignments u8|u16|u32");
457 *errp = strdup("Unable to allocate packet location object");
461 loc->name = strdup("<USER-DEFINED>");
/external/bcc/src/cc/
Dbcc_proc.c47 return bcc_elf_is_exe(binpath) ? strdup(binpath) : 0; in bcc_procutils_which()
63 return strdup(buffer); in bcc_procutils_which()
235 lib_cache[i].libname = strdup(key); in read_cache1()
236 lib_cache[i].path = strdup(val); in read_cache1()
258 lib_cache[i].libname = strdup(key); in read_cache2()
259 lib_cache[i].path = strdup(val); in read_cache2()
380 return strdup(libname); in bcc_procutils_which_so()
383 return strdup(libpath); in bcc_procutils_which_so()
398 return strdup(lib_cache[i].path); in bcc_procutils_which_so()
/external/tcpdump/
Daddrtoname.c259 p->name = strdup(hp->h_name); in getname()
272 p->name = strdup(intoa(addr)); in getname()
314 p->name = strdup(hp->h_name); in getname6()
328 p->name = strdup(cp); in getname6()
508 tp->e_name = strdup(buf2); in etheraddr_string()
531 tp->e_name = strdup(buf); in etheraddr_string()
560 tp->bs_name = strdup(buf); in le64addr_string()
624 tp->name = strdup(buf); in etherproto_string()
653 tp->p_name = strdup(buf); in protoid_string()
706 tp->name = strdup(buf); in tcpport_string()
[all …]
/external/e2fsprogs/intl/
Dbindtextdom.c81 # ifndef strdup in __libc_rwlock_define()
82 # define strdup(str) __strdup (str) in __libc_rwlock_define() macro
152 result = strdup (dirname); in __libc_rwlock_define()
190 result = strdup (codeset); in __libc_rwlock_define()
247 result = strdup (dirname); in __libc_rwlock_define()
278 result = strdup (codeset); in __libc_rwlock_define()
/external/adhd/cras/src/server/
Dcras_alsa_ucm_section.c55 section->name = strdup(name); in ucm_section_create()
60 section->jack_name = strdup(jack_name); in ucm_section_create()
65 section->jack_type = strdup(jack_type); in ucm_section_create()
89 section->mixer_name = strdup(name); in ucm_section_set_mixer_name()
/external/clang/test/SemaCXX/
D__try.cpp10 const char * strdup(const char *);
19 Exception(const char* s = "Unknown"){what = strdup(s); } in Exception()
20 Exception(const Exception& e ){what = strdup(e.what); } in Exception()
/external/adhd/cras/src/tests/
Dcras_monitor.c96 return strdup("none"); in node_name_for_node_id()
98 return strdup("fallback"); in node_name_for_node_id()
102 return strdup(buf); in node_name_for_node_id()
110 return strdup("unknown"); in node_name_for_node_id()
118 return strdup(buf); in node_name_for_node_id()
129 return strdup(buf); in node_name_for_node_id()
/external/selinux/policycoreutils/secon/
Dsecon.c367 if (*ptr && !(*con = strdup(ptr))) in my_getXcon_raw()
395 if (!(con_tmp = strdup(opts->f.arg))) in get_scon()
418 if (!(con_tmp = strdup(ptr))) in get_scon()
443 con = strdup(dummy_NIL); in get_scon()
453 con = strdup(dummy_NIL); in get_scon()
463 con = strdup(dummy_NIL); in get_scon()
483 con = strdup(dummy_NIL); in get_scon()
494 con = strdup(dummy_NIL); in get_scon()
510 con = strdup(dummy_NIL); in get_scon()
708 tmp = strdup(val); in disp_con()
[all …]

12345678910>>...35