[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    t_unbind(3N) manual page Table of Contents

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

t_bind(3N)

Notes

This interface is safe in multithreaded applications.


Table of Contents