get_nderror(3N)


get_nderror, set_nderror -- get/set nderror value

Synopsis

cc [options] file -lnsl
#include <netdir.h> 

int get_nderror(void);

int set_nderror(int);

Description

The get_nderror and set_nderror functions are used in multi-threaded applications that use Name-to-Address Translation (netdir(3N)) to set and return the value in _nderror.

These functions are required by applications compiled with the _REENTRANT flag if the user needs to set the thread-specific version of _nderror.

Files

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

Usage

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

References

intro(2), intro(3N), netdir(3N)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.