t_unbind(3N) manual page
Table of Contents
t_unbind - disable a transport endpoint
cc [ flag ... ] file
... -lnsl [ library ... ]
#include <tiuser.h>
int t_unbind(int fildes);
MT-Safe
The t_unbind() function disables the transport endpoint specified
by fildes which was previously bound by t_bind(3N)
. On completion of this
call, no further data or events destined for this transport endpoint will
be accepted by the transport provider.
t_unbind() returns 0
on success. On failure t_unbind() returns -1, t_errno is set to indicate
the error, and possibly errno is set.
On failure, t_errno will be
set to one of the following:
- TBADF
- The specified file descriptor does
not refer to a transport endpoint.
- TLOOK
- An asynchronous event has occurred
on this transport endpoint.
- TOUTSTATE
- The function was issued in the wrong
sequence.
- TSYSERR
- A system error has occurred during execution of this
function, errno will be set to the specific error.
t_bind(3N)
This
interface is safe in multithreaded applications.
Table of Contents