Home
last modified time | relevance | path

Searched refs:cwd (Results 1 – 5 of 5) sorted by relevance

/busybox-1.35.0/libbb/
Dxgetcwd.c19 xrealloc_getcwd_or_warn(char *cwd) in xrealloc_getcwd_or_warn() argument
30 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()
Dxreadlink.c160 char *cwd = xrealloc_getcwd_or_warn(NULL); in xmalloc_realpath_coreutils() local
161 char *tmp = concat_path_file(cwd, target); in xmalloc_realpath_coreutils()
162 free(cwd); in xmalloc_realpath_coreutils()
/busybox-1.35.0/networking/
Dftpd.c329 char *cwd, *response; in handle_pwd() local
331 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()
/busybox-1.35.0/shell/
Dhush.c965 const char *cwd; member
2093 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()
/busybox-1.35.0/include/
Dlibbb.h585 char *xrealloc_getcwd_or_warn(char *cwd) FAST_FUNC;