/system/core/toolbox/ |
H A D | chmod.c | 16 DIR *dir = opendir(path); local 17 if (dir == NULL) { 24 while ((dp = readdir(dir)) != NULL) { 45 closedir(dir);
|
H A D | rm.c | 23 DIR *dir; local 36 dir = opendir(name); 37 if (dir == NULL) 42 while ((de = readdir(dir)) != NULL) { 56 closedir(dir); 62 if (closedir(dir) < 0)
|
H A D | wipe.c | 83 DIR *dir; local 87 dir = opendir(path); 89 if (dir == NULL) { 103 de = readdir(dir); 130 closedir(dir); 153 dir = opendir(path); 154 if (dir == NULL) { 174 closedir(dir);
|
H A D | lsof.c | 142 DIR *dir = opendir(info->path); local 143 if (dir == NULL) { 153 while ((de = readdir(dir))) { 159 closedir(dir); 233 DIR *dir = opendir("/proc"); local 234 if (dir == NULL) { 240 while ((de = readdir(dir))) { 251 closedir(dir);
|
H A D | mount.c | 146 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop, argument 183 if (mount(dev, dir, s, rwflag, data) == -1) { 237 static int get_mounts_dev_dir(const char *arg, char **dev, char **dir) argument 266 *dir = strdup(mount_dir); 280 char *dir = NULL; local 324 dir = argv[optind + 1]; 326 get_mounts_dev_dir(argv[optind], &dev, &dir); 329 if (dev == NULL || dir == NULL || type == NULL) { 335 return do_mount(dev, dir, type, rwflag, extra.str, loop, loopdev); 336 /* We leak dev and dir i [all...] |
H A D | getevent.c | 264 DIR *dir; local 272 dir = opendir(dirname); 273 if(dir == NULL) 275 while((de = readdir(dir))) { 291 closedir(dir); 453 DIR *dir; local 455 dir = opendir(dirname); 456 if(dir == NULL) 461 while((de = readdir(dir))) { 469 closedir(dir); [all...] |
/system/core/adb/ |
H A D | remount_service.c | 34 static char *find_mount(const char *dir) argument 63 if (res == 4 && (strcmp(dir, mount_dir) == 0))
|
H A D | commandline.c | 106 " adb push <local> <remote> - copy file/dir to device\n" 107 " adb pull <remote> [<local>] - copy file/dir from device\n" 827 char dir[PATH_MAX]; local 828 top = find_top_from(getcwd(dir, sizeof(dir)), path_buf); 833 get_my_path(dir, PATH_MAX); 834 top = find_top_from(dir, path_buf); 843 * - A relative path from the CWD to the ANDROID_PRODUCT_OUT dir 845 * - An absolute path to the PRODUCT_OUT dir 849 * ANDROID_PRODUCT_OUT dir [all...] |
/system/extras/fatblock/ |
H A D | fatblock.h | 56 struct dir { struct
|
H A D | import.c | 196 struct dir *d; 199 DIR *dir; local 215 dir = opendir(path); 216 if (!dir) { 222 d = malloc(sizeof(struct dir)); 224 WARN("importing %s: couldn't allocate dir struct: " 226 closedir(dir); 234 closedir(dir); 243 while ((de = readdir(dir))) { 292 closedir(dir); [all...] |
/system/extras/libpagemap/ |
H A D | pm_kernel.c | 64 struct dirent *dir; local 80 while ((dir = readdir(proc))) { 81 if (sscanf(dir->d_name, "%d", &pid) < 1)
|
/system/vold/ |
H A D | Process.cpp | 89 DIR *dir = opendir(path); local 90 if (!dir) 99 while ((de = readdir(dir))) { 115 closedir(dir); 120 closedir(dir); 181 DIR* dir; local 184 if (!(dir = opendir("/proc"))) { 189 while ((de = readdir(dir))) { 221 closedir(dir);
|
H A D | CommandListener.cpp | 223 DIR *dir; local 226 if (!(dir = opendir("/proc"))) { 231 while ((de = readdir(dir))) { 252 closedir(dir); 268 cli->sendMsg(ResponseCode::OperationFailed, "Failed to open asec dir", true);
|
/system/core/debuggerd/ |
H A D | getevent.c | 139 DIR *dir; local 141 dir = opendir(dirname); 142 if(dir == NULL) 147 while((de = readdir(dir))) { 155 closedir(dir);
|
/system/core/sh/ |
H A D | cd.c | 242 updatepwd(char *dir) argument 254 if (dir == NULL || curdir == NULL) { 268 cdcomppath = stalloc(strlen(dir) + 1); 269 scopy(dir, cdcomppath); 271 if (*dir != '/') {
|
/system/core/toolbox/grep/ |
H A D | util.c | 116 char *d, *dir = NULL; local 159 dir = grep_malloc(sizeof(char) * 161 memcpy(dir, p->fts_path, 163 dir[d - p->fts_path] = '\0'; 165 ok = dir_matching(dir); 166 free(dir); 167 dir = NULL;
|
/system/extras/latencytop/ |
H A D | latencytop.c | 203 DIR *dir; local 209 dir = opendir(dirname); 210 if (!dir) { 211 fprintf(stderr, "Could not open task dir for process %d.\n", pid); 217 while ((ent = readdir(dir))) { 226 closedir(dir);
|
/system/core/include/private/ |
H A D | android_filesystem_config.h | 231 static inline void fs_config(const char *path, int dir, argument 237 pc = dir ? android_dirs : android_files; 241 if (dir) {
|
/system/core/init/ |
H A D | bootchart.c | 244 DIR* dir = opendir("/proc"); local 249 while ((entry = readdir(dir)) != NULL) { 290 closedir(dir);
|
H A D | property_service.c | 532 DIR* dir = opendir(PERSISTENT_PROPERTY_DIR); local 538 if (dir) { 539 while ((entry = readdir(dir)) != NULL) { 562 closedir(dir);
|
/system/extras/ext4_utils/ |
H A D | make_ext4fs.c | 151 int dir = S_ISDIR(stat.st_mode); local 152 fs_config_func(dentries[i].path, dir, &uid, &gid, &mode);
|
/system/extras/tests/sdcard/ |
H A D | sysutil.cpp | 410 DIR *dir = opendir(directory); local 412 if (NULL != dir) 417 while((entry = readdir(dir))) 430 closedir(dir);
|
/system/core/fastboot/ |
H A D | fastboot.c | 94 char *dir; local 122 dir = getenv("ANDROID_PRODUCT_OUT"); 123 if((dir == 0) || (dir[0] == 0)) { 128 sprintf(path, "%s/%s", dir, fn);
|
/system/core/libpixelflinger/codeflinger/ |
H A D | ARMAssembler.cpp | 331 void ARMAssembler::LDM(int cc, int dir, argument 336 *mPC++ = (cc<<28) | (4<<25) | (uint32_t(P[dir])<<24) | 337 (uint32_t(U[dir])<<23) | (1<<20) | (W<<21) | (Rn<<16) | reg_list; 340 void ARMAssembler::STM(int cc, int dir, argument 345 *mPC++ = (cc<<28) | (4<<25) | (uint32_t(P[dir])<<24) | 346 (uint32_t(U[dir])<<23) | (0<<20) | (W<<21) | (Rn<<16) | reg_list;
|
H A D | ARMAssemblerProxy.cpp | 236 void ARMAssemblerProxy::LDM(int cc, int dir, int Rn, int W, uint32_t reg_list) { argument 237 mTarget->LDM(cc, dir, Rn, W, reg_list); 239 void ARMAssemblerProxy::STM(int cc, int dir, int Rn, int W, uint32_t reg_list) { argument 240 mTarget->STM(cc, dir, Rn, W, reg_list);
|