DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

get_t_errno(3sock)


get_t_errno, set_t_errno -- get/set t_errno value

Synopsis

cc [options] file -lnsl

#include <xti.h>

int get_t_errno(void);

int set_t_errno(int);

Description

The set_t_errno and get_t_errno functions are used in TLI/XTI multithreaded applications to set and return the value of t_errno. These functions avoid the inconsistencies that may occur when t_errno is accessed directly in conditions of low memory.

Files


/usr/lib/libxti.so
X/Open® Transport Interface Library (shared object)

/usr/lib/libnsl.so
Network Services Library (shared object)

Usage

While get_t_errno and set_t_errno are designed for use in multi-threaded applications, they are available for use in non-reentrant code and may be incorporated if a need is anticipated to convert to reentrant code later.

References

intro(2), t_error(3xti), t_strerror(3xti)

Notices

The get_t_errno and set_t_errno functions may not be available in other versions of the UNIX® operating system.

You are encouraged not to set t_errno, either directly or by calling set_t_errno.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004