/third_party/libsnd/docs/ |
D | linux_games_programming.txt | 215 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/zlib/contrib/minizip/ |
D | miniunz.c | 251 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 …]
|
D | unzip.c | 1091 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/skia/third_party/externals/zlib/contrib/minizip/ |
D | miniunz.c | 249 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 …]
|
D | unzip.c | 887 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/node/deps/v8/third_party/zlib/contrib/minizip/ |
D | miniunz.c | 248 unz_file_info64 file_info; local 252 … err = unzGetCurrentFileInfo64(uf,&file_info,filename_inzip,sizeof(filename_inzip),NULL,0,NULL,0); 258 if (file_info.uncompressed_size>0) 259 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size); 262 if ((file_info.flag & 1) != 0) 265 if (file_info.compression_method==0) 268 if (file_info.compression_method==Z_DEFLATED) 270 uInt iLevel=(uInt)((file_info.flag & 0x6)/2); 279 if (file_info.compression_method==Z_BZIP2ED) 286 Display64BitsSize(file_info.uncompressed_size,7); [all …]
|
D | unzip.c | 887 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/ |
D | lsof.c | 37 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/ |
D | zip_reader_impl.cc | 249 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/node/deps/uv/src/win/ |
D | fs-event.c | 428 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 …]
|
D | fs.c | 649 FILE_STANDARD_INFO file_info; in fs__open() local 652 &file_info, in fs__open() 653 sizeof file_info)) { in fs__open() 658 fd_info.is_directory = file_info.Directory; in fs__open() 1709 FILE_ALL_INFORMATION file_info; in fs__stat_handle() local 1716 &file_info, in fs__stat_handle() 1717 sizeof file_info, in fs__stat_handle() 1773 (file_info.BasicInformation.FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) { in fs__stat_handle() 1785 if (file_info.BasicInformation.FileAttributes & FILE_ATTRIBUTE_DIRECTORY) { in fs__stat_handle() 1790 statbuf->st_size = file_info.StandardInformation.EndOfFile.QuadPart; in fs__stat_handle() [all …]
|
/third_party/libuv/src/win/ |
D | fs-event.c | 428 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 …]
|
D | fs.c | 649 FILE_STANDARD_INFO file_info; in fs__open() local 652 &file_info, in fs__open() 653 sizeof file_info)) { in fs__open() 658 fd_info.is_directory = file_info.Directory; in fs__open() 1709 FILE_ALL_INFORMATION file_info; in fs__stat_handle() local 1716 &file_info, in fs__stat_handle() 1717 sizeof file_info, in fs__stat_handle() 1773 (file_info.BasicInformation.FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) { in fs__stat_handle() 1785 if (file_info.BasicInformation.FileAttributes & FILE_ATTRIBUTE_DIRECTORY) { in fs__stat_handle() 1790 statbuf->st_size = file_info.StandardInformation.EndOfFile.QuadPart; in fs__stat_handle() [all …]
|
/third_party/gn/src/base/files/ |
D | file_win.cc | 172 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()
|
D | file_util_posix.cc | 175 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 …]
|
D | file_posix.cc | 250 stat_wrapper_t file_info; in GetLength() local 251 if (CallFstat(file_.get(), &file_info)) in GetLength() 254 return file_info.st_size; in GetLength() 266 stat_wrapper_t file_info; in GetInfo() local 267 if (CallFstat(file_.get(), &file_info)) in GetInfo() 270 info->FromStat(file_info); in GetInfo()
|
/third_party/curl/tests/libtest/ |
D | lib505.c | 45 struct_stat file_info; in test() local 66 hd = fstat(fileno(hd_src), &file_info); in test() 76 if(!file_info.st_size) { in test() 135 (curl_off_t)file_info.st_size); in test()
|
D | lib541.c | 42 struct_stat file_info; in test() local 58 hd = fstat(fileno(hd_src), &file_info); in test() 68 if(!file_info.st_size) { in test()
|
D | lib525.c | 40 struct_stat file_info; in test() local 66 hd = fstat(fileno(hd_src), &file_info); in test() 108 easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t)file_info.st_size); in test()
|
/third_party/curl/docs/examples/ |
D | fileupload.c | 37 struct stat file_info; in main() local 46 if(fstat(fileno(fd), &file_info) != 0) in main() 63 (curl_off_t)file_info.st_size); in main()
|
D | httpput.c | 66 struct stat file_info; in main() local 78 stat(file, &file_info); in main() 107 (curl_off_t)file_info.st_size); in main()
|
D | ftpupload.c | 74 struct stat file_info; in main() local 82 if(stat(LOCAL_FILE, &file_info)) { in main() 86 fsize = (unsigned long)file_info.st_size; in main()
|
D | anyauthput.c | 90 struct stat file_info; in main() local 103 fstat(FILENO(fp), &file_info); in main() 133 (curl_off_t)file_info.st_size); in main()
|
/third_party/python/Lib/test/ziptestdata/ |
D | header.sh | 16 for file_info in exe_zip.infolist(): 17 data = exe_zip.read(file_info)
|
D | exe_with_z64 | 16 for file_info in exe_zip.infolist(): 17 data = exe_zip.read(file_info)
|