MPE/iX Intrinsics Reference Manual (32650-90875)

Chapter 6 275
Command Definitions (FLUSHLOG-GETUSERMODE)
FSETMODE
FSETMODE
NM and CM callable.
Controls the following access modes of files or devices:
Issuing carriage return and line feed to terminal after a terminal read.
Reporting tape automatic error recovery.
Guaranteeing chronological order of user program write requests.
Blocking program execution until physical completion of write requests.
NOTE
FSETMODE is ignored for message files
Syntax
I16V U16V
FSETMODE(
filenum,modeflags
);
Parameters
filenum
16-bit signed integer by value (required)
Passes the file number of the file whose access modes are to be set.
modeflags
16-bit unsigned integer by value (required)
Passes the access mode option:
Bits Value/Meaning
15:1 Controls chronological order of user program writes. This mode controls
write requests to the file from all writers on the system.
0 Do not change the write queue where this file is being
accessed
1 Access this file through the serial write queue
(ASC) Not used for asynchronous serial devices.
(KSAM) Set this bit to zero.
NOTE
A file placed on the serial write queue remains until the file is purged.
Bits Value/Meaning
14:1 Controls
blocking of program execution until completion of physical write
operations. This mode controls writes to
filenum
only from the calling process.
0
Return control to the program from a write request without
waiting for completion of the physical write operation