t_getinfo(S) (TLI/XTI) 6 January 1993 t_getinfo(S) Name t_getinfo - get protocol-specific service information Syntax TLI syntax cc . . . -lnsls #include <sys/tiuser.h> int t_getinfo (fd, info) int fd; struct t_info *info; XTI syntax cc . . . -lxti #include <xti.h> int t_getinfo (fd, info) int fd; struct t_info *info; Description This function returns the current characteristics of the underlying transport protocol associated with file descriptor fd. The info struc- ture is used to return the same information returned by topen. This function enables a transport user to access this information during any phase of communication. This argument points to the t_info(FP) structure. On failure, terrno may be set to one of the following: [TBADF] The specified file descriptor does not refer to a trans- port endpoint. [TSYSERR] A system error has occurred during execution of this func- tion. When this error code is set, errno is also set to EIO. Diagnostics The tgetinfo function returns 0 on success and -1 on failure, and terrno is set to indicate the error. See also tinfo(FP), topen(S) Standards conformance tgetinfo is conformant with: AT&T SVID Issue 2; X/Open Portability Guide, Issue 3, 1989; and Intel386 Binary Compatibility Specification, Edition 2 (iBCSe2).