public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: Newlib <newlib@sourceware.org>
Subject: Re: Avoid using common symbols in v850 libgloss
Date: Sat, 19 Mar 2022 23:07:38 -0600	[thread overview]
Message-ID: <86afc417-b274-cfca-c6aa-36cef7bde230@gmail.com> (raw)
In-Reply-To: <YjaBTtkfURhTh5Ts@vapier>



On 3/19/2022 7:20 PM, Mike Frysinger wrote:
> On 09 Feb 2022 18:58, Jeff Law wrote:
>> I've had this lying around for probably a year or two at this point.
>> It just changes all the instance of "errno" from a common symbol to an
>> extern.  I can't offhand recall where the actual definition is, but it
>> certainly exists in the generic code.
>>
>> --- a/libgloss/v850/_exit.c
>> +++ b/libgloss/v850/_exit.c
>> @@ -3,7 +3,7 @@
>>   #include <sys/stat.h>
>>   #include "sys/syscall.h"
>>   
>> -int errno;
>> +extern int errno;
> why not just include errno.h ?  using `extern int errno;` is so pre-2000 :p.
:-0  I think i wrote it in the late 90s, so you're spot on.

In reality it didn't even cross my mind.   No objections if it gets 
changed, though ideally I'll never hack v850 newlib again :-)

jeff

      reply	other threads:[~2022-03-20  5:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-10  1:58 Jeff Law
2022-02-10 15:03 ` Corinna Vinschen
2022-03-19 22:54   ` Brian Inglis
2022-03-19 23:57     ` Jeff Law
2022-03-20  1:20 ` Mike Frysinger
2022-03-20  5:07   ` Jeff Law [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86afc417-b274-cfca-c6aa-36cef7bde230@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).