Transport Layer Interface Library (libtli.a)
#include <tiuser.h>
void t_error(errmsg) char *errmsg; extern int t_errno; extern char *t_errno; extern int t_nerr;
The t_error subroutine produces a message on the standard error output that describes the last error encountered during a call to a transport function.
The t_error subroutine prints the user-supplied error message, followed by a colon and the standard transport-function error message for the current value contained in the t_errno variable.
errmsg | Specifies a user-supplied error message that gives context to the error. |
A t_connect subroutine is unsuccessful on transport end point fd2 because a bad address was given, and the following call follows the failure:
t_error("t_connect failed on fd2")
The diagnostic message would print as:
t_connect failed on fd2: Incorrect transport address format
In this example, t_connect failed on fd2 tells the user which function was unsuccessful on which transport end point, and Incorrect transport address format identifies the specific error that occurred.
This subroutine is part of Base Operating System (BOS) Runtime.
List of Streams Programming References, STREAMS Overview in AIX Version 4.3 Communications Programming Concepts.