This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Better FreeBSD compatibility
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: Newlib <newlib at sourceware dot org>
- Date: Wed, 6 Apr 2016 12:04:57 +0200
- Subject: Better FreeBSD compatibility
- Authentication-results: sourceware.org; auth=none
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.
Example Newlib:
#ifndef __clockid_t_defined
typedef _CLOCKID_T_ clockid_t;
#define __clockid_t_defined
#endif
Example FreeBSD:
#ifndef _CLOCKID_T_DECLARED
typedef __clockid_t clockid_t;
#define _CLOCKID_T_DECLARED
#endif
These internal types and guards are used in various FreeBSD headers, so
with such a change I could avoid to modify them. Would be these changes
to Newlib be acceptable in general?
--
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.