RTEMS CPU Kit with SuperCore
Macros | Functions
res_comp.c File Reference
#include <sys/types.h>
#include <sys/param.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <ctype.h>
#include <resolv.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for res_comp.c:

Macros

#define BIND_4_COMPAT
 
#define PERIOD   0x2e
 
#define hyphenchar(c)   ((c) == 0x2d)
 
#define bslashchar(c)   ((c) == 0x5c)
 
#define periodchar(c)   ((c) == PERIOD)
 
#define asterchar(c)   ((c) == 0x2a)
 
#define alphachar(c)
 
#define digitchar(c)   ((c) >= 0x30 && (c) <= 0x39)
 
#define borderchar(c)   (alphachar(c) || digitchar(c))
 
#define middlechar(c)   (borderchar(c) || hyphenchar(c))
 
#define domainchar(c)   ((c) > 0x20 && (c) < 0x7f)
 

Functions

int dn_expand (const u_char *msg, const u_char *eom, const u_char *src, char *dst, int dstsiz)
 
int dn_comp (const char *src, u_char *dst, int dstsiz, u_char **dnptrs, u_char **lastdnptr)
 
int dn_skipname (const u_char *ptr, const u_char *eom)
 
int res_hnok (const char *dn)
 
int res_ownok (const char *dn)
 
int res_mailok (const char *dn)
 
int res_dnok (const char *dn)
 
void __putlong (u_int32_t src, u_char *dst)
 
void __putshort (u_int16_t src, u_char *dst)
 
u_int32_t _getlong (const u_char *src)
 
u_int16_t _getshort (const u_char *src)
 

Macro Definition Documentation

◆ alphachar

#define alphachar (   c)
Value:
(((c) >= 0x41 && (c) <= 0x5a) \
|| ((c) >= 0x61 && (c) <= 0x7a))