Searched refs:strdup (Results 1 – 25 of 40) sorted by relevance
12
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | strdup.c | 39 strdup(const char *str) in strdup() function 50 DEF_WEAK(strdup);
|
/bionic/tests/ |
D | fortify_test.cpp | 134 char* src = strdup(""); in TEST_F() 146 char* src = strdup(""); in TEST_F() 158 char* src = strdup("1"); in TEST_F() 170 char* src = strdup("12"); in TEST_F() 306 char *orig = strdup("0123456789"); in TEST_F() 318 char *orig = strdup(""); in TEST_F() 330 char *orig = strdup("1"); in TEST_F() 342 char *orig = strdup("12"); in TEST_F()
|
D | libgen_basename_test.cpp | 52 char* writable_in = (in != nullptr) ? strdup(in) : nullptr; in __TestPosixBasename()
|
D | threads_test.cpp | 475 ASSERT_EQ(thrd_success, tss_set(key, strdup("hello"))); in TEST() 477 ASSERT_EQ(thrd_success, tss_set(key, strdup("world"))); in TEST() 485 ASSERT_EQ(thrd_success, tss_set(key, strdup("hello"))); in TEST()
|
D | libgen_test.cpp | 23 char* writable_in = (in != nullptr) ? strdup(in) : nullptr; in TestDirname()
|
D | string_test.cpp | 278 char* orig = strdup(""); in TEST() 287 char* orig = strdup("12345"); in TEST() 301 char* orig = strdup("123456789"); in TEST() 311 char* orig = strdup(""); in TEST() 320 char* orig = strdup("12345"); in TEST() 334 char* orig = strdup("123456789"); in TEST()
|
D | search_test.cpp | 52 explicit node(const char* s) : s(strdup(s)) {} in node()
|
D | unistd_test.cpp | 338 char* s1 = strdup("a=b"); in TEST() 345 char* s2 = strdup("a=b"); in TEST() 365 old_environ.push_back(strdup(environ[i])); in TEST()
|
/bionic/libc/bionic/ |
D | getcwd.cpp | 69 buf = strdup(allocated_buf); in getcwd()
|
D | realpath.cpp | 77 return result ? strcpy(result, dst) : strdup(dst); in realpath()
|
D | spawn.cpp | 305 action->path = strdup(path); in posix_spawn_add_file_action()
|
/bionic/libc/system_properties/ |
D | contexts_split.cpp | 45 : ContextNode(strdup(context), filename), next(next) { in ContextListNode() 57 : prefix(strdup(prefix)), prefix_len(strlen(prefix)), context(context), next(next) { in PrefixNode()
|
/bionic/tools/versioner/src/ |
D | Utils.h | 35 std::unique_ptr<char, decltype(&free)> path_copy(strdup(path.c_str()), free); in dirname()
|
/bionic/tests/headers/posix/ |
D | string_h.c | 53 FUNCTION(strdup, char* (*f)(const char*)); in string_h()
|
/bionic/libc/dns/resolv/ |
D | res_debug.c | 1105 sizestr = strdup(precsize_ntoa((u_int32_t)sizeval)); in loc_ntoa() 1106 hpstr = strdup(precsize_ntoa((u_int32_t)hpval)); in loc_ntoa() 1107 vpstr = strdup(precsize_ntoa((u_int32_t)vpval)); in loc_ntoa()
|
/bionic/libc/include/ |
D | string.h | 82 char* strdup(const char* __s);
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
D | gethex.c | 60 decimalpoint_cache = strdup(s0);
|
D | strtod.c | 117 decimalpoint_cache = strdup(s0);
|
/bionic/benchmarks/linker_relocation/gen/ |
D | liblinker_reloc_bench_024.S | 329 CALL(strdup)
|
D | liblinker_reloc_bench_008.S | 358 CALL(strdup)
|
D | liblinker_reloc_bench_076.S | 248 CALL(strdup)
|
D | liblinker_reloc_bench_021.S | 384 CALL(strdup)
|
D | liblinker_reloc_bench_006.S | 620 CALL(strdup)
|
/bionic/libc/tools/ |
D | posix-2013.txt | 999 strdup
|
/bionic/libc/dns/net/ |
D | getaddrinfo.c | 1052 hostname2 = strdup(hostname); in explore_numeric_scope() 1091 ai->ai_canonname = strdup(str); in get_canonname()
|
12