Home
last modified time | relevance | path

Searched refs:file_info (Results 1 – 25 of 63) sorted by relevance

123

/external/e2fsprogs/ext2ed/
Dfile_com.c31 file_info.inode_ptr=ptr; in init_file_info()
32 file_info.inode_offset=device_offset; in init_file_info()
34 file_info.global_block_num=ptr->i_block [0]; in init_file_info()
35 file_info.global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_file_info()
36 file_info.block_num=0; in init_file_info()
37 file_info.blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_file_info()
38 file_info.file_offset=0; in init_file_info()
39 file_info.file_length=ptr->i_size; in init_file_info()
40 file_info.level=0; in init_file_info()
41 file_info.offset_in_block=0; in init_file_info()
[all …]
Ddir_com.c224 dir_entry_ptr=(struct ext2_dir_entry_2 *) (file_info.buffer+file_info.dir_entry_offset); in type_dir___cd()
260 status=FOUND;info=file_info; in type_dir___cd()
264 file_info=info; /* Switch to it, by setting the global file_info */ in type_dir___cd()
358 if (entry_num_search < 0 || entry_num_search >= file_info.dir_entries_count) { in type_dir___entry()
365 file_info=info; in type_dir___entry()
403 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_dir___followinode()
404 dir_entry_ptr=(struct ext2_dir_entry_2 *) (file_info.buffer+file_info.dir_entry_offset); in type_dir___followinode()
440 show_pad_info.line=file_info.dir_entry_num-show_pad_info.display_lines/2; in type_dir___show()
459 if (info->dir_entry_num == file_info.dir_entry_num) /* Highlight the current entry */ in action_show()
471 if (info->dir_entry_num == file_info.dir_entry_num) in action_show()
[all …]
/external/autotest/client/bin/result_tools/
Dshrink_file_throttler.py56 def _trim_file(file_info, file_size_limit_byte): argument
64 (file_info.path, file_info.original_size,
66 new_path = os.path.join(os.path.dirname(file_info.path),
67 file_info.name + '_trimmed')
68 original_size_bytes = file_info.original_size
69 with open(new_path, 'w') as new_file, open(file_info.path) as old_file:
75 new_file.write(ORIGINAL_SIZE_TEMPLATE % file_info.original_size)
98 stat = os.stat(file_info.path)
99 if not throttler_lib.try_delete_file_on_disk(file_info.path):
102 utils_lib.LOG('Failed to shrink %s' % file_info.path)
[all …]
Dzip_file_throttler.py36 def _zip_file(file_info): argument
42 utils_lib.LOG('Compressing file %s' % file_info.path)
43 parent_result_info = file_info.parent_result_info
44 new_name = file_info.name + '.tgz'
45 new_path = os.path.join(os.path.dirname(file_info.path), new_name)
52 tar.add(file_info.path, arcname=os.path.basename(file_info.path))
53 stat = os.stat(file_info.path)
54 if not throttler_lib.try_delete_file_on_disk(file_info.path):
57 utils_lib.LOG('Failed to compress %s' % file_info.path)
63 original_size = file_info.original_size
[all …]
Ddelete_file_throttler.py21 def _delete_file(file_info): argument
27 utils_lib.LOG('Deleting file %s.' % file_info.path)
29 os.remove(file_info.path)
32 (file_info.path, e))
35 file_info.trimmed_size = 0
Ddedupe_file_throttler.py67 for file_info in file_infos_to_delete:
68 if throttler_lib.try_delete_file_on_disk(file_info.path):
69 file_info.trimmed_size = 0
/external/zlib/src/contrib/minizip/
Dminiunz.c249 unz_file_info64 file_info; local
253 … err = unzGetCurrentFileInfo64(uf,&file_info,filename_inzip,sizeof(filename_inzip),NULL,0,NULL,0);
259 if (file_info.uncompressed_size>0)
260 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size);
263 if ((file_info.flag & 1) != 0)
266 if (file_info.compression_method==0)
269 if (file_info.compression_method==Z_DEFLATED)
271 uInt iLevel=(uInt)((file_info.flag & 0x6)/2);
280 if (file_info.compression_method==Z_BZIP2ED)
287 Display64BitsSize(file_info.uncompressed_size,7);
[all …]
Dunzip.c891 unz_file_info64 file_info; in unz64local_GetCurrentFileInfoInternal() local
916 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.version) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
919 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.version_needed) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
922 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.flag) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
925 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.compression_method) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
928 if (unz64local_getLong(&s->z_filefunc, s->filestream,&file_info.dosDate) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
931 unz64local_DosDateToTmuDate(file_info.dosDate,&file_info.tmu_date); in unz64local_GetCurrentFileInfoInternal()
933 if (unz64local_getLong(&s->z_filefunc, s->filestream,&file_info.crc) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
938 file_info.compressed_size = uL; in unz64local_GetCurrentFileInfoInternal()
942 file_info.uncompressed_size = uL; in unz64local_GetCurrentFileInfoInternal()
[all …]
/external/toybox/toys/pending/
Dlsof.c37 struct file_info { struct
51 struct file_info *fi = data; in print_info() argument
84 free(((struct file_info *)data)->name); in free_info()
88 static void fill_flags(struct file_info *fi) in fill_flags()
128 static struct file_info *add_socket(ino_t inode, const char *type) in add_socket()
130 struct file_info *fi = xzalloc(sizeof(struct file_info)); in add_socket()
144 struct file_info *fi = add_socket(inode, "unix"); in scan_unix()
165 struct file_info *fi = add_socket(inode, "netlink"); in scan_netlink()
200 struct file_info *fi = add_socket(inode, af == 4 ? "IPv4" : "IPv6"); in scan_ip()
217 static int find_socket(struct file_info *fi, long inode) in find_socket()
[all …]
/external/autotest/server/site_tests/autoupdate_OmahaResponse/
Dautoupdate_OmahaResponse.py34 file_info = self._get_staged_file_info(image_url)
44 image_size=file_info['size'],
45 sha256=file_info['sha256'])
48 sha = 'blahblah' if bad_sha256 else file_info['sha256']
52 image_size=file_info['size'],
59 image_size=file_info['size'],
60 sha256=file_info['sha256'],
/external/ImageMagick/MagickCore/
Dblob.c148 file_info; member
274 blob_info->file_info.file=(FILE *) NULL; in AttachBlob()
618 status=fsync(fileno(blob_info->file_info.file)); in CloseBlob()
619 status=ferror(blob_info->file_info.file); in CloseBlob()
625 (void) gzerror(blob_info->file_info.gzfile,&status); in CloseBlob()
632 (void) BZ2_bzerror(blob_info->file_info.bzfile,&status); in CloseBlob()
640 if (blob_info->file_info.file != (FILE *) NULL) in CloseBlob()
643 status=fsync(fileno(blob_info->file_info.file)); in CloseBlob()
644 status=ferror(blob_info->file_info.file); in CloseBlob()
669 status=fclose(blob_info->file_info.file); in CloseBlob()
[all …]
/external/google-breakpad/src/tools/python/
Dfilter_syms.py141 file_info = file_record[5:].split(' ', 3)
142 if len(file_info) > 2:
144 file_index = int(file_info[0])
145 file_name = self._NormalizePath(file_info[1])
149 file_info[1] = self._AdjustPath(file_name)
150 return 'FILE ' + ' '.join(file_info)
/external/autotest/server/site_tests/policy_AUServer/
Dpolicy_AUServer.py58 file_info = self._get_staged_file_info(image_url)
66 logging.info('file_info: %s', file_info)
71 image_size=file_info['size'],
72 sha256=file_info['sha256'])
/external/curl/tests/libtest/
Dlib505.c43 struct_stat file_info; in test() local
64 hd = fstat(fileno(hd_src), &file_info); in test()
74 if(! file_info.st_size) { in test()
133 (curl_off_t)file_info.st_size); in test()
Dlib541.c40 struct_stat file_info; in test() local
56 hd = fstat(fileno(hd_src), &file_info); in test()
66 if(! file_info.st_size) { in test()
Dlib525.c38 struct_stat file_info; in test() local
64 hd = fstat(fileno(hd_src), &file_info); in test()
106 easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t)file_info.st_size); in test()
/external/squashfs-tools/squashfs-tools/
Dmksquashfs.h81 struct file_info { struct
86 struct file_info *next; argument
116 struct file_info *file;
156 extern struct file_info *dupl[];
/external/google-breakpad/src/tools/windows/symupload/
Dsymupload.cc93 VS_FIXEDFILEINFO *file_info = in GetFileVersionString() local
97 file_info->dwFileVersionMS >> 16, in GetFileVersionString()
98 file_info->dwFileVersionMS & 0xffff, in GetFileVersionString()
99 file_info->dwFileVersionLS >> 16, in GetFileVersionString()
100 file_info->dwFileVersionLS & 0xffff); in GetFileVersionString()
/external/autotest/server/site_tests/autoupdate_Cellular/
Dautoupdate_Cellular.py38 file_info = self._get_staged_file_info(staged_url)
43 image_size=file_info['size'],
44 image_sha256=file_info['sha256'],
/external/curl/docs/examples/
Dfileupload.c35 struct stat file_info; in main() local
44 if(fstat(fileno(fd), &file_info) != 0) in main()
61 (curl_off_t)file_info.st_size); in main()
Dhttpput.c64 struct stat file_info; in main() local
76 stat(file, &file_info); in main()
108 (curl_off_t)file_info.st_size); in main()
Dftpupload.c71 struct stat file_info; in main() local
79 if(stat(LOCAL_FILE, &file_info)) { in main()
83 fsize = (curl_off_t)file_info.st_size; in main()
Danyauthput.c104 struct stat file_info; in main() local
117 fstat(hd, &file_info); in main()
147 (curl_off_t)file_info.st_size); in main()
/external/blktrace/btt/
Dmisc.c34 struct file_info { struct
54 struct file_info *fip = list_entry(p, struct file_info, head); in clean_files() argument
114 struct file_info *fip = malloc(sizeof(*fip)); in add_file()
/external/libchrome/base/files/
Dimportant_file_writer.cc146 } file_info; in WriteFileAtomically() local
147 file_info.data_size = data.size(); in WriteFileAtomically()
148 strlcpy(file_info.path, path.value().c_str(), arraysize(file_info.path)); in WriteFileAtomically()
149 debug::Alias(&file_info); in WriteFileAtomically()

123