This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Better FreeBSD compatibility
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Thu, 7 Apr 2016 09:50:33 +0200
- Subject: Re: Better FreeBSD compatibility
- Authentication-results: sourceware.org; auth=none
- References: <5704DF49 dot 7010204 at embedded-brains dot de> <20160407072135 dot GD9870 at calimero dot vinschen dot de> <20160407073023 dot GE9870 at calimero dot vinschen dot de>
On 07/04/16 09:30, Corinna Vinschen wrote:
On Apr 7 09:21, Corinna Vinschen wrote:
On Apr 6 12:04, Sebastian Huber wrote:
Hello,
in RTEMS we use the FreeBSD network stack and other components. I would like
to make some Newlib headers (e.g. <sys/tyeps.h>, <sys/param.h> and
<sys/time.h>) more compatible to FreeBSD so that we can use them directly.
This involves changes like this:
Change internal type from x to y, e.g. _off_t to __off_t.
Change type define guard from x to y. e.g. __clockid_t_defined to
_CLOCKID_T_DECLARED.
As long as you test that your changes don't break Cygwin it should
be ok.
However, how sure can we be that Cygwin is the *only* target using
internal types outside the newlib tree?
s/Cygwin is the *only* target/Cygwin and RTEMS are the *only* targets/
What about something like
#define __off_t _off_t
or
typedef _off_t __off_t;
thus adding the missing type instead of changing it?
Ok, for types I will add a typedef for the FreeBSD type and keep
existing types.
What about the internal guard defines?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschÃftliche Mitteilung im Sinne des EHUG.