/bootable/recovery/minzip/ |
D | DirUtil.c | 34 struct stat st; in getPathDirStatus() local 37 err = stat(path, &st); in getPathDirStatus() 41 if (S_ISDIR(st.st_mode)) { in getPathDirStatus() 185 struct stat st; in dirUnlinkHierarchy() local 191 if (lstat(path, &st) < 0) { in dirUnlinkHierarchy() 196 if (!S_ISDIR(st.st_mode)) { in dirUnlinkHierarchy()
|
/bootable/recovery/applypatch/ |
D | imgdiff.c | 188 struct stat st; in ReadZip() local 189 if (stat(filename, &st) != 0) { in ReadZip() 194 unsigned char* img = malloc(st.st_size); in ReadZip() 196 if (fread(img, 1, st.st_size, f) != st.st_size) { in ReadZip() 206 for (i = st.st_size-20; i >= 0 && i > st.st_size - 65600; --i) { in ReadZip() 293 curr->len = st.st_size; in ReadZip() 304 while (pos < st.st_size) { in ReadZip() 352 curr->len = st.st_size - pos; in ReadZip() 378 struct stat st; in ReadImage() local 379 if (stat(filename, &st) != 0) { in ReadImage() [all …]
|
D | freecache.c | 106 struct stat st; in FindExpendableFiles() local 107 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) { in FindExpendableFiles()
|
D | bsdiff.c | 170 u_char *new,off_t newsize,off_t st,off_t en,off_t *pos) in search() argument 174 if(en-st<2) { in search() 175 x=matchlen(old+I[st],oldsize-I[st],new,newsize); in search() 179 *pos=I[st]; in search() 187 x=st+(en-st)/2; in search() 191 return search(I,old,oldsize,new,newsize,st,x,pos); in search()
|
D | applypatch.c | 62 if (stat(filename, &file->st) != 0) { in LoadFileContents() 67 file->size = file->st.st_size; in LoadFileContents() 296 file->st.st_mode = 0644; in LoadPartitionContents() 297 file->st.st_uid = 0; in LoadPartitionContents() 298 file->st.st_gid = 0; in LoadPartitionContents() 336 if (chmod(filename, file->st.st_mode) != 0) { in SaveFileContents() 340 if (chown(filename, file->st.st_uid, file->st.st_gid) != 0) { in SaveFileContents() 1024 if (chmod(outname, source_to_use->st.st_mode) != 0) { in GenerateTarget() 1028 if (chown(outname, source_to_use->st.st_uid, in GenerateTarget() 1029 source_to_use->st.st_gid) != 0) { in GenerateTarget()
|
D | applypatch.h | 33 struct stat st; member
|
/bootable/recovery/ |
D | adb_install.cpp | 97 struct stat st; in apply_from_adb() local 105 if (stat(FUSE_SIDELOAD_HOST_PATHNAME, &st) != 0) { in apply_from_adb() 123 stat(FUSE_SIDELOAD_HOST_EXIT_PATHNAME, &st); in apply_from_adb()
|
D | fuse_sdcard_provider.c | 108 struct stat st; in start_sdcard_fuse() local 111 if (stat(FUSE_SIDELOAD_HOST_PATHNAME, &st) != 0) { in start_sdcard_fuse() 135 struct stat st; in finish_sdcard_fuse() local 136 stat(FUSE_SIDELOAD_HOST_EXIT_PATHNAME, &st); in finish_sdcard_fuse()
|
D | recovery.cpp | 415 struct stat st; member 449 if (stat(path, &(p->st)) == 0) { in erase_volume() 451 if (p->st.st_size > (1 << 19)) { in erase_volume() 452 p->st.st_size = 1 << 19; in erase_volume() 454 p->data = (unsigned char*) malloc(p->st.st_size); in erase_volume() 456 fread(p->data, 1, p->st.st_size, f); in erase_volume() 482 fwrite(head->data, 1, head->st.st_size, f); in erase_volume() 484 chmod(head->name, head->st.st_mode); in erase_volume() 485 chown(head->name, head->st.st_uid, head->st.st_gid); in erase_volume()
|
/bootable/recovery/tools/ota/ |
D | check-lost+found.c | 61 struct stat st; in main() local 62 if (stat(kMarkerFile, &st)) { in main()
|
/bootable/recovery/updater/ |
D | blockimg.c | 497 struct stat st; in UpdateFileSize() local 503 if (stat(fn, &st) == -1) { in UpdateFileSize() 508 *size += st.st_size; in UpdateFileSize() 563 struct stat st; in LoadStash() local 579 res = stat(fn, &st); in LoadStash() 590 if ((st.st_size % BLOCKSIZE) != 0) { in LoadStash() 591 fprintf(stderr, "%s size %zd not multiple of block size %d", fn, st.st_size, BLOCKSIZE); in LoadStash() 602 allocate(st.st_size, buffer, buffer_alloc); in LoadStash() 604 if (read_all(fd, *buffer, st.st_size) == -1) { in LoadStash() 608 *blocks = st.st_size / BLOCKSIZE; in LoadStash() [all …]
|
D | install.c | 949 struct stat st; in FileGetPropFn() local 950 if (stat(filename, &st) < 0) { in FileGetPropFn() 958 if (st.st_size > MAX_FILE_GETPROP_SIZE) { in FileGetPropFn() 964 buffer = malloc(st.st_size+1); in FileGetPropFn() 966 ErrorAbort(state, "%s: failed to alloc %lld bytes", name, (long long)st.st_size+1); in FileGetPropFn() 977 if (fread(buffer, 1, st.st_size, f) != st.st_size) { in FileGetPropFn() 979 name, (long long)st.st_size+1, filename); in FileGetPropFn() 983 buffer[st.st_size] = '\0'; in FileGetPropFn()
|
/bootable/recovery/mtdutils/ |
D | mtdutils.c | 218 struct stat st; in mtd_mount_partition() local 219 rv = stat(mount_point, &st); in mtd_mount_partition() 223 mode_t new_mode = st.st_mode | S_IXUSR | S_IXGRP | S_IXOTH; in mtd_mount_partition() 224 if (new_mode != st.st_mode) { in mtd_mount_partition()
|