HPlogo MPE/iX Intrinsics Reference Manual > Chapter 5 Command Definitions (FCONTROL - FLOCK)

FCONTROL

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Performs various control operations on a file or on the device where the file resides, including:
  • Supplying a printer or terminal carriage control directive.

  • Verifying I/O.

  • Reading the hardware status word for the device where the file resides.

  • Setting a terminal's timeout interval.

  • Repositioning a file at its beginning.

  • Writing an end-of-file marker.

  • Skipping forward or backward to a tape mark.

Syntax



            I16V     I16V     *
  FCONTROL (filenum, itemnum, item);

Parameters


filenum

16-bit signed integer by value (required)

Passes the file number of the file for which the control operation is to be performed.

itemnum

16-bit signed integer by value (required)

Specifies which operation is to be performed (refer to following list).

item

type varies (required)

Passes/returns a value associated with a control operation as indicated by the corresponding itemnum parameter (refer to following list).

(KSAM) This parameter is ignored, but must be specified to satisfy internal requirements.


FCONTROL Itemnum/Item Values


NOTE: Itemnums 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 itemnums 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 FDEVICECONTROL, FREAD, FSETMODE, FWRITE, IODONTWAIT, IOWAIT, 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
Trap Handling Programmer's Guide




Chapter 5 Command Definitions (FCONTROL - FLOCK)


FDELETE