Compiling a program to run in a 64-bit operating environment (that is, compiling with -xarch=v9 or v9a and running the executable on a SPARC platform running the 64-bit enabled Solaris 7 operating environment) changes the return values of certain functions. These are usually functions that interface standard system-level routines, such as malloc() (see "malloc, malloc64: Allocate Memory and Get Address"), and may take or return 32-bit or 64-bit values depending on the environment. To provide portability of code between 32-bit and 64-bit environments, 64-bit versions of these routines have been provided that always take and/or return 64-bit values. The following table identifies library routine provided for use in 64-bit environments:
Table 1-1 Library Routines for 64-bit Environments
Library Routines |
| |
---|---|---|
malloc64 |
Allocate memory and return a pointer | |
fseeko64 |
Reposition a large file |
"fseeko64, ftello64: Determine Position and Reposition a Large File " |
ftello64 |
Determine position of a large file |
"fseeko64, ftello64: Determine Position and Reposition a Large File " |
stat64, fstat64, lstat64 |
Determine status of a file | |
time64, ctime64, gmtime64, ltime64 |
Get system time, convert to character or dissected | |
qsort64 | Sort the elements of an array | "qsort,qsort64: Sort the Elements of a One-dimensional Array " |