Home
last modified time | relevance | path

Searched refs:path (Results 1 – 12 of 12) sorted by relevance

/bootable/recovery/applypatch/
Dfreecache.c29 char path[FILENAME_MAX]; in EliminateOpenFiles() local
30 strcpy(path, "/proc/"); in EliminateOpenFiles()
31 strcat(path, de->d_name); in EliminateOpenFiles()
32 strcat(path, "/fd/"); in EliminateOpenFiles()
36 fdd = opendir(path); in EliminateOpenFiles()
38 printf("error opening %s: %s\n", path, strerror(errno)); in EliminateOpenFiles()
44 strcpy(fd_path, path); in EliminateOpenFiles()
81 char path[FILENAME_MAX]; in FindExpendableFiles() local
97 strcpy(path, dirs[i]); in FindExpendableFiles()
98 strcat(path, "/"); in FindExpendableFiles()
[all …]
/bootable/recovery/minzip/
DDirUtil.c32 getPathDirStatus(const char *path) in getPathDirStatus() argument
37 err = stat(path, &st); in getPathDirStatus()
56 dirCreateHierarchy(const char *path, int mode, in dirCreateHierarchy() argument
65 if (path[0] == '\0') { in dirCreateHierarchy()
73 size_t pathLen = strlen(path); in dirCreateHierarchy()
79 memcpy(cpath, path, pathLen); in dirCreateHierarchy()
183 dirUnlinkHierarchy(const char *path) in dirUnlinkHierarchy() argument
191 if (lstat(path, &st) < 0) { in dirUnlinkHierarchy()
197 return unlink(path); in dirUnlinkHierarchy()
201 dir = opendir(path); in dirUnlinkHierarchy()
[all …]
DDirUtil.h43 int dirCreateHierarchy(const char *path, int mode,
49 int dirUnlinkHierarchy(const char *path);
/bootable/recovery/
Dinstall.cpp51 try_update_binary(const char* path, ZipArchive* zip, bool* wipe_cache) { in try_update_binary() argument
131 args[3] = (char*)path; in try_update_binary()
190 LOGE("Error in %s\n(Status %d)\n", path, WEXITSTATUS(status)); in try_update_binary()
198 really_install_package(const char *path, bool* wipe_cache, bool needs_mount) in really_install_package() argument
205 LOGI("Update location: %s\n", path); in really_install_package()
210 if (path && needs_mount) { in really_install_package()
211 if (path[0] == '@') { in really_install_package()
212 ensure_path_mounted(path+1); in really_install_package()
214 ensure_path_mounted(path); in really_install_package()
219 if (sysMapFile(path, &map) != 0) { in really_install_package()
[all …]
Dfuse_sdcard_provider.c65 const char* path; member
73 if (stat(t->path, &sb) < 0) { in run_sdcard_fuse()
74 fprintf(stderr, "failed to stat %s: %s\n", t->path, strerror(errno)); in run_sdcard_fuse()
82 fd.fd = open(t->path, O_RDONLY); in run_sdcard_fuse()
84 fprintf(stderr, "failed to open %s: %s\n", t->path, strerror(errno)); in run_sdcard_fuse()
102 void* start_sdcard_fuse(const char* path) { in start_sdcard_fuse() argument
105 t->path = path; in start_sdcard_fuse()
Droots.h30 Volume* volume_for_path(const char* path);
34 int ensure_path_mounted(const char* path);
38 int ensure_path_unmounted(const char* path);
Droots.cpp71 Volume* volume_for_path(const char* path) { in volume_for_path() argument
72 return fs_mgr_get_entry_for_mount_point(fstab, path); in volume_for_path()
75 int ensure_path_mounted(const char* path) { in ensure_path_mounted() argument
76 Volume* v = volume_for_path(path); in ensure_path_mounted()
78 LOGE("unknown volume for path [%s]\n", path); in ensure_path_mounted()
128 int ensure_path_unmounted(const char* path) { in ensure_path_unmounted() argument
129 Volume* v = volume_for_path(path); in ensure_path_unmounted()
131 LOGE("unknown volume for path [%s]\n", path); in ensure_path_unmounted()
156 static int exec_cmd(const char* path, char* const argv[]) { in exec_cmd() argument
160 execv(path, argv); in exec_cmd()
[all …]
Drecovery.cpp155 fopen_path(const char *path, const char *mode) { in fopen_path() argument
156 if (ensure_path_mounted(path) != 0) { in fopen_path()
157 LOGE("Can't mount %s\n", path); in fopen_path()
163 if (strchr("wa", mode[0])) dirCreateHierarchy(path, 0777, NULL, 1, sehandle); in fopen_path()
165 FILE *fp = fopen(path, mode); in fopen_path()
440 char path[PATH_MAX]; in erase_volume() local
441 strcpy(path, CACHE_LOG_DIR); in erase_volume()
442 strcat(path, "/"); in erase_volume()
443 int path_len = strlen(path); in erase_volume()
447 strcpy(path+path_len, de->d_name); in erase_volume()
[all …]
Dfuse_sdcard_provider.h24 void* start_sdcard_fuse(const char* path);
Dcommon.h47 FILE* fopen_path(const char *path, const char *mode);
/bootable/recovery/uncrypt/
Duncrypt.cpp133 static const char* find_block_device(const char* path, bool* encryptable, bool* encrypted) { in find_block_device() argument
143 if (strncmp(path, v->mount_point, len) == 0 && in find_block_device()
144 (path[len] == '/' || path[len] == 0)) { in find_block_device()
176 static int produce_block_map(const char* path, const char* map_file, const char* blk_dev, in produce_block_map() argument
192 int ret = stat(path, &sb); in produce_block_map()
194 ALOGE("failed to stat %s\n", path); in produce_block_map()
221 int fd = open(path, O_RDONLY); in produce_block_map()
371 char path[PATH_MAX+1]; in uncrypt() local
372 if (realpath(input_path, path) == NULL) { in uncrypt()
383 const char* blk_dev = find_block_device(path, &encryptable, &encrypted); in uncrypt()
[all …]
/bootable/recovery/updater/
Dinstall.c251 static int exec_cmd(const char* path, char* const argv[]) { in exec_cmd() argument
255 execv(path, argv); in exec_cmd()
260 printf("%s failed with status %d\n", path, WEXITSTATUS(status)); in exec_cmd()