get_h_errno(SSC)
get_h_errno, set_h_errno --
get/set h_errno value
Synopsis
cc [options] file -lsocket -lnsl
#include <sys/socket.h>
int get_h_errno(void);
int set_h_errno(int);
Description
The get_h_errno and set_h_errno functions
are used in multi-threaded applications that use the Socket Interface
to set and return the value in h_errno.
These functions are required by
applications compiled with the -Kthread option if the user
needs to set the thread-specific version of h_errno.
Files
/usr/lib/libsocket.so-
Socket Library (shared object)
Usage
While get_h_errno and set_h_errno 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(S),
intro(SSC)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005