en:docs:dos:api:int21:42

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:docs:dos:api:int21:42 [2021/04/30 04:35] – created prokusheven:docs:dos:api:int21:42 [2024/05/02 08:17] (current) prokushev
Line 33: Line 33:
 ===== Notes ===== ===== Notes =====
  
-  for origins 01h and 02h, the pointer may be positioned before the +for origins 01h and 02h, the pointer may be positioned before the start of the file; no error is returned in that case (except under Windows NT), but subsequent attempts at I/O will produce errors 
-          start of the file; no error is returned in that case (except under +           
-          Windows NT), but subsequent attempts at I/O will produce errors +if the new position is beyond the current end of file, the file will be extended by the next write (see AH=40h); for FAT32 drives, the file must have been opened with AX=6C00h with the "extended size" flag in order to expand the file beyond 2GB 
-        if the new position is beyond the current end of file, the file will +           
-          be extended by the next write (see AH=40h); for FAT32 drives, the +BUG:    using this method to grow a file from zero bytes to a very large size can corrupt the FAT in some versions of DOS; the file should first be grown from zero to one byte and then to the desired large size
-          file must have been opened with AX=6C00h with the "extended size" +
-          flag in order to expand the file beyond 2GB +
-  BUG:    using this method to grow a file from zero bytes to a very large size +
-          can corrupt the FAT in some versions of DOS; the file should first +
-          be grown from zero to one byte and then to the desired large size+
                      
 ===== See also ===== ===== See also =====
  
- AH=24h,INT 2F/AX=1228h+AH=[[en:docs:dos:api:int21:24|24h]],INT 2F/AX=1228h
  
 ===== Note ===== ===== Note =====