QNX RTOS v4 Knowledge Base
  
QNX RTOS v4 Knowledge Base
  
    
      | 
          
            | Title | Creating a 2 GB file in QNX4 |  
            | Ref. No. | QNX.000001499 |  
            | Category(ies) | Filesystem, Development |  
            | Issue | In QNX4, if we write to a file until the size exceeds 2GB, the write call returns zero bytes written but the file system becomes corrupted. Is this a known problem? 
 
 
 
 
 
 
 
 
 
 |  
            | Solution | The 2 gigabytes is a POSIX implied limit: long (32 bits). This limitation is defined in the header /usr/include/sys/fsys.h. If you need to write files this large, you may want to consider writing to a raw/empty partition.
 |  |