BPX1UPT (unlockpt) example
The following code unlocks the slave pseudoterminal device
associated with the master to which the file descriptor
refers. For the callable service, see unlockpt (BPX1UPT, BPX4UPT) — Unlock a pseudoterminal master/slave pair.
AMODE 64 callers use BPX4UPT (unlockpt) example.
CALL BPX1UPT, Unlocks slave pty from master +
(MASTER_FD, Input: File descriptor +
RETVAL, Return value: 0 or -1 +
RETCODE, Return code +
RSNCODE), Reason code +
VL,MF=(E,PLIST) ----------------------------------