t_unbind(3N)
NAME
t_unbind − disable a transport endpoint
SYNOPSIS
cc [ flag ... ] file ... −lnsl [ library ... ]
#include <tiuser.h>
int t_unbind(int fildes);
MT-LEVEL
MT-Safe
DESCRIPTION
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.
RETURN VALUES
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.
ERRORS
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.
SEE ALSO
SunOS 5.3 Network Interfaces Programmer’s Guide
NOTES
This interface is safe in multithreaded applications.
Sun Microsystems — Last change: 22 Jan 1993