Ch 4. LANGUAGES [ COMMUNICATOR 3000 MPE MPE/iX RELEASE 4.5 ] MPE/iX Communicators
COMMUNICATOR 3000 MPE MPE/iX RELEASE 4.5
Chapter 4 LANGUAGES
HP C/iX Enhancements
by Erryl Johnson
Systems Technology Division
BYTE STREAM FILE SUPPORT
The HP C/iX compiler and libraries have been enhanced to support the new
MPE/iX byte stream file type. Byte stream files are files that conform
to the definition of a stream file as defined by POSIX. They differ from
ordinary HP C/iX stream files in that the MPE/iX file structure is
transparent to them. For example, there are no physical end-of-records
and there is no difference between binary and ASCII files.
PRODUCT CHANGES
The HP C/iX compiler and preprocessor, and functions in the HP C/iX
library, were changed to allow them to access byte stream files. The HP
C/iX Library functions that were changed are fopen(), freopen(), open,
read, write and lseek.
HP C/iX Compiler Changes
The HP C/iX compiler and preprocessor were changed to allow source code
input from byte stream files. The changes are internal and are not
evident to the user.
HP C/iX Library Changes
Functions were changed in the HP C/iX Library to allow them to access
byte stream files. Functions were changed in the library as follows.
fopen(), freopen() - A new value of Bs was added for the mode parameter
to specify that a byte stream file is to be opened. A byte stream file
has a file type of BA and the record length is 1B.
open() - A new value of Bs was added for the mpe-opts parameter to
specify that a byte stream file is to be opened.
read(), write() - These functions were enhanced to read and write byte
stream files.
lseek() - The lseek() function was enhanced to move the read/write file
pointer in byte stream files.
MPE/iX Communicators