Large-file support: Difference between revisions

Content deleted Content added
See also: reinserted FAT32+ (step 2 of 2)
EL2REF, the "Single UNIX Specification" is related to the now wikilinked POSIX
Line 14:
* To support binary compatibility with old [[Application software|applications]], operating system [[Application programming interface|interfaces]] had to retain their use of 32-bit file sizes and new interfaces had to be designed specifically for large-file support.
* To support writing [[porting|portable]] code that makes use of LFS where possible, [[C standard library]] authors devised mechanisms that, depending on [[C preprocessor|preprocessor]] constants, transparently redefined the functions to the 64-bit large-file aware ones.
* Many old interfaces, especially [[C (programming language)|C]]-based ones, explicitly specified argument types in a way that did not allow straightforward or transparent transition to 64-bit types. For example, the C functions <code>[[fseek]]</code> and <code>ftell</code> operate on file positions of type <code>long int</code>, which is typically 32 bits wide on 32-bit platforms, and cannot be made larger without sacrificing backward compatibility. (This was resolved by introducing new functions <code>fseeko</code> and <code>ftello</code> in [[POSIX]]. On Windows machines, under Visual C++, functions <code>_fseeki64</coderef>{{ andcite <code>_ftelli64</code> are used.)journal
|date= 1996-08-14
|url = http://opengroup.org/platform/lfs.html
|title= Adding Large File Support to the Single UNIX Specification
|publisher= X/Open Base Working Group
|accessdate= 2006-09-10
}}</ref> On Windows machines, under Visual C++, functions <code>_fseeki64</code> and <code>_ftelli64</code> are used.)
 
==See also==
Line 29 ⟶ 35:
{{Reflist|refs=
<ref name="DRDOS_FAT+_R2">{{cite web|title=FAT+ draft revision 2|first1=Udo|last1=Kuhnt|first2=Luchezar|last2=Georgiev|first3=Jeremy|last3=Davis|date=2007|format=FATPLUS.TXT|edition=2|url=http://www.fdos.org/kernel/fatplus.txt|accessdate=2015-08-05}}{{cite web |url=http://www.unet.univie.ac.at/~a0503736/php/drdoswiki/index.php?n=Main.FATplus |title=Archived copy |accessdate=2012-11-12 |archiveurl=https://web.archive.org/web/20120320075317/http://www.unet.univie.ac.at/~a0503736/php/drdoswiki/index.php?n=Main.FATplus |archivedate=2012-03-20 }}</ref>
}}
* {{ cite journal
|date= 1996-08-14
|url = http://opengroup.org/platform/lfs.html
|title= Adding Large File Support to the Single UNIX Specification
|publisher= X/Open Base Working Group
|accessdate= 2006-09-10
}}
* {{cite journal