Back to index

glibc  2.9
Defines | Functions
gethstbynm3_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   gethostbyname3
#define FUNCTION2_NAME   gethostbyname2
#define DATABASE_NAME   hosts
#define ADD_PARAMS   const char *name, int af
#define EXTRA_PARAMS   , int32_t *ttlp, char **canonp
#define ADD_VARIABLES   name, af
#define EXTRA_VARIABLES   , ttlp, canonp
#define NEED_H_ERRNO   1
#define NEED__RES_HCONF   1
#define HANDLE_DIGITS_DOTS   1
#define HAVE_LOOKUP_BUFFER   1
#define HAVE_AF   1
#define __inet_aton   inet_aton

Functions

int __gethostbyname2_r (const char *name, int af, struct hostent *ret, char *buf, size_t buflen, struct hostent **result, int *h_errnop)

Define Documentation

#define __inet_aton   inet_aton

Definition at line 42 of file gethstbynm3_r.c.

#define ADD_PARAMS   const char *name, int af

Definition at line 31 of file gethstbynm3_r.c.

#define ADD_VARIABLES   name, af

Definition at line 33 of file gethstbynm3_r.c.

#define DATABASE_NAME   hosts

Definition at line 30 of file gethstbynm3_r.c.

#define EXTRA_PARAMS   , int32_t *ttlp, char **canonp

Definition at line 32 of file gethstbynm3_r.c.

#define EXTRA_VARIABLES   , ttlp, canonp

Definition at line 34 of file gethstbynm3_r.c.

Definition at line 29 of file gethstbynm3_r.c.

#define FUNCTION_NAME   gethostbyname3

Definition at line 28 of file gethstbynm3_r.c.

#define HANDLE_DIGITS_DOTS   1

Definition at line 38 of file gethstbynm3_r.c.

#define HAVE_AF   1

Definition at line 40 of file gethstbynm3_r.c.

#define HAVE_LOOKUP_BUFFER   1

Definition at line 39 of file gethstbynm3_r.c.

#define LOOKUP_TYPE   struct hostent

Definition at line 27 of file gethstbynm3_r.c.

#define NEED__RES_HCONF   1

Definition at line 36 of file gethstbynm3_r.c.

#define NEED_H_ERRNO   1

Definition at line 35 of file gethstbynm3_r.c.


Function Documentation

int __gethostbyname2_r ( const char *  name,
int  af,
struct hostent ret,
char *  buf,
size_t  buflen,
struct hostent **  result,
int h_errnop 
)

Definition at line 48 of file gethstbynm3_r.c.

{
  return __gethostbyname3_r (name, af, ret, buf, buflen, result, h_errnop,
                          NULL, NULL);
}

Here is the call graph for this function: