Back to index

glibc  2.9
Defines | Functions
gethstbyad_r.c File Reference
#include <netdb.h>
#include "../nss/getXXbyYY_r.c"

Go to the source code of this file.

Defines

#define LOOKUP_TYPE   struct hostent
#define FUNCTION_NAME   gethostbyaddr2
#define FUNCTION2_NAME   gethostbyaddr
#define DATABASE_NAME   hosts
#define ADD_PARAMS   const void *addr, socklen_t len, int type
#define EXTRA_PARAMS   , int32_t *ttlp
#define ADD_VARIABLES   addr, len, type
#define EXTRA_VARIABLES   , ttlp
#define NEED_H_ERRNO   1
#define NEED__RES   1
#define NEED__RES_HCONF   1

Functions

int __gethostbyaddr_r (const void *addr, socklen_t len, int type, struct hostent *result_buf, char *buf, size_t buflen, struct hostent **result, int *h_errnop)

Define Documentation

#define ADD_PARAMS   const void *addr, socklen_t len, int type

Definition at line 26 of file gethstbyad_r.c.

#define ADD_VARIABLES   addr, len, type

Definition at line 28 of file gethstbyad_r.c.

#define DATABASE_NAME   hosts

Definition at line 25 of file gethstbyad_r.c.

#define EXTRA_PARAMS   , int32_t *ttlp

Definition at line 27 of file gethstbyad_r.c.

#define EXTRA_VARIABLES   , ttlp

Definition at line 29 of file gethstbyad_r.c.

Definition at line 24 of file gethstbyad_r.c.

#define FUNCTION_NAME   gethostbyaddr2

Definition at line 23 of file gethstbyad_r.c.

#define LOOKUP_TYPE   struct hostent

Definition at line 22 of file gethstbyad_r.c.

#define NEED__RES   1

Definition at line 31 of file gethstbyad_r.c.

#define NEED__RES_HCONF   1

Definition at line 32 of file gethstbyad_r.c.

#define NEED_H_ERRNO   1

Definition at line 30 of file gethstbyad_r.c.


Function Documentation

int __gethostbyaddr_r ( const void *  addr,
socklen_t  len,
int  type,
struct hostent result_buf,
char *  buf,
size_t  buflen,
struct hostent **  result,
int h_errnop 
)

Definition at line 38 of file gethstbyad_r.c.

{
  return __gethostbyaddr2_r (addr, len, type, result_buf, buf, buflen,
                          result, h_errnop, NULL);
}

Here is the call graph for this function: