"Fossies" - the Fresh Open Source Software Archive

Member "whois/whois.h" (19 Jul 2019, 1676 Bytes) of package /linux/privat/whois_5.5.9.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "whois.h" see the Fossies "Dox" file reference documentation.

    1 #include "utils.h"
    2 
    3 /* 6bone referto: extension */
    4 #define REFERTO_FORMAT  "%% referto: whois -h %255s -p %15s %1021[^\n\r]"
    5 
    6 #define HIDE_TO_THE_END  -3
    7 #define HIDE_DISABLED    -2
    8 #define HIDE_NOT_STARTED -1
    9 
   10 /* prototypes */
   11 char *guess_server(const char *);
   12 const char *match_config_file(const char *);
   13 const char *whereas(const unsigned long);
   14 const char *whereas32(const unsigned long);
   15 char *queryformat(const char *, const char *, const char *);
   16 int hide_line(int *hiding, const char *const line);
   17 char *do_query(const int, const char *);
   18 char *query_crsnic(const int, const char *);
   19 char *query_afilias(const int, const char *);
   20 char *query_iana(const int, const char *);
   21 int openconn(const char *, const char *);
   22 int connect_with_timeout(int, const struct sockaddr *, socklen_t, int);
   23 void NORETURN usage(int error);
   24 void NORETURN alarm_handler(int);
   25 void NORETURN sighandler(int);
   26 int japanese_locale(void);
   27 unsigned long myinet_aton(const char *);
   28 unsigned long asn32_to_long(const char *);
   29 int isasciidigit(const char);
   30 int endstrcaseeq(const char *, const char *);
   31 int in_domain(const char *, const char *);
   32 const char *is_new_gtld(const char *);
   33 int domfind(const char *, const char *[]);
   34 char *normalize_domain(const char *);
   35 char *convert_6to4(const char *);
   36 char *convert_teredo(const char *);
   37 char *convert_inaddr(const char *);
   38 char *convert_in6arpa(const char *);
   39 int handle_query(const char *server, const char *port,
   40            const char *qstring, const char *fstring);
   41 void split_server_port(const char *const input, char **server, char **port);
   42 
   43 
   44 /* flags for RIPE-like servers */
   45 const char *ripeflags="abBcdFGKlLmMrRx";
   46 const char *ripeflagsp="gisTtvq";
   47