FreeBSD/contrib/ntp/ntpd/refclock_true.c
/*
 * true_send - time to send the clock a signal to cough up a time sample
 */
time to send the clock a signal to cough up a time sample
time to send the clock a signal to cough up a time sample
static void
true_send(
	struct peer *peer,
	const char *cmd
	)
{
	struct refclockproc *pp;
	pp = peer->procptr;
	if (!(pp->sloppyclockflag & CLK_FLAG1)) {
		size_t len = strlen(cmd);
		true_debug(peer, "Send '%s'\n", cmd);
		if (write(pp->io.fd, cmd, (unsigned)len) != len)
			refclock_report(peer, CEVNT_FAULT);
		else
			pp->polls++;
	}
}
static void true_send ( struct peer * peer , const char * cmd ) { struct refclockproc * pp ; pp = peer -> procptr ; if ( ! ( pp -> sloppyclockflag & CLK_FLAG1 ) ) { size_t len = strlen ( cmd ) ; true_debug ( peer , " \n " , cmd ) ; if ( write ( pp -> io . fd , cmd , ( unsigned ) len ) != len ) refclock_report ( peer , CEVNT_FAULT ) ; else pp -> polls ++ ; } }
true_send - time to send the clock a signal to cough up a time sample
true_send - time to send the clock a signal to cough up a time sample