1/* 2 * refclock_nmea.c - clock driver for an NMEA GPS CLOCK 3 * Michael Petry Jun 20, 1994 4 * based on refclock_heathn.c 5 */ 6#ifdef HAVE_CONFIG_H 7#include <config.h> 8#endif 9
| 1/* 2 * refclock_nmea.c - clock driver for an NMEA GPS CLOCK 3 * Michael Petry Jun 20, 1994 4 * based on refclock_heathn.c 5 */ 6#ifdef HAVE_CONFIG_H 7#include <config.h> 8#endif 9
|
10#if defined(SYS_WINNT) 11#undef close 12#define close closesocket 13#endif 14
| |
15#if defined(REFCLOCK) && defined(CLOCK_NMEA) 16 17#include <stdio.h> 18#include <ctype.h> 19 20#include "ntpd.h" 21#include "ntp_io.h" 22#include "ntp_unixtime.h" 23#include "ntp_refclock.h" 24#include "ntp_stdlib.h" 25 26#ifdef HAVE_PPSAPI 27# include "ppsapi_timepps.h" 28#endif /* HAVE_PPSAPI */ 29
| 10#if defined(REFCLOCK) && defined(CLOCK_NMEA) 11 12#include <stdio.h> 13#include <ctype.h> 14 15#include "ntpd.h" 16#include "ntp_io.h" 17#include "ntp_unixtime.h" 18#include "ntp_refclock.h" 19#include "ntp_stdlib.h" 20 21#ifdef HAVE_PPSAPI 22# include "ppsapi_timepps.h" 23#endif /* HAVE_PPSAPI */ 24
|
| 25#ifdef SYS_WINNT 26extern int async_write(int, const void *, unsigned int); 27#undef write 28#define write(fd, data, octets) async_write(fd, data, octets) 29#endif 30
|
30/* 31 * This driver supports the NMEA GPS Receiver with 32 * 33 * Protype was refclock_trak.c, Thanks a lot. 34 * 35 * The receiver used spits out the NMEA sentences for boat navigation. 36 * And you thought it was an information superhighway. Try a raging river 37 * filled with rapids and whirlpools that rip away your data and warp time.
--- 725 unchanged lines hidden --- | 31/* 32 * This driver supports the NMEA GPS Receiver with 33 * 34 * Protype was refclock_trak.c, Thanks a lot. 35 * 36 * The receiver used spits out the NMEA sentences for boat navigation. 37 * And you thought it was an information superhighway. Try a raging river 38 * filled with rapids and whirlpools that rip away your data and warp time.
--- 725 unchanged lines hidden --- |