Searched refs:p_path (Results 1 - 3 of 3) sorted by relevance

/system/core/toolbox/cp/
H A Dutils.c142 (void)fprintf(stderr, "overwrite %s? ", to.p_path);
153 lstat(to.p_path, &sb) : stat(to.p_path, &sb);
155 warn("stat: %s", to.p_path);
161 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
163 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
171 (void)unlink(to.p_path);
172 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
177 warn("%s", to.p_path);
188 (void)unlink(to.p_path);
[all...]
H A Dcp.c82 while ((p).p_end > (p).p_path + 1 && (p).p_end[-1] == '/') \
87 PATH_T to = { .p_end = to.p_path, .target_end = empty };
212 if (strlcpy(to.p_path, target, sizeof(to.p_path)) >= sizeof(to.p_path))
214 to.p_end = to.p_path + strlen(to.p_path);
242 r = lstat(to.p_path, &to_stat);
244 r = stat(to.p_path, &to_stat);
246 err(EXIT_FAILURE, "%s", to.p_path);
[all...]
H A Dextern.h40 char p_path[MAXPATHLEN + 1]; /* pointer to the start of a path */ member in struct:__anon245

Completed in 54 milliseconds