Home
last modified time | relevance | path

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

1234

/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.py64 def _trim_file(file_info, file_size_limit_byte): argument
72 (file_info.path, file_info.original_size,
74 new_path = os.path.join(os.path.dirname(file_info.path),
75 file_info.name + '_trimmed')
76 original_size_bytes = file_info.original_size
77 with open(new_path, 'w') as new_file, open(file_info.path) as old_file:
83 new_file.write(ORIGINAL_SIZE_TEMPLATE % file_info.original_size)
106 stat = os.stat(file_info.path)
107 if not throttler_lib.try_delete_file_on_disk(file_info.path):
110 utils_lib.LOG('Failed to shrink %s' % file_info.path)
[all …]
Dzip_file_throttler.py40 def _zip_file(file_info): argument
46 utils_lib.LOG('Compressing file %s' % file_info.path)
47 parent_result_info = file_info.parent_result_info
48 new_name = file_info.name + '.tgz'
49 new_path = os.path.join(os.path.dirname(file_info.path), new_name)
56 tar.add(file_info.path, arcname=os.path.basename(file_info.path))
57 stat = os.stat(file_info.path)
58 if not throttler_lib.try_delete_file_on_disk(file_info.path):
61 utils_lib.LOG('Failed to compress %s' % file_info.path)
67 original_size = file_info.original_size
[all …]
Ddelete_file_throttler.py25 def _delete_file(file_info): argument
31 utils_lib.LOG('Deleting file %s.' % file_info.path)
33 os.remove(file_info.path)
36 (file_info.path, e))
39 file_info.trimmed_size = 0
Ddedupe_file_throttler.py73 for file_info in file_infos_to_delete:
74 if throttler_lib.try_delete_file_on_disk(file_info.path):
75 file_info.trimmed_size = 0
/external/zlib/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.c887 unz_file_info64 file_info; in unz64local_GetCurrentFileInfoInternal() local
912 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.version) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
915 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.version_needed) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
918 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.flag) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
921 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.compression_method) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
924 if (unz64local_getLong(&s->z_filefunc, s->filestream,&file_info.dosDate) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
927 unz64local_DosDateToTmuDate(file_info.dosDate,&file_info.tmu_date); in unz64local_GetCurrentFileInfoInternal()
929 if (unz64local_getLong(&s->z_filefunc, s->filestream,&file_info.crc) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
934 file_info.compressed_size = uL; in unz64local_GetCurrentFileInfoInternal()
938 file_info.uncompressed_size = uL; in unz64local_GetCurrentFileInfoInternal()
[all …]
/external/rust/crates/libz-sys/src/zlib/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/ImageMagick/MagickCore/
Dblob.c149 file_info; member
275 blob_info->file_info.file=(FILE *) NULL; in AttachBlob()
628 status=fflush(blob_info->file_info.file); in CloseBlob()
631 status=fsync(fileno(blob_info->file_info.file)); in CloseBlob()
635 if ((status != 0) && (ferror(blob_info->file_info.file) != 0)) in CloseBlob()
643 (void) gzerror(blob_info->file_info.gzfile,&status); in CloseBlob()
653 (void) BZ2_bzerror(blob_info->file_info.bzfile,&status); in CloseBlob()
663 if (blob_info->file_info.file != (FILE *) NULL) in CloseBlob()
667 status=fflush(blob_info->file_info.file); in CloseBlob()
670 status=fsync(fileno(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/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/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/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/python/cpython3/Lib/test/ziptestdata/
Dheader.sh16 for file_info in exe_zip.infolist():
17 data = exe_zip.read(file_info)
/external/google-breakpad/src/tools/windows/symupload/
Dsymupload.cc98 VS_FIXEDFILEINFO *file_info = in GetFileVersionString() local
102 file_info->dwFileVersionMS >> 16, in GetFileVersionString()
103 file_info->dwFileVersionMS & 0xffff, in GetFileVersionString()
104 file_info->dwFileVersionLS >> 16, in GetFileVersionString()
105 file_info->dwFileVersionLS & 0xffff); in GetFileVersionString()
/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()

1234