This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Better FreeBSD compatibility


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]