[PATCH] RDOS support for newlib
Leif Ekblad
leif@rdos.net
Sun Jan 22 00:25:00 GMT 2006
Jeff:
> 1. Files from the top-level directory require special approval since
> these files are shared with other projects. See the
> top-level MAINTAINERS file for details on which mailing
> lists to send various patches to.
I'll deal with those later.
> 2. You have patches to generated files (configure, aclocal.m4).
> You must only provide patches for the files that generate these and
> do not post the generated diffs.
Removed
> 4. You must submit the initial patch for your new files. You may
> request to be the maintainer of said files once they are
> approved and to check-in patches without prior permission, but
> that right is never given to anyone sight-unseen and may
> require a few patches to build up a trust factor.
OK. I enclose rdos.tar.bz2, which contains the current versions
of these files.
New changelog:
2006-01-21 Leif Ekblad <leif@rdos.net>
* configure.host: RDOS support added
* libc/include/sys/config.h: Reentrancy should be a function in RDOS
* libc/sys/rdos: RDOS target directory added
Index newlib: configure.host
===============================================================================
diff -r -pu org/newlib-1.14/newlib/configure.host
new/newlib-1.14/newlib/configure.host
--- org/newlib-1.14/newlib/configure.host 2005-12-12 12:25:07.000000000
+0100
+++ new/newlib-1.14/newlib/configure.host 2006-01-16 14:01:57.000000000
+0100
@@ -362,6 +362,10 @@ case "${host}" in
h8500-*-elf*)
sys_dir=h8500hms
;;
+ i[34567]86-*-rdos*)
+ sys_dir=rdos
+ newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
+ ;;
i[34567]86-*-sco*)
sys_dir=sysvi386
unix_dir=unix
Index newlib/libc/include/sys: config.h
===============================================================================
diff -r -pu org/newlib-1.14/newlib/libc/include/sys/config.h
new/newlib-1.14/newlib/libc/include/sys/config.h
--- org/newlib-1.14/newlib/libc/include/sys/config.h 2005-08-10
22:35:13.000000000 +0200
+++ new/newlib-1.14/newlib/libc/include/sys/config.h 2006-01-16
11:21:46.000000000 +0100
@@ -59,7 +59,7 @@
/* in other words, go32 */
#define _FLOAT_RET double
#endif
-#ifdef __linux__
+#if defined(__linux__) || defined(__RDOS__)
/* we want the reentrancy structure to be returned by a function */
#define __DYNAMIC_REENT__
#define HAVE_GETDATE
Leif Ekblad
http://www.rdos.net/rdos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdos.tar.bz2
Type: application/octet-stream
Size: 43315 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20060122/2664546f/attachment.obj>
More information about the Newlib
mailing list