TNS/E Native Application Conversion Guide

C and C++ Conversion Tasks
TNS/E Native Application Conversion Guide—529659-003
3-10
Replacing Calls to Obsolete C Library Guardian
Alternate-Model I/O Functions
on the system running the program. For details, see the function’s reference page
online or in the
Open System Services Library Calls Reference Manual
.
The obsolete Guardian alternate-model I/O functions and replacement options are
listed in Table 3-2.
Table 3-2. Obsolete Guardian Alternate-Model I/O Functions
Obsolete Function Suggested Replacement
close() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
creat() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
edlseek() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
fcloseall() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
fcntl() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
fdopen() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
fdtogfn() Replace with the gfileno() function.
fileno() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
lastreceive() Recode using Guardian FILE_GETRECEIVEINFO_ procedure.
lseek() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
open() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
read() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
readupdate() Recode using Guardian READUPDATEX procedure.
receiveinfo() Recode using Guardian FILE_GETRECEIVEINFO_ procedure.
reply() Recode using Guardian REPLYX procedure.
unlink() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
write() Recode using ANSI-model I/O functions or Guardian system
procedures. Use OSS versions of function.
writeread() Recode using Guardian WRITEREADX procedure.