DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

get_t_errno(SSC)


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(S), t_error(NET), t_strerror(NET)

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.


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005