diff options
author | neal <neal> | 2008-03-01 13:09:50 +0000 |
---|---|---|
committer | neal <neal> | 2008-03-01 13:09:50 +0000 |
commit | 5de3dba22f06a1941b378faf622bbe5779ec474a (patch) | |
tree | 94de00184069f3befa5b7784c6a93f88e5e0dfd7 | |
parent | 949882f979995c232659a1f3d9f5400617f6ed44 (diff) |
2008-03-01 Neal H. Walfield <neal@gnu.org>
* Makefile.am (addon): Add newlib/libc/sys/hurd/include/signal.h.
* patches/03-newlib-newlib-configure-host.patch: Add
-DSIGNAL_PROVIDED to newlib_cflags.
* patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch:
Correctly calcualtesigjmp_buf.
* addon/newlib/libc/sys/hurd/include/signal.h: New file.
-rw-r--r-- | newlib/ChangeLog | 42 | ||||
-rw-r--r-- | newlib/Makefile.am | 1 | ||||
-rw-r--r-- | newlib/addon/newlib/libc/sys/hurd/include/signal.h | 1 | ||||
-rw-r--r-- | newlib/patches/03-newlib-newlib-configure-host.patch | 5 | ||||
-rw-r--r-- | newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch | 13 |
5 files changed, 58 insertions, 4 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c741b15..177d375 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,45 @@ +2008-03-01 Neal H. Walfield <neal@gnu.org> + + * Makefile.am (addon): Add newlib/libc/sys/hurd/include/signal.h. + * patches/03-newlib-newlib-configure-host.patch: Add + -DSIGNAL_PROVIDED to newlib_cflags. + * patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch: + Correctly calcualtesigjmp_buf. + * addon/newlib/libc/sys/hurd/include/signal.h: New file. + +2008-03-01 Neal H. Walfield <neal@gnu.org> + + * addon/newlib/libc/sys/hurd/closer.c (close): New function. + (_close_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/fcntlr.c (fcntl): New function. + (_fcntl_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/fstatr.c (fstat): New function. + (_fstat_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/gettimeofdayr.c (gettimeofday): New + function. + (_gettimeofday_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/linkr.c (link): New function. + (_link_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/lseekr.c (lseek): New function. + (_lseek_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/openr.c (open): New function. + (_open_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/readr.c (read): New function. + (_read_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/renamer.c (rename): New function. + (_rename_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/signalr.c (_kill_r): Just call kill. + (getpid): New function. + (_getpid_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/statr.c (stat): New function. + (_stat_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/timesr.c (times): New function. + (_times_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/unlinkr.c (unlink): New function. + (_unlink_r): Implement in terms of it. + * addon/newlib/libc/sys/hurd/writer.c (write): New function. + (_write_r): Implement in terms of it. + 2008-02-21 Neal H. Walfield <neal@gnu.org> * Makefile.am (patch_files): Add diff --git a/newlib/Makefile.am b/newlib/Makefile.am index c957804..d559dc9 100644 --- a/newlib/Makefile.am +++ b/newlib/Makefile.am @@ -60,6 +60,7 @@ addon = newlib/libc/sys/hurd/configure.ac \ newlib/libc/sys/hurd/crt0.c \ newlib/libc/sys/hurd/include/pthread.h \ newlib/libc/sys/hurd/include/assert.h \ + newlib/libc/sys/hurd/include/signal.h \ newlib/libc/sys/hurd/sys/lock.h \ newlib/libc/sys/hurd/sys/config.h \ newlib/libc/sys/hurd/sys/errno.h diff --git a/newlib/addon/newlib/libc/sys/hurd/include/signal.h b/newlib/addon/newlib/libc/sys/hurd/include/signal.h new file mode 100644 index 0000000..c997393 --- /dev/null +++ b/newlib/addon/newlib/libc/sys/hurd/include/signal.h @@ -0,0 +1 @@ +#include_next <signal.h> diff --git a/newlib/patches/03-newlib-newlib-configure-host.patch b/newlib/patches/03-newlib-newlib-configure-host.patch index 11e5355..64f7058 100644 --- a/newlib/patches/03-newlib-newlib-configure-host.patch +++ b/newlib/patches/03-newlib-newlib-configure-host.patch @@ -12,14 +12,15 @@ retrieving revision 1.97 diff -u -p -r1.97 configure.host --- newlib/newlib/configure.host 7 Nov 2007 21:42:24 -0000 1.97 +++ newlib/newlib/configure.host 20 Jan 2008 20:03:05 -0000 -@@ -391,6 +391,12 @@ case "${host}" in +@@ -391,6 +391,13 @@ case "${host}" in h8500-*-elf*) sys_dir=h8500hms ;; + *-gnu*) + sys_dir=hurd + syscalls_dir=syscalls -+ newlib_cflags="${newlib_cflags} -Wall -DMALLOC_PROVIDED \ ++ newlib_cflags="${newlib_cflags} -Wall \ ++ -DMALLOC_PROVIDED -DSIGNAL_PROVIDED \ + -DHAVE_DD_LOCK -DREENTRANT_SYSCALLS_PROVIDED -D_GNU_SOURCE" + ;; i[34567]86-*-rdos*) diff --git a/newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch b/newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch index ab34594..8a16286 100644 --- a/newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch +++ b/newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch @@ -4,8 +4,8 @@ exit $? Enable sigjmp_buf. ---- newlib/newlib/libc/include/machine/setjmp.h~ 2007-11-07 22:42:24.000000000 +0100 -+++ newlib/newlib/libc/include/machine/setjmp.h 2008-02-20 23:46:12.000000000 +0100 +--- newlib/newlib/libc/include/machine/setjmp.h 2008-02-29 23:46:46.000000000 +0100 ++++ newlib/newlib/libc/include/machine/setjmp.h~ 2008-02-29 23:41:19.000000000 +0100 @@ -251,7 +251,7 @@ _END_STD_C @@ -15,3 +15,12 @@ Enable sigjmp_buf. #include <signal.h> #ifdef __cplusplus +@@ -259,7 +259,7 @@ + #endif + + /* POSIX sigsetjmp/siglongjmp macros */ +-typedef int sigjmp_buf[_JBLEN+2]; ++typedef int sigjmp_buf[_JBLEN+1+(sizeof (sigset_t)/sizeof (int))]; + + #define _SAVEMASK _JBLEN + #define _SIGMASK (_JBLEN+1) |