Home
last modified time | relevance | path

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

1234

/third_party/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 …]
/third_party/weston/libweston/
Dlinux-sync-file.c52 struct sync_file_info file_info = { { 0 } }; in linux_sync_file_is_valid() local
54 if (ioctl(fd, SYNC_IOC_FILE_INFO, &file_info) < 0) in linux_sync_file_is_valid()
57 return file_info.num_fences > 0; in linux_sync_file_is_valid()
69 struct sync_file_info file_info = { { 0 } }; in weston_linux_sync_file_read_timestamp() local
74 file_info.sync_fence_info = (uint64_t)(uintptr_t)&fence_info; in weston_linux_sync_file_read_timestamp()
75 file_info.num_fences = 1; in weston_linux_sync_file_read_timestamp()
77 if (ioctl(fd, SYNC_IOC_FILE_INFO, &file_info) < 0) in weston_linux_sync_file_read_timestamp()
/third_party/glib/gio/
Dgzlibcompressor.c67 GFileInfo *file_info; member
78 compressor->file_info == NULL) in g_zlib_compressor_set_gzheader()
84 filename = g_file_info_get_name (compressor->file_info); in g_zlib_compressor_set_gzheader()
89 (uLong) g_file_info_get_attribute_uint64 (compressor->file_info, in g_zlib_compressor_set_gzheader()
110 if (compressor->file_info) in G_DEFINE_TYPE_WITH_CODE()
111 g_object_unref (compressor->file_info); in G_DEFINE_TYPE_WITH_CODE()
169 g_value_set_object (value, compressor->file_info); in g_zlib_compressor_get_property()
308 return compressor->file_info; in g_zlib_compressor_get_file_info()
329 GFileInfo *file_info) in g_zlib_compressor_set_file_info() argument
333 if (file_info == compressor->file_info) in g_zlib_compressor_set_file_info()
[all …]
Dgzlibdecompressor.c56 GFileInfo *file_info; member
83 if (decompressor->header_data->file_info) in g_zlib_decompressor_set_gzheader()
84 g_object_unref (decompressor->header_data->file_info); in g_zlib_decompressor_set_gzheader()
117 if (decompressor->header_data->file_info) in G_DEFINE_TYPE_WITH_CODE()
118 g_object_unref (decompressor->header_data->file_info); in G_DEFINE_TYPE_WITH_CODE()
167 g_value_set_object (value, decompressor->header_data->file_info); in g_zlib_decompressor_get_property()
295 return decompressor->header_data->file_info; in g_zlib_decompressor_get_file_info()
386 data->file_info = g_file_info_new (); in g_zlib_decompressor_convert()
387 g_file_info_set_attribute_uint64 (data->file_info, in g_zlib_decompressor_convert()
390 g_file_info_set_attribute_uint32 (data->file_info, in g_zlib_decompressor_convert()
[all …]
/third_party/libsnd/docs/
Dlinux_games_programming.txt215 SF_INFO file_info;
222 file = sf_open_read(filename, &file_info);
226 if ((file_info.format & 0x0F) != SF_FORMAT_PCM) {
232 if ((file_info.pcmbitwidth == 8) && (file_info.channels == 1)) {
234 } else if ((file_info.pcmbitwidth == 8) && (file_info.channels == 2)) {
236 } else if ((file_info.pcmbitwidth == 16) && (file_info.channels == 1)) {
238 } else if ((file_info.pcmbitwidth == 16) && (file_info.channels == 2)) {
247 buffer_short = (short *)malloc(file_info.samples * file_info.channels * sizeof (short));
249 … buffer_8 = (u_int8_t *)malloc(file_info.samples * file_info.channels * file_info.pcmbitwidth / 8);
259 if (sf_readf_short(file,buffer_short,file_info.samples) == (size_t)-1) {
[all …]
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/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 …]
/third_party/flutter/skia/third_party/externals/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 …]
/third_party/zlib/contrib/minizip/
Dminiunz.c251 unz_file_info64 file_info; local
255 … err = unzGetCurrentFileInfo64(uf,&file_info,filename_inzip,sizeof(filename_inzip),NULL,0,NULL,0);
261 if (file_info.uncompressed_size>0)
262 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size);
265 if ((file_info.flag & 1) != 0)
268 if (file_info.compression_method==0)
271 if (file_info.compression_method==Z_DEFLATED)
273 uInt iLevel=(uInt)((file_info.flag & 0x6)/2);
282 if (file_info.compression_method==Z_BZIP2ED)
289 Display64BitsSize(file_info.uncompressed_size,7);
[all …]
Dunzip.c1091 unz_file_info64 file_info; in unz64local_GetCurrentFileInfoInternal() local
1116 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.version) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
1119 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.version_needed) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
1122 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.flag) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
1125 if (unz64local_getShort(&s->z_filefunc, s->filestream,&file_info.compression_method) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
1128 if (unz64local_getLong(&s->z_filefunc, s->filestream,&file_info.dosDate) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
1131 unz64local_DosDateToTmuDate(file_info.dosDate,&file_info.tmu_date); in unz64local_GetCurrentFileInfoInternal()
1133 if (unz64local_getLong(&s->z_filefunc, s->filestream,&file_info.crc) != UNZ_OK) in unz64local_GetCurrentFileInfoInternal()
1138 file_info.compressed_size = uL; in unz64local_GetCurrentFileInfoInternal()
1142 file_info.uncompressed_size = uL; in unz64local_GetCurrentFileInfoInternal()
[all …]
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/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 …]
/third_party/cef/libcef/browser/
Dzip_reader_impl.cc249 unz_file_info file_info; in GetFileInfo() local
250 memset(&file_info, 0, sizeof(file_info)); in GetFileInfo()
252 if (unzGetCurrentFileInfo(reader_, &file_info, file_name, sizeof(file_name), in GetFileInfo()
259 filesize_ = file_info.uncompressed_size; in GetFileInfo()
263 time.tm_sec = file_info.tmu_date.tm_sec; in GetFileInfo()
264 time.tm_min = file_info.tmu_date.tm_min; in GetFileInfo()
265 time.tm_hour = file_info.tmu_date.tm_hour; in GetFileInfo()
266 time.tm_mday = file_info.tmu_date.tm_mday; in GetFileInfo()
267 time.tm_mon = file_info.tmu_date.tm_mon; in GetFileInfo()
268 time.tm_year = file_info.tmu_date.tm_year - 1900; // Years since 1900. in GetFileInfo()
/third_party/libuv/src/win/
Dfs-event.c428 FILE_NOTIFY_INFORMATION* file_info; in uv__process_fs_event_req() local
450 file_info = (FILE_NOTIFY_INFORMATION*)(handle->buffer + offset); in uv__process_fs_event_req()
455 file_info = (FILE_NOTIFY_INFORMATION*)((char*)file_info + offset); in uv__process_fs_event_req()
466 file_info->FileName, in uv__process_fs_event_req()
467 file_info->FileNameLength) == 0 || in uv__process_fs_event_req()
469 file_info->FileName, in uv__process_fs_event_req()
470 file_info->FileNameLength) == 0) { in uv__process_fs_event_req()
479 if (file_info->Action != FILE_ACTION_REMOVED && in uv__process_fs_event_req()
480 file_info->Action != FILE_ACTION_RENAMED_OLD_NAME) { in uv__process_fs_event_req()
483 file_info->FileNameLength / sizeof(WCHAR) + 2; in uv__process_fs_event_req()
[all …]
/third_party/glib/gio/tests/
Dg-file-info-filesystem-readonly.c93 GFileInfo *file_info; in test_filesystem_readonly() local
166 file_info = g_file_query_filesystem_info (mounted_file, in test_filesystem_readonly()
169 g_assert_nonnull (file_info); in test_filesystem_readonly()
170 if (! g_file_info_get_attribute_boolean (file_info, G_FILE_ATTRIBUTE_FILESYSTEM_READONLY)) in test_filesystem_readonly()
190 g_clear_object (&file_info); in test_filesystem_readonly()
193 file_info = g_file_query_filesystem_info (mounted_file, in test_filesystem_readonly()
196 g_assert_nonnull (file_info); in test_filesystem_readonly()
198 …g_assert_false (g_file_info_get_attribute_boolean (file_info, G_FILE_ATTRIBUTE_FILESYSTEM_READONLY… in test_filesystem_readonly()
202 g_clear_object (&file_info); in test_filesystem_readonly()
/third_party/gn/src/base/files/
Dfile_win.cc172 BY_HANDLE_FILE_INFORMATION file_info; in GetInfo() local
173 if (!GetFileInformationByHandle(file_.Get(), &file_info)) in GetInfo()
177 size.HighPart = file_info.nFileSizeHigh; in GetInfo()
178 size.LowPart = file_info.nFileSizeLow; in GetInfo()
181 (file_info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0; in GetInfo()
184 *reinterpret_cast<uint64_t*>(&file_info.ftLastWriteTime); in GetInfo()
186 *reinterpret_cast<uint64_t*>(&file_info.ftLastAccessTime); in GetInfo()
187 info->creation_time = *reinterpret_cast<uint64_t*>(&file_info.ftCreationTime); in GetInfo()
Dfile_util_posix.cc175 stat_wrapper_t file_info; in DeleteFile() local
176 if (CallLstat(path_str, &file_info) != 0) { in DeleteFile()
180 if (!S_ISDIR(file_info.st_mode)) in DeleteFile()
271 stat_wrapper_t file_info; in DirectoryExists() local
272 if (CallStat(path.value().c_str(), &file_info) != 0) in DirectoryExists()
274 return S_ISDIR(file_info.st_mode); in DirectoryExists()
304 stat_wrapper_t file_info; in GetPosixFilePermissions() local
307 if (CallStat(path.value().c_str(), &file_info) != 0) in GetPosixFilePermissions()
310 *mode = file_info.st_mode & FILE_PERMISSION_MASK; in GetPosixFilePermissions()
489 stat_wrapper_t file_info; in GetFileInfo() local
[all …]
/third_party/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()
/third_party/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()
/third_party/boost/tools/quickbook/src/
Ddocument_state.cpp18 struct file_info struct
20 boost::shared_ptr<file_info> const parent; argument
34 explicit file_info( in file_info() argument
35 boost::shared_ptr<file_info> const& parent_, in file_info()
50 explicit file_info( in file_info() function
51 boost::shared_ptr<file_info> const& parent_, in file_info()
91 file_info const* current_file_, in section_info()
273 boost::shared_ptr<file_info> parent = current_file; in start_file()
315 current_file = boost::make_shared<file_info>( in start_file()
366 current_file = boost::make_shared<file_info>( in start_file()

1234