Searched refs:cwd (Results 1 – 5 of 5) sorted by relevance
19 xrealloc_getcwd_or_warn(char *cwd) in xrealloc_getcwd_or_warn() argument30 cwd = xrealloc(cwd, path_max); in xrealloc_getcwd_or_warn()31 ret = getcwd(cwd, path_max); in xrealloc_getcwd_or_warn()35 free(cwd); in xrealloc_getcwd_or_warn()39 cwd = xrealloc(cwd, strlen(cwd) + 1); in xrealloc_getcwd_or_warn()40 return cwd; in xrealloc_getcwd_or_warn()
160 char *cwd = xrealloc_getcwd_or_warn(NULL); in xmalloc_realpath_coreutils() local161 char *tmp = concat_path_file(cwd, target); in xmalloc_realpath_coreutils()162 free(cwd); in xmalloc_realpath_coreutils()
329 char *cwd, *response; in handle_pwd() local331 cwd = xrealloc_getcwd_or_warn(NULL); in handle_pwd()332 if (cwd == NULL) in handle_pwd()333 cwd = xstrdup(""); in handle_pwd()336 response = escape_text(" \"", cwd, ('"' << 8) + '"'); in handle_pwd()337 free(cwd); in handle_pwd()
965 const char *cwd; member2093 if (G.cwd != bb_msg_unknown) in hush_exit()2094 free((char*)G.cwd); in hush_exit()2217 if (force || G.cwd == NULL) { in get_cwd()2220 if (G.cwd == bb_msg_unknown) in get_cwd()2221 G.cwd = NULL; in get_cwd()2222 G.cwd = xrealloc_getcwd_or_warn((char *)G.cwd); in get_cwd()2223 if (!G.cwd) in get_cwd()2224 G.cwd = bb_msg_unknown; in get_cwd()2226 return G.cwd; in get_cwd()
585 char *xrealloc_getcwd_or_warn(char *cwd) FAST_FUNC;