Home
last modified time | relevance | path

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

/bootable/recovery/minadbd/
Dsysdeps.h89 static __inline__ int adb_unlink(const char* path) in adb_unlink() argument
91 int rc = unlink(path); in adb_unlink()
96 rc = chmod(path, _S_IREAD|_S_IWRITE ); in adb_unlink()
98 rc = unlink(path); in adb_unlink()
105 static __inline__ int adb_mkdir(const char* path, int mode) in adb_mkdir() argument
107 return _mkdir(path); in adb_mkdir()
112 extern int adb_open(const char* path, int options);
113 extern int adb_creat(const char* path, int mode);
141 static __inline__ int adb_open_mode(const char* path, int options, int mode) in adb_open_mode() argument
143 return adb_open(path, options); in adb_open_mode()
[all …]
/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.cpp50 try_update_binary(const char *path, ZipArchive *zip, int* wipe_cache) { in try_update_binary() argument
118 args[3] = (char*)path; in try_update_binary()
177 LOGE("Error in %s\n(Status %d)\n", path, WEXITSTATUS(status)); in try_update_binary()
185 really_install_package(const char *path, int* wipe_cache, bool needs_mount) in really_install_package() argument
192 LOGI("Update location: %s\n", path); in really_install_package()
197 if (path && needs_mount) { in really_install_package()
198 if (path[0] == '@') { in really_install_package()
199 ensure_path_mounted(path+1); in really_install_package()
201 ensure_path_mounted(path); in really_install_package()
206 if (sysMapFile(path, &map) != 0) { in really_install_package()
[all …]
Dfuse_sdcard_provider.c66 const char* path; member
74 if (stat(t->path, &sb) < 0) { in run_sdcard_fuse()
75 fprintf(stderr, "failed to stat %s: %s\n", t->path, strerror(errno)); in run_sdcard_fuse()
83 fd.fd = open(t->path, O_RDONLY); in run_sdcard_fuse()
85 fprintf(stderr, "failed to open %s: %s\n", t->path, strerror(errno)); in run_sdcard_fuse()
103 void* start_sdcard_fuse(const char* path) { in start_sdcard_fuse() argument
106 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.cpp73 Volume* volume_for_path(const char* path) { in volume_for_path() argument
74 return fs_mgr_get_entry_for_mount_point(fstab, path); in volume_for_path()
77 int ensure_path_mounted(const char* path) { in ensure_path_mounted() argument
78 Volume* v = volume_for_path(path); in ensure_path_mounted()
80 LOGE("unknown volume for path [%s]\n", path); in ensure_path_mounted()
129 int ensure_path_unmounted(const char* path) { in ensure_path_unmounted() argument
130 Volume* v = volume_for_path(path); in ensure_path_unmounted()
132 LOGE("unknown volume for path [%s]\n", path); in ensure_path_unmounted()
157 static int exec_cmd(const char* path, char* const argv[]) { in exec_cmd() argument
161 execv(path, argv); in exec_cmd()
[all …]
Drecovery.cpp158 fopen_path(const char *path, const char *mode) { in fopen_path() argument
159 if (ensure_path_mounted(path) != 0) { in fopen_path()
160 LOGE("Can't mount %s\n", path); in fopen_path()
166 if (strchr("wa", mode[0])) dirCreateHierarchy(path, 0777, NULL, 1, sehandle); in fopen_path()
168 FILE *fp = fopen(path, mode); in fopen_path()
436 char path[PATH_MAX]; in erase_volume() local
437 strcpy(path, CACHE_LOG_DIR); in erase_volume()
438 strcat(path, "/"); in erase_volume()
439 int path_len = strlen(path); in erase_volume()
443 strcpy(path+path_len, de->d_name); in erase_volume()
[all …]
Dfuse_sdcard_provider.h20 void* start_sdcard_fuse(const char* path);
Dcommon.h45 FILE* fopen_path(const char *path, const char *mode);
/bootable/recovery/uncrypt/
Duncrypt.c128 const char* find_block_device(const char* path, int* encryptable, int* encrypted) in find_block_device() argument
138 if (strncmp(path, v->mount_point, len) == 0 && in find_block_device()
139 (path[len] == '/' || path[len] == 0)) { in find_block_device()
193 int produce_block_map(const char* path, const char* map_file, const char* blk_dev, in produce_block_map() argument
206 ret = stat(path, &sb); in produce_block_map()
208 ALOGE("failed to stat %s\n", path); in produce_block_map()
237 int fd = open(path, O_RDONLY); in produce_block_map()
396 char path[PATH_MAX+1]; in main() local
397 if (realpath(input_path, path) == NULL) { in main()
407 const char* blk_dev = find_block_device(path, &encryptable, &encrypted); in main()
[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()