MPE/iX Intrinsics Reference Manual (32650-90905)

142 Chapter5
Command Definitions (FCONTROL - FLOCK)
FCONTROL
ioctl_parm_type = record
request : integer;
arg : localanyptr;
func_return : localanyptr;
end;
The caller must correctly fill in the values of the structure before calling
the FCONTROL intrinsic. The functions that are supported through this
option are defined as standard documentation on the ioctl( ) function.
NOTE
Itemnum
s 10 through 41 are used in changing terminal characteristics.
Included with the definition of the code is an indication, where applicable, of
whether the characteristic is reset in break mode or after FCLOSE.
Characteristics that are reset in break mode are restored when there is a
RESUME from break mode.
Operation Notes
The FCONTROL intrinsic applies to files on disk, tape, terminal, or line printers. There are
some special conditions that exist when using FCONTROL with files on labeled magnetic
tape. Some FCONTROL functions cannot be used with labeled tapes, and other functions can
produce unexpected results. (Refer to
itemnum
s 5, 6, 7, 8, and 9.)
NOTE If you are performing control operations on terminal devices, refer to the
Asynchronous Serial Communications Programmer's Reference Manual for
details on FCONTROL parameters specific to terminal control.
Condition Codes
CCE (2) Request granted.
CCG (0) Not returned.
CCL (1) Request denied. An error occurred.
Related Information
Intrinsics FWRITE, FDEVICECONTROL, RESETCONTROL, XCONTRAP
Manuals Accessing Files Programmer's Guide, Interprocess Communication
Programmer's Guide, Asynchronous Serial Communications
Programmer's Reference Manual, MPE/iX Commands Reference Manual,
Using KSAM XL, and Trap Handling Programmer's Guide