FreeBSD/contrib/ntp/ntpq/ntpq-subs.c
/*
 * sysinfo - modeled on ntpdc's sysinfo
 */
modeled on ntpdc's sysinfo
modeled on ntpdc ' s sysinfo
static void
sysinfo(
	struct parse *pcmd,
	FILE *fp
	)
{
    static vdc sysinfo_vdc[] = {
	VDC_INIT("peeradr",		"system peer:      ", NTP_ADP),
	VDC_INIT("peermode",		"system peer mode: ", NTP_MODE),
	VDC_INIT("leap",		"leap indicator:   ", NTP_2BIT),
	VDC_INIT("stratum",		"stratum:          ", NTP_STR),
	VDC_INIT("precision",		"log2 precision:   ", NTP_STR),
	VDC_INIT("rootdelay",		"root delay:       ", NTP_STR),
	VDC_INIT("rootdisp",		"root dispersion:  ", NTP_STR),
	VDC_INIT("refid",		"reference ID:     ", NTP_STR),
	VDC_INIT("reftime",		"reference time:   ", NTP_LFP),
	VDC_INIT("sys_jitter",		"system jitter:    ", NTP_STR),
	VDC_INIT("clk_jitter",		"clock jitter:     ", NTP_STR),
	VDC_INIT("clk_wander",		"clock wander:     ", NTP_STR),
	VDC_INIT("bcastdelay",		"broadcast delay:  ", NTP_STR),
	VDC_INIT("authdelay",		"symm. auth. delay:", NTP_STR),
	VDC_INIT(NULL,			NULL,		      0)
    };
	collect_display_vdc(0, sysinfo_vdc, TRUE, fp);
}
static void sysinfo ( struct parse * pcmd , FILE * fp ) { static vdc sysinfo_vdc [ ] = { VDC_INIT ( " " , " " , NTP_ADP ) , VDC_INIT ( " " , " " , NTP_MODE ) , VDC_INIT ( " " , " " , NTP_2BIT ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_LFP ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( NULL , NULL , 0 ) } ; collect_display_vdc ( 0 , sysinfo_vdc , TRUE , fp ) ; }
sysinfo - modeled on ntpdc's sysinfo
sysinfo - modeled on ntpdc ' s sysinfo