FreeBSD/contrib/ntp/ntpq/ntpq-subs.c
/*
 * sysstats - implements ntpq -c sysstats modeled on ntpdc -c sysstats
 */
implements ntpq -c sysstats modeled on ntpdc -c sysstats
implements ntpq - c sysstats modeled on ntpdc - c sysstats
static void
sysstats(
	struct parse *pcmd,
	FILE *fp
	)
{
    static vdc sysstats_vdc[] = {
	VDC_INIT("ss_uptime",		"uptime:               ", NTP_STR),
	VDC_INIT("ss_reset",		"sysstats reset:       ", NTP_STR),
	VDC_INIT("ss_received",		"packets received:     ", NTP_STR),
	VDC_INIT("ss_thisver",		"current version:      ", NTP_STR),
	VDC_INIT("ss_oldver",		"older version:        ", NTP_STR),
	VDC_INIT("ss_badformat",	"bad length or format: ", NTP_STR),
	VDC_INIT("ss_badauth",		"authentication failed:", NTP_STR),
	VDC_INIT("ss_declined",		"declined:             ", NTP_STR),
	VDC_INIT("ss_restricted",	"restricted:           ", NTP_STR),
	VDC_INIT("ss_limited",		"rate limited:         ", NTP_STR),
	VDC_INIT("ss_kodsent",		"KoD responses:        ", NTP_STR),
	VDC_INIT("ss_processed",	"processed for time:   ", NTP_STR),
	VDC_INIT(NULL,			NULL,			  0)
    };
	collect_display_vdc(0, sysstats_vdc, FALSE, fp);
}
static void sysstats ( struct parse * pcmd , FILE * fp ) { static vdc sysstats_vdc [ ] = { VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , VDC_INIT ( " " , " " , NTP_STR ) , 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 , sysstats_vdc , FALSE , fp ) ; }
sysstats - implements ntpq -c sysstats modeled on ntpdc -c sysstats
sysstats - implements ntpq - c sysstats modeled on ntpdc - c sysstats