[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 12:35:16 -0700 |
Yo Hal!
On Sat, 09 Apr 2022 12:26:30 -0700
Hal Murray <halmurray@sonic.net> wrote:
> gem@rellim.com said:
> > For some definition of "works". I don't know how to get scons to
> > check for warnings. This will take some pondering.
>
> Can you do the test at run time?
Not in C.
> Something like call strerror_r and see if the answer matches either
> your string or the answer from strerror. Or something like that.
The problem is musl returns an (int), as specified in POSIX, and globc
returns a (char *). No way to tell them apart at runtime in C. No
polymorphism.
I could try to use typeof() at compile time, but that is not standard C
either. So not.
I'm trying to figure out where to file a musl bug, and failing.. Their
code says the obey _GNU_SOURCE, and looking at the code, they kinda do
try, but fail.
No one on #musl. No bug tracker.
> Plan B:
>
> Is gpsd multithreaded?
Yes, that is the whole point of strerror_r().
> There are many other places that just call
> strerror. If you aren't worried about race conditions, just want the
> string to stay around for a while, call strerror then copy if over to
> where strerror_r would have put it.
Yes, exactly what we can't do in a thread.
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
pgpEhowXt_p43.pgp
Description: OpenPGP digital signature
- ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/07
- Re: ✘gpsd .23.2~rc1, Hal Murray, 2022/04/08
- Re: ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/08
- Re: ✘gpsd .23.2~rc1, Hal Murray, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Hal Murray, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Hal Murray, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Hal Murray, 2022/04/09
- Re: ✘gpsd .23.2~rc1,
Gary E. Miller <=
- Re: ✘gpsd .23.2~rc1, Hal Murray, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Fred Wright, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/09
- Re: ✘gpsd .23.2~rc1, Fred Wright, 2022/04/11
- Re: ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/11
- Re: ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/11
- Re: ✘gpsd .23.2~rc1, Hal Murray, 2022/04/11
- Re: ✘gpsd .23.2~rc1, Gary E. Miller, 2022/04/11
- Re: ✘gpsd .23.2~rc1, Fred Wright, 2022/04/12