Searched defs:new_path (Results 1 - 15 of 15) sorted by relevance

/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.current_path/
H A Dcurrent_path.pass.cpp55 const path new_path = StaticEnv::Dir; local
56 current_path(new_path);
57 TEST_CHECK(current_path() == new_path);
/external/ltp/testcases/kernel/fs/mongo/
H A Dmongo_slinks.c23 char *new_path; local
41 new_path = strtok(NULL, "\t\n ");
43 if (!old_path || !new_path) /* empty lines at the end of file */
47 if (symlink(old_path, new_path) != 0) {
52 if (lstat(new_path, &statbuf) == -1) {
59 new_path);
69 num = readlink(new_path, buffer, size);
/external/ipsec-tools/src/racoon/
H A Dremoteconf.c638 vchar_t *new_path; local
650 if ((new_path = vmalloc(len)) == NULL) {
656 new_path->v[0] = '\0';
657 (void)strlcat(new_path->v, script_dir, len);
658 (void)strlcat(new_path->v, "/", len);
659 (void)strlcat(new_path->v, path->v, len);
662 path = new_path;
/external/libchrome/base/files/
H A Dfile_util.cc250 FilePath new_path; local
252 new_path = path.InsertBeforeExtensionASCII(StringPrintf(" (%d)", count));
253 if (!PathExists(new_path) &&
254 (!have_suffix || !PathExists(FilePath(new_path.value() + suffix)))) {
/external/mesa3d/src/util/
H A Ddisk_cache.c120 char *new_path; local
126 new_path = ralloc_asprintf(ctx, "%s/%s", path, name);
128 if (mkdir_if_needed(new_path) == 0)
129 return new_path;
/external/syslinux/core/fs/
H A Dfs.c259 char *new_path; local
276 new_path = malloc(new_len);
277 if (!new_path)
280 copied = this_fs->fs_ops->readlink(inode, new_path);
283 new_path[copied] = '\0';
284 dprintf("searchdir: Symlink: %s\n", new_path);
287 new_path[copied] = '/';
288 strcpy(new_path + copied + 1, next_inode_name);
289 dprintf("searchdir: New path: %s\n", new_path);
293 path = next_inode_name = new_path;
[all...]
/external/webrtc/webrtc/base/
H A Dfileutils.cc157 const Pathname &new_path) {
161 new_dir.SetFolder(new_path.pathname());
176 dest.SetFolder(new_path.pathname());
156 CopyFolder(const Pathname &old_path, const Pathname &new_path) argument
H A Dwin32filesystem.cc232 const Pathname &new_path) {
238 << " to " << new_path.pathname();
240 ToUtf16(new_path.pathname()).c_str()) != 0;
244 const Pathname &new_path) {
250 << " to " << new_path.pathname();
252 ToUtf16(new_path.pathname()).c_str()) == 0) {
257 if (!CopyFolder(old_path, new_path))
292 const Pathname &new_path) {
294 ToUtf16(new_path.pathname()).c_str(), TRUE) != 0;
231 MoveFile(const Pathname &old_path, const Pathname &new_path) argument
243 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument
291 CopyFile(const Pathname &old_path, const Pathname &new_path) argument
H A Dfileutils.h150 // This moves a file from old_path to new_path, where "old_path" is a
156 const Pathname &new_path) = 0;
158 // This moves a directory from old_path to new_path, where "old_path" is a
163 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0;
165 // This attempts to move whatever is located at old_path to new_path,
167 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) { argument
169 return MoveFile(old_path, new_path);
171 return MoveFolder(old_path, new_path);
175 // This copies a file from old_path to new_path. This method ASSERTs and
178 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path)
183 CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) argument
315 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument
319 MoveFile(const Pathname &old_path, const Pathname &new_path) argument
323 CopyFolder(const Pathname &old_path, const Pathname &new_path) argument
327 CopyFile(const Pathname &old_path, const Pathname &new_path) argument
[all...]
H A Dfileutils_mock.h177 bool MoveFolder(const Pathname &old_path, const Pathname &new_path) { argument
181 bool MoveFile(const Pathname &old_path, const Pathname &new_path) { argument
185 bool CopyFile(const Pathname &old_path, const Pathname &new_path) { argument
H A Dunixfilesystem.cc223 const Pathname &new_path) {
229 << " to " << new_path.pathname();
230 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) {
233 if (!CopyFile(old_path, new_path))
242 const Pathname &new_path) {
248 << " to " << new_path.pathname();
249 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) {
252 if (!CopyFolder(old_path, new_path))
268 const Pathname &new_path) {
270 << " to " << new_path
222 MoveFile(const Pathname &old_path, const Pathname &new_path) argument
241 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument
267 CopyFile(const Pathname &old_path, const Pathname &new_path) argument
[all...]
/external/google-breakpad/src/client/linux/minidump_writer/
H A Dlinux_dumper.cc453 char new_path[NAME_MAX]; local
456 if (!SafeReadLink(exe_link, new_path))
458 if (my_strcmp(path, new_path) != 0)
465 sys_stat(new_path, &new_path_stat) == 0 &&
/external/curl/lib/
H A Dcookie.c225 char *new_path = strdup(cookie_path); local
226 if(!new_path)
230 len = strlen(new_path);
231 if(new_path[0] == '\"') {
232 memmove((void *)new_path, (const void *)(new_path + 1), len);
235 if(len && (new_path[len - 1] == '\"')) {
236 new_path[len - 1] = 0x0;
241 if(new_path[0] != '/') {
243 free(new_path);
[all...]
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
H A Dscsimain.c1704 char new_path[NAME_LEN_MAX * 2]; local
1734 strncpy(new_path, path, NAME_LEN_MAX * 2);
1735 strcat(new_path, "/");
1736 strcat(new_path, de_entry->d_name);
1738 res = hbtl_scan(new_path, level + 1, larr);
1742 leaf_dir(new_path, larr);
/external/python/cpython2/Modules/
H A Dposixmodule.c954 char new_path[MAX_PATH+1]; local
960 result = GetCurrentDirectoryA(MAX_PATH+1, new_path);
966 if (strncmp(new_path, "\\\\", 2) == 0 ||
967 strncmp(new_path, "//", 2) == 0)
970 env[1] = new_path[0];
971 return SetEnvironmentVariableA(env, new_path);
979 wchar_t _new_path[MAX_PATH+1], *new_path = _new_path; local
985 result = GetCurrentDirectoryW(MAX_PATH+1, new_path);
989 new_path = malloc(result * sizeof(wchar_t));
990 if (!new_path) {
[all...]

Completed in 612 milliseconds