diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-07 00:46:29 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-07 00:49:21 -0500 |
commit | 02c9c43a3aaaf73f84fdf9fbc96e9a32e546d273 (patch) | |
tree | 36a2a1be1db9e495e43f2d3b091bfb97d93dfcc4 /ntpshmread.c | |
parent | 8e2682c26186af8fcdc48b4fc8a02685a0ccc6a1 (diff) | |
download | gpsd-02c9c43a3aaaf73f84fdf9fbc96e9a32e546d273.tar.gz |
Begin factoring out ntplib.
All knowledge of the ntpd SHM format is now confined to the three
files ntpshm.h, ntpshmread.c, and ntpshmwrite.c.
No logic changes. All regression tests pass. PPS works on GR-601W.
Diffstat (limited to 'ntpshmread.c')
-rw-r--r-- | ntpshmread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ntpshmread.c b/ntpshmread.c index d230f663..1282f779 100644 --- a/ntpshmread.c +++ b/ntpshmread.c @@ -47,7 +47,7 @@ struct shmTime /*@null@*/ *shm_get(const int unit, const bool create, const bool } /*@-statictrans@*/ -char *shm_name(const int unit) +char *ntp_name(const int unit) /* return the name of a specified segment */ { static char name[5] = "NTP\0"; @@ -58,7 +58,7 @@ char *shm_name(const int unit) } /*@+statictrans@*/ -enum segstat_t shm_query(/*@null@*/struct shmTime *shm_in, /*@out@*/struct shm_stat_t *shm_stat, const bool consume) +enum segstat_t ntp_read(/*@null@*/struct shmTime *shm_in, /*@out@*/struct shm_stat_t *shm_stat, const bool consume) /* try to grab a sample from the specified SHM segment */ { volatile struct shmTime shmcopy, *shm = shm_in; |