Searched refs:strdup (Results 1 – 21 of 21) sorted by relevance
39 strdup(const char *str) in strdup() function50 DEF_WEAK(strdup);
69 buf = strdup(allocated_buf); in getcwd()
305 action->path = strdup(path); in posix_spawn_add_file_action()
52 char* writable_in = (in != nullptr) ? strdup(in) : nullptr; in __TestPosixBasename()
23 char* writable_in = (in != nullptr) ? strdup(in) : nullptr; in TestDirname()
142 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()
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()
52 explicit node(const char* s) : s(strdup(s)) {} in node()
329 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()
35 std::unique_ptr<char, decltype(&free)> path_copy(strdup(path.c_str()), free); in dirname()
53 FUNCTION(strdup, char* (*f)(const char*)); in string_h()
45 : ContextNode(strdup(context), filename), next(next) { in ContextListNode()57 : prefix(strdup(prefix)), prefix_len(strlen(prefix)), context(context), next(next) { in PrefixNode()
82 char* strdup(const char* __s);
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()
2058 cache_info->nameservers[i] = strdup(servers[i]); in _resolv_set_nameservers_for_net()
999 strdup
1052 hostname2 = strdup(hostname); in explore_numeric_scope()1091 ai->ai_canonname = strdup(str); in get_canonname()
879 copy = strdup(origpat); in globextend()
1007 strdup;
473 "upstream-openbsd/lib/libc/string/strdup.c",