gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Planning a 3.11 snap release


From: Greg Troxel
Subject: Re: [gpsd-dev] Planning a 3.11 snap release
Date: Tue, 26 Nov 2013 08:38:31 -0500
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.4 (berkeley-unix)

"Gary E. Miller" <address@hidden> writes:

> Yo Eric!
>
> On Sun, 24 Nov 2013 11:41:24 -0500
> "Eric S. Raymond" <address@hidden> wrote:
>
>> Or, better yet, rewrite it purely in terms of the API calls.  I think
>> it's quite likely that will work on both platforms.  That would be 
>> a big win.
>
> Can't happen.  Finding the correct /dev/ppsX is explicitly out of
> scope for the RFC.

For Linux, it can't happen.  For systems which follow the Principle of
Least Astonishment and have the PPS API calls on the serial fd, I am
pretty sure one can -- aside from that one-line assumption -- just use
the documented API.

But, this is fixed.  I added ifdefs so that the special Linux code (line
discipline, groveling in /sys for the pps name, opening it) is only
compiled on Linux.   Systems other than Linux assume that the serial fd
is the one to use, and I believe that's true on every other system that
supports RFC2783.

Attachment: pgpFhJrhcKKW6.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]