The isatty callable service determines whether a file is a terminal.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE: | 31-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
The name of a fullword containing the file descriptor.
The name of a fullword in which the isatty service returns 1 if File_descriptor is a terminal, or 0 if it is not a terminal.
This function does not return -1. If the file descriptor is not valid, a zero is returned. If this service fails for other reasons, the process abends.
There are no restrictions on the use of the isatty service.
For an example using this callable service, see BPX1ITY (isatty) example.