Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ t_close(3) — CLIX 3.1r7.6.28

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

t_getstate(3)

t_open(3)

t_unbind(3)



  tclose(3)                          CLIX                          tclose(3)



  NAME

    t_close - Closes a transport endpoint

  LIBRARY

    Transport Layer Interface (TLI) Library (libnsl_s.a)

  SYNOPSIS

    #include <tiuser.h>

    int t_close(
      int fd );

  PARAMETERS

    fd   An integer representing a file descriptor

  DESCRIPTION

    The t_close() function informs the transport provider that the user is
    finished with the transport endpoint specified by fd, and frees any local
    library resources associated with the endpoint.  In addition, t_close()
    closes the file associated with the transport endpoint.

    The t_close() function should be called from the T_UNBND state [see
    t_getstate()].  However, this function does not check state information,
    so it may be called from any state to close a transport endpoint.  If this
    occurs, the local library resources associated with the endpoint will be
    freed automatically.  In addition, close() will be issued for that file
    descriptor; the close() will be abortive if no other process has that file
    open, and will break any transport connection that may be associated with
    that endpoint.

  RETURN VALUES

    The function t_close() returns 0 on success and -1 on failure, and t_errno
    is set to indicate the error.

  ERRORS

    On failure, t_errno may be set to the following:

    [TBADF]   The specified file descriptor does not refer to a transport
              endpoint.

  RELATED INFORMATION

    Functions:  t_getstate(3), t_open(3), t_unbind(3).




  2/94 - Intergraph Corporation                                              1






  tclose(3)                          CLIX                          tclose(3)



    AT&T UNIX System V Network Programmer's Guide.





















































  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026