Forces the pseudoterminal to be deleted and frees
Number of the I/O channel assigned to the pseudoterminal.
This channel is only intended to be used for PTD$XXX operations.
PTD$DELETE forces the pseudoterminal to be deleted
and frees the channel assigned to the pseudoterminal. When a pseudoterminal
is deleted, any process using the pseudoterminal (except the control
program) is disconnected. A PTD$DELETE request causes any pending
I/O for the control program to be aborted. It deletes any queued event
notification ASTs and returns the I/O buffers back to the application.
It also causes the pseudoterminal unit control block (UCB) to be deleted
once the reference count returns to zero.
D.3.5 Return Values
|Normal successful completion.|
|SS$_DEVOFFLINE||Device is off line and request cannot proceed.|
|SS$_NOPRIV||Insufficient privilege to perform request.|