Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to burn CD in DOS? 2 GB limit ? DVD crap ... (Users)

posted by Rugxulo Homepage, Usono, 19.12.2007, 02:18

> What link exaclty? I can only say win9x api and also DJGPP and other C
> programs uses signed 32bit for file pointers (look at e.g. seek function)
> and then cannot handle files over 2GB. FAT32 directory entry uses probably
> unsigned 32bit so may use 4G but then you may have problems to read file
> in many C programs.

(quoted from here):

> Here is a list of changes from DJGPP V2.03 to V2.04.
> * The functions _creat, _creatnew and _open now set extended size flag
> in DOS calls to be able to create files with size up to 2^32-1,
> supported on FAT32 volumes.
> * The function llseek added with type offset_t to support file seeks
> up to 2^32-2.
> * The function statfs have been made to report correct values > 2^31
> on FAT32 partitions.
> * The function _invent_inode has been changed to start numbering
> invented inodes from USHRT_MAX+1 to 2^28+1.
> * Functions _is_cdrom_drive, _is_ram_drive and _media_type has been
> taken out of `mntent.c' and made externally callable.
> * New functions _get_fat_size, _get_fs_type and _is_fat32 added.

So, some improved functionality is present in DJGPP 2.04 beta, at least.

> OK, checked on Wiky: "The maximum possible size for a file on a FAT32
> volume is 4 GiB minus 1 Byte"

P.S. I haven't tested this in pure FreeDOS either.

---
Know your limits.h

 

Complete thread:

Back to the forum
Board view  Mix view
22749 Postings in 2119 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum