File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / sntp / utilities.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 1 month ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    1: #ifndef UTILITIES_H
    2: #define UTILITIES_H
    3: 
    4: #include <math.h>
    5: #include <stdio.h>
    6: #include <stdlib.h>
    7: #include <ntp_stdlib.h>
    8: #include <ntp_fp.h>
    9: #include <ntp.h>
   10: 
   11: #define HLINE "--------------------------------------------------------------------------------\n"
   12: #define PHLINE fprintf(output, HLINE);
   13: #define STDLINE printf(HLINE);
   14: 
   15: 
   16: void pkt_output (struct pkt *dpkg, int pkt_length, FILE *output);
   17: void l_fp_output (l_fp *ts, FILE *output);
   18: void l_fp_output_bin (l_fp *ts, FILE *output);
   19: void l_fp_output_dec (l_fp *ts, FILE *output);
   20: 
   21: char *addrinfo_to_str (struct addrinfo *addr);
   22: char *ss_to_str (sockaddr_u *saddr);
   23: char *tv_to_str (const struct timeval *tv);
   24: 
   25: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>