This chapter describes some of the more common
ways that intrinsics can be used to control asynchronous devices
and includes sample code segments to demonstrate these uses. The
segments are coded in Pascal/iX, but should be helpful regardless
of the language you are using. While details of declaring and calling
intrinsics vary between languages, the principles of their application
do not. For more information on using intrinsics with FORTRAN 77/iX
or COBOL II/iX you should see the MPE/iX Intrinsics Reference
Manual as well as the reference manual for the individual
language.
The following device control functions are described in this
chapter:
Setting up access to a file and defining
its characteristics through FOPEN.
Reading from an asynchronous device using FREAD.
Writing to an asynchronous device using FWRITE.
Manipulating device settings through FCONTROL calls.
Closing devicefiles using FCLOSE.