gpsd-dev
[Top][All Lists]
Advanced

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

Re: ✘gpsd .23.2~rc1


From: Gary E. Miller
Subject: Re: ✘gpsd .23.2~rc1
Date: Sat, 9 Apr 2022 13:04:19 -0700

Yo Hal!

On Sat, 09 Apr 2022 13:00:00 -0700
Hal Murray <halmurray@sonic.net> wrote:

> >> Is gpsd multithreaded?  
> > Yes, that is the whole point of strerror_r().   
> 
> There are lots of calls to strerror (no _r) in gpsd/

Yes, in the main thread.  One thread can use strerror() is the
other ones use strerror_r().  In the case of gpsd, the other
thread is ppsthread, the only other thread.

> -----
> 
> >> Can you do the test at run time?  
> > Not in C.  
> 
> I was thinking of the config time test.  If the test compiles, can
> you run it and check the return code?  If so,  assume the answer is
> an int and test for being less than 1000.

The problem is it compiles fine either way.  Less than 1000 may work,
but pretty devious.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpTtq3dMatJT.pgp
Description: OpenPGP digital signature


reply via email to

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