Open System Services Programmer's Guide

if(typeinfo[0] == 3) {
printf("object type = %d\n", typeinfo[2]);
printf("file type = %d\n", typeinfo[3]);
printf("file code = %d\n", typeinfo[4]);
}
return(0);
}
Accessing OSS Files Larger Than 2 GB
Small Files and Large Files
For RVUs earlier than H06.06 and G06.29, OSS files always had an underlying Guardian file
format of Format 1 and were limited in size to approximately 2 GB (GB). This size limitation was
a direct result of using 32-bit data types for file sizes and offsets. For J-series RVUs, H06.06 and
later RVUs, and G06.29 and later G-series RVUs, 64-bit data types and offsets can be used, and
OSS files are either small files or large files.
Characteristics of Small Files
Small files:
Have an underlying Guardian file format of either Format 1 or Format 2. This underlying file
format is normally not visible to customer applications.
Have a size limit of approximately 2 GB when opened or created using a 32-bit API. For
information about the exact size limits, see the Open System Services Management and
Operations Guide.
Can be accessed using the existing 32-bit application programmatic interfaces (APIs) such as
creat( ) and open() in addition to the 64-bit APIs such as creat64() and open64().
If the file is accessed using a 64-bit API:
The file is automatically converted to use an underlying Guardian file format of Format 2.
The file no longer has a size limit of approximately 2 GB. It can grow to the size limit for
large files.
Can be moved, copied, or restored to systems running RVUs that do not support OSS large
files. In such cases, if the file has an underlying Guardian file format of Format 2 but a size
of less than approximately 2 GB:
The file is automatically converted to use an underlying Guardian format of Format 1.
The file becomes subject to the file size limit of approximately 2 GB.
Characteristics of Large Files
Large files:
Are larger than approximately 2 GB.
Have a size limit of approximately 1 terabyte, constrained by the space available on the disk
volume. For information about the exact size limits, see the Open System Services Management
and Operations Guide.
NOTE: For J-series RVUs, H06.06 and later H-series RVUs, and G06.29 and later G-series
RVUs, a pax archive file is limited to 8 GB.
Have an underlying Guardian file format of Format 2. This underlying file format is normally
not visible to customer applications when OSS APIs are used, but might affect program
78 Managing Files