Module console-utils - Console application utility routines
Console application utility routines. For console application modules, #INCLUDE "app_if.inc". For statically compiled console applications, #USE "cons_utils".
Index
-
Process
connect.driver.block- Connected to an unshared block device -
Process
connect.driver.input- Connected to an unshared input device -
Process
connect.driver.output- Connected to an unshared output device -
Process
connect.driver.shared.block- Connects to a shared block device -
Process
connect.driver.shared.input- Connected to a shared input device -
Process
connect.driver.shared.output- Connected to a shared output device
Declarations
cons_utils.occ:138Process connect.driver.block
PROC connect.driver.block (SHARED CT.KERNEL! to.kernel, CHAN BYTE scr!, BOOL ok, VAL []BYTE my.name, dev.name, RESULT CT.BLOCK! dev)
Connected to an unshared block device.
Parameters:
SHARED CT.KERNEL! |
to.kernel |
Link to kernel. |
CHAN BYTE |
scr |
Screen channel. |
BOOL |
ok |
Test and set success. |
VAL []BYTE |
my.name |
Name of application calling this (for reporting). |
VAL []BYTE |
dev.name |
Name of the device to connect to. |
RESULT CT.BLOCK! |
dev |
Returned block device connection. |
cons_utils.occ:232Process connect.driver.input
PROC connect.driver.input (SHARED CT.KERNEL! to.kernel, CHAN BYTE scr!, BOOL ok, VAL []BYTE my.name, dev.name, RESULT CT.INPUT! dev)
Connected to an unshared input device.
Parameters:
SHARED CT.KERNEL! |
to.kernel |
Link to kernel. |
CHAN BYTE |
scr |
Screen channel. |
BOOL |
ok |
Test and set success. |
VAL []BYTE |
my.name |
Name of application calling this (for reporting). |
VAL []BYTE |
dev.name |
Name of the device to connect to. |
RESULT CT.INPUT! |
dev |
Returned input device connection. |
cons_utils.occ:420Process connect.driver.output
PROC connect.driver.output (SHARED CT.KERNEL! to.kernel, CHAN BYTE scr!, BOOL ok, VAL []BYTE my.name, dev.name, RESULT CT.OUTPUT! dev)
Connected to an unshared output device.
Parameters:
SHARED CT.KERNEL! |
to.kernel |
Link to kernel. |
CHAN BYTE |
scr |
Screen channel. |
BOOL |
ok |
Test and set success. |
VAL []BYTE |
my.name |
Name of application calling this (for reporting). |
VAL []BYTE |
dev.name |
Name of the device to connect to. |
RESULT CT.OUTPUT! |
dev |
Returned output device connection. |