Back to index

glibc  2.9
Defines
gethstbynm2_r.c File Reference
#include <ctype.h>
#include <errno.h>
#include <netdb.h>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include "../nss/getXXbyYY_r.c"

Go to the source code of this file.

Defines

#define LOOKUP_TYPE   struct hostent
#define FUNCTION_NAME   gethostbyname2
#define DATABASE_NAME   hosts
#define ADD_PARAMS   const char *name, int af
#define ADD_VARIABLES   name, af
#define NEED_H_ERRNO   1
#define NEED__RES_HCONF   1
#define POSTPROCESS
#define HANDLE_DIGITS_DOTS   1
#define HAVE_LOOKUP_BUFFER   1
#define HAVE_AF   1
#define DB_LOOKUP_FCT   __nss_hosts_lookup2

Define Documentation

#define ADD_PARAMS   const char *name, int af

Definition at line 31 of file gethstbynm2_r.c.

#define ADD_VARIABLES   name, af

Definition at line 32 of file gethstbynm2_r.c.

#define DATABASE_NAME   hosts

Definition at line 30 of file gethstbynm2_r.c.

#define DB_LOOKUP_FCT   __nss_hosts_lookup2

Definition at line 44 of file gethstbynm2_r.c.

Definition at line 29 of file gethstbynm2_r.c.

#define HANDLE_DIGITS_DOTS   1

Definition at line 39 of file gethstbynm2_r.c.

#define HAVE_AF   1

Definition at line 41 of file gethstbynm2_r.c.

#define HAVE_LOOKUP_BUFFER   1

Definition at line 40 of file gethstbynm2_r.c.

#define LOOKUP_TYPE   struct hostent

Definition at line 28 of file gethstbynm2_r.c.

#define NEED__RES_HCONF   1

Definition at line 34 of file gethstbynm2_r.c.

#define NEED_H_ERRNO   1

Definition at line 33 of file gethstbynm2_r.c.

#define POSTPROCESS
Value:
if (status == NSS_STATUS_SUCCESS)                                    \
    _res_hconf_reorder_addrs (resbuf);

Definition at line 35 of file gethstbynm2_r.c.