RTEMS CPU Kit with SuperCore
Data Structures | Macros | Functions | Variables
gethostbydns.c File Reference
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <netdb.h>
#include <resolv.h>
#include <ctype.h>
#include <errno.h>
#include <syslog.h>
#include "res_config.h"
Include dependency graph for gethostbydns.c:

Data Structures

union  querybuf
 
union  align
 

Macros

#define SPRINTF(x)   ((size_t)sprintf x)
 
#define MAXALIASES   35
 
#define MAXADDRS   35
 
#define MAXPACKET   1024
 
#define BOUNDED_INCR(x)
 
#define BOUNDS_CHECK(ptr, count)
 

Functions

void abort (void)
 
struct hostent_gethostbydnsname (const char *name, int af)
 
struct hostent_gethostbydnsaddr (const char *addr, int len, int af)
 
void _sethostdnsent (int stayopen)
 
void _endhostdnsent (void)
 

Variables

int h_errno
 
int _dns_ttl_
 

Macro Definition Documentation

◆ BOUNDED_INCR

#define BOUNDED_INCR (   x)
Value:
do { \
cp += x; \
if (cp > eom) { \
h_errno = NO_RECOVERY; \
return (NULL); \
} \
} while (0)

◆ BOUNDS_CHECK

#define BOUNDS_CHECK (   ptr,
  count 
)
Value:
do { \
if ((ptr) + (count) > eom) { \
h_errno = NO_RECOVERY; \
return (NULL); \
} \
} while (0)