get_h_errno(3sock)
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(2),
intro(3sock)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004