DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

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 -Kthread option 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)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004