Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrdup.c39 strdup(const char *str) in strdup() function
50 DEF_WEAK(strdup);
/bionic/libc/bionic/
Dgetcwd.cpp69 buf = strdup(allocated_buf); in getcwd()
Dspawn.cpp305 action->path = strdup(path); in posix_spawn_add_file_action()
/bionic/tests/
Dlibgen_basename_test.cpp52 char* writable_in = (in != nullptr) ? strdup(in) : nullptr; in __TestPosixBasename()
Dlibgen_test.cpp23 char* writable_in = (in != nullptr) ? strdup(in) : nullptr; in TestDirname()
Dfortify_test.cpp142 char* src = strdup(""); in TEST_F()
154 char* src = strdup(""); in TEST_F()
166 char* src = strdup("1"); in TEST_F()
178 char* src = strdup("12"); in TEST_F()
314 char *orig = strdup("0123456789"); in TEST_F()
326 char *orig = strdup(""); in TEST_F()
338 char *orig = strdup("1"); in TEST_F()
350 char *orig = strdup("12"); in TEST_F()
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()
Dsearch_test.cpp52 explicit node(const char* s) : s(strdup(s)) {} in node()
Dunistd_test.cpp329 char* s1 = strdup("a=b"); in TEST()
336 char* s2 = strdup("a=b"); in TEST()
356 old_environ.push_back(strdup(environ[i])); in TEST()
/bionic/tools/versioner/src/
DUtils.h35 std::unique_ptr<char, decltype(&free)> path_copy(strdup(path.c_str()), free); in dirname()
/bionic/tests/headers/posix/
Dstring_h.c53 FUNCTION(strdup, char* (*f)(const char*)); in string_h()
/bionic/libc/system_properties/
Dcontexts_split.cpp45 : ContextNode(strdup(context), filename), next(next) { in ContextListNode()
57 : prefix(strdup(prefix)), prefix_len(strlen(prefix)), context(context), next(next) { in PrefixNode()
/bionic/libc/include/
Dstring.h82 char* strdup(const char* __s);
/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.c2058 cache_info->nameservers[i] = strdup(servers[i]); in _resolv_set_nameservers_for_net()
/bionic/libc/tools/
Dposix-2013.txt999 strdup
/bionic/libc/dns/net/
Dgetaddrinfo.c1052 hostname2 = strdup(hostname); in explore_numeric_scope()
1091 ai->ai_canonname = strdup(str); in get_canonname()
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dglob.c879 copy = strdup(origpat); in globextend()
/bionic/tools/versioner/platforms/
Dlibc.map.txt1007 strdup;
/bionic/libc/
Dlibc.map.txt1007 strdup;
DAndroid.bp473 "upstream-openbsd/lib/libc/string/strdup.c",