This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] sys/types.h: Avoid bit-manipulation of signed values
- From: Nick Withers <nick dot withers at anu dot edu dot au>
- To: Sebastian Huber <sebastian dot huber at embedded-brains dot de>, <newlib at sourceware dot org>
- Date: Fri, 27 Nov 2015 19:08:22 +1100
- Subject: Re: [PATCH] sys/types.h: Avoid bit-manipulation of signed values
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp dot mailfrom=nick dot withers at anu dot edu dot au;
- References: <1447301650 dot 1005 dot 14 dot camel at anu dot edu dot au> <20151112125702 dot GD17435 at calimero dot vinschen dot de> <1447368147 dot 1197 dot 5 dot camel at anu dot edu dot au> <20151113095343 dot GA21792 at calimero dot vinschen dot de> <5645F761 dot 8070906 at embedded-brains dot de> <20151114095520 dot GA18580 at calimero dot vinschen dot de> <5649B565 dot 4000500 at embedded-brains dot de> <20151116115538 dot GA5533 at calimero dot vinschen dot de> <564AD481 dot 9010903 at embedded-brains dot de> <20151117134519 dot GL6402 at calimero dot vinschen dot de> <20151126091723 dot GB21977 at calimero dot vinschen dot de> <565805B0 dot 608 at embedded-brains dot de> <1448610407 dot 1200 dot 2 dot camel at anu dot edu dot au> <56580E38 dot 2070109 at embedded-brains dot de>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
On Fri, 2015-11-27 at 09:03 +0100, Sebastian Huber wrote:
>
> On 27/11/15 08:46, Nick Withers wrote:
> > On Fri, 2015-11-27 at 08:26 +0100, Sebastian Huber wrote:
> > > >
> > > > On 26/11/15 10:17, Corinna Vinschen wrote:
> > > > > > > > > > Looks good. I need some time to use this in RTEMS,
> > > > > > > > > > since I am
> > > > > > > > > > currently busy
> > > > > > > > > > > > > > with other stuff and this is only a nice to
> > > > > > > > > > > > > > have.
> > > > > > > > > >
> > > > > > > > > > That's ok, I'm pretty busy myself. Can you ping
> > > > > > > > > > back as soon
> > > > > > > > > > as you
> > > > > > > > > > tested this?
> > > > > > Did you test this in the meantime?
> > > >
> > > > Sorry, please don't wait for me. It will be next year before I
> > > > can
> > > > work
> > > > on this.
> > Is this the kind of thing a humble RTEMS user might be able to
> > figure
> > out?
> >
> > It sounds like I'd have to do some hacking on / remove RTEMS'
> > sys/select.h at least?
>
> The goal is to use a Newlib <sys/select.h> that is capable to replace
> these two files:
>
> https://git.rtems.org/rtems/tree/cpukit/libnetworking/sys/select.h
> https://git.rtems.org/rtems-libbsd/tree/freebsd/sys/sys/select.h
>
> What complicates the things a bit is that the FreeBSD file uses
>
> https://git.rtems.org/rtems-libbsd/tree/freebsd/sys/sys/_sigset.h
>
> which is used by other header files as well.
Righto, thanks Sebastian.
I'm heading off for the weekend, but if I don't hear anything I'll have
a crack at it on Monday.
Have a good one all!
--
Nick Withers
Embedded Systems Programmer
Department of Nuclear Physics, Research School of Physics and Engineering
The Australian National University (CRICOS: 00120C)