Previous section.

Technical Standard: Networking Services (XNS), Issue 5.2 Draft 2.0
Copyright © 1999 The Open Group

NAME

h_errno - error return value for network database operations

SYNOPSIS


#include <netdb.h>


DESCRIPTION

Refer to endhostent(). Note that this method of returning errors is used only in connection with legacy functions.

The <netdb.h> header provides a declaration of h_errno as a modifiable l-value of type int.

Applications should obtain the definition of h_errno by the inclusion of <netdb.h>. The practice of defining h_errno in a program as an extern int h_errno is obsolescent.

It is unspecified whether h_errno is a macro or an identifier declared with external linkage. If a macro definition is suppressed in order to access an actual object, or a program defines an identifier with the name h_errno, the behaviour is undefined.

SEE ALSO

errno

CHANGE HISTORY

First released in Issue 4.

Contents Next section Index