Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I access files larger than 2G with MKS Toolkit porting APIs?

0
Posted

Can I access files larger than 2G with MKS Toolkit porting APIs?

0

Windows NT/2K/XP with NTFS or Windows 9x/Me with FAT32 allow files larger than 2G (FAT32 imposes a file size restriction of 4G (32-bit unsigned offsets) while NTFS has a 16 exabyte size restriction (64-bit unsigned offsets)). MKS Toolkit will permit sequential access to such files today. APIs such as read() without lseek() and utilities such as cp and tar use the Win32 API ReadFile and are not restricted by file system. However, if you wish to use, for example, sort to manipulate a file larger than 2G, or use lseek() to an offest which cannot be represented by a number less than or equal to 231-1 (the maximum signed 32-bit quantity), then you either need tools and APIs that are large file aware or native Win64 ports of the tools and the APIs. Arbitrary File Sizes to the Single UNIX Specification. Further, various utilities such as more, pg and sort will be enhanced to support files as large as 263-1 (the maximum signed 64-bit quantity) where possible by the underlying data structures u

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123