skip book previous and next navigation links
go up to top of book: HP OpenVMS I/O User's Reference ManualHP OpenVMS I/O User's Reference Manual
go to beginning of appendix: Control Connection RoutinesControl Connection Routines
go to previous page: PDT$CREATE  Create a Pseudoterminal PDT$CREATE Create a Pseudoterminal
go to next page: PDT$READ  Read Data from Pseudoterminal PDT$READ Read Data from Pseudoterminal
end of book navigation links

PDT$DELETE -- Deletea Pseudoterminal  



Forces the pseudoterminal to be deleted and frees the channel.

Format 

PDT$DELETE chan

Returns 

OpenVMS
usage:
 longword (unsigned)
type : write
access: by value

Argument 

chan 



OpenVMS usage:
 channel
type : word (unsigned)
access: read only
mechanism: by value
Number of the I/O channel assigned to the pseudoterminal.This channel is only intended to be used for PTD$XXX operations.

Description 

PTD$DELETE forces the pseudoterminal to be deleted and freesthe channel assigned to the pseudoterminal. When a pseudoterminalis deleted, any process using the pseudoterminal (except the controlprogram) is disconnected. A PTD$DELETE request causes any pendingI/O for the control program to be aborted. It deletes any queuedevent notification ASTs and returns the I/O buffers back to theapplication. It also causes the pseudoterminal unit control block(UCB) to be deleted once the reference count returns to zero.

ReturnValues 

SS$_NORMAL
Normal successful completion.
SS$_DEVOFFLINE
Device is off line and request cannot proceed.
SS$_IVCHAN
Illegal channel.
SS$_NOPRIV
Insufficient privilege to perform request.


go to previous page: PDT$CREATE  Create a Pseudoterminal PDT$CREATE Create a Pseudoterminal
go to next page: PDT$READ  Read Data from Pseudoterminal PDT$READ Read Data from Pseudoterminal