Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrdup.c39 strdup(const char *str) in strdup() function
/bionic/libc/bionic/
Dgetcwd.cpp72 buf = strdup(allocated_buf); in getcwd()
Dsystem_properties.cpp698 : next(next), context_(strdup(context)), pa_(pa), no_access_(false) { in context_node()
730 : prefix(strdup(prefix)), prefix_len(strlen(prefix)), context(context), next(next) { in prefix_node()
/bionic/tests/
Dlibgen_basename_test.cpp52 char* writable_in = (in != NULL) ? strdup(in) : NULL; in __TestPosixBasename()
Dlibgen_test.cpp23 char* writable_in = (in != NULL) ? strdup(in) : NULL; in TestDirname()
Dfortify_test.cpp177 char* src = strdup(""); in TEST_F()
193 char* src = strdup(""); in TEST_F()
209 char* src = strdup("1"); in TEST_F()
225 char* src = strdup("12"); in TEST_F()
364 char *orig = strdup("0123456789"); in TEST_F()
376 char *orig = strdup(""); in TEST_F()
388 char *orig = strdup("1"); in TEST_F()
400 char *orig = strdup("12"); in TEST_F()
Dsearch_test.cpp52 explicit node(const char* s) : s(strdup(s)) {} in node()
Dstring_test.cpp278 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()
Dgtest_main.cpp1000 args[0] = strdup(g_executable_path.c_str()); in AddPathSeparatorInTestProgramPath()
1076 args.push_back(strdup(gtest_filter_str.c_str())); in PickOptions()
1184 args.insert(args.begin() + 1, strdup("--no-isolate")); in PickOptions()
Dunistd_test.cpp330 char* s1 = strdup("a=b"); in TEST()
337 char* s2 = strdup("a=b"); in TEST()
357 old_environ.push_back(strdup(environ[i])); in TEST()
/bionic/tools/versioner/src/
DUtils.h33 std::unique_ptr<char, decltype(&free)> path_copy(strdup(path.c_str()), free); in dirname()
/bionic/libc/dns/resolv/
Dres_debug.c1105 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()
Dres_cache.c2006 cache_info->nameservers[i] = strdup(servers[i]); in _resolv_set_nameservers_for_net()
/bionic/libc/include/
Dstring.h92 char* strdup(const char* _Nonnull);
/bionic/libc/tools/
Dposix-2013.txt999 strdup
/bionic/libc/dns/net/
Dgetaddrinfo.c1047 hostname2 = strdup(hostname); in explore_numeric_scope()
1086 ai->ai_canonname = strdup(str); in get_canonname()
/bionic/libc/
Dlibc.mips64.map922 strdup;
Dlibc.x86_64.map922 strdup;
Dlibc.arm64.map922 strdup;
Dlibc.x86.map977 strdup;
Dlibc.mips.map979 strdup;
Dlibc.arm.map981 strdup;
Dlibc.map.txt1006 strdup;
DAndroid.bp486 "upstream-openbsd/lib/libc/string/strdup.c",