Changeset d754164 in rtems


Ignore:
Timestamp:
Mar 29, 2010, 3:35:21 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
cad7844
Parents:
ad76276a
Message:

Regenerate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/patches/newlib-1.18.0-rtems4.10-20100328.diff

    rad76276a rd754164  
    11diff -Naur newlib-1.18.0.orig/newlib/ChangeLog.rtems newlib-1.18.0-rtems4.10-20100328/newlib/ChangeLog.rtems
    22--- newlib-1.18.0.orig/newlib/ChangeLog.rtems   1970-01-01 01:00:00.000000000 +0100
    3 +++ newlib-1.18.0-rtems4.10-20100328/newlib/ChangeLog.rtems     2010-03-29 04:36:54.000000000 +0200
    4 @@ -0,0 +1,171 @@
     3+++ newlib-1.18.0-rtems4.10-20100328/newlib/ChangeLog.rtems     2010-03-29 05:31:42.000000000 +0200
     4@@ -0,0 +1,192 @@
     5+2010-03-25     Ralf Corsépius <ralf.corsepius@rtems.org>
     6+
     7+       * libc/include/strings.h: New (split-out from string.h).
     8+       * libc/include/string.h: Remove bcmp, bcopy, bzero, ffs, index, rindex,
     9+       strcasecmp, strncasecmp (Moved to strings.h).
     10+       Remove strcmpi, stricmp, strncmpi, strnicmp.
     11+       * libc/misc/ffs.c: Use <strings.h> instead of <string.h>.
     12+       * libc/string/bcmp.c: Use <strings.h> instead of <string.h>.
     13+       * libc/string/bzero.c: Use <strings.h> instead of <string.h>.
     14+       * libc/string/rindex.c: Use <strings.h> instead of <string.h>.
     15+       * libc/string/strcasecmp.c: Use <strings.h> instead of <string.h>.
     16+       * libc/string/strcasecmp.c: Use <strings.h> instead of <string.h>.
     17+
     18+2010-03-23     Ralf Corsépius <ralf.corsepius@rtems.org>
     19+
     20+       * libc/sys/rtems/machine/_types.h: Add i386 to 64bit off_t targets.
     21+
     22+2010-03-10     Ralf Corsépius <ralf.corsepius@rtems.org>
     23+
     24+       * libc/posix/telldir.c: Adopt newlib-cvs's telldir.c
     25+
    526+2010-02-10     Ralf Corsépius <ralf.corsepius@rtems.org>
    627+
     
    176197diff -Naur newlib-1.18.0.orig/newlib/libc/include/inttypes.h newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/inttypes.h
    177198--- newlib-1.18.0.orig/newlib/libc/include/inttypes.h   2009-01-19 23:02:06.000000000 +0100
    178 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/inttypes.h     2010-03-29 04:36:54.000000000 +0200
     199+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/inttypes.h     2010-03-29 05:26:16.000000000 +0200
    179200@@ -242,6 +242,20 @@
    180201 #define SCNxMAX                __SCNMAX(x)
     
    208229diff -Naur newlib-1.18.0.orig/newlib/libc/include/machine/_default_types.h newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/machine/_default_types.h
    209230--- newlib-1.18.0.orig/newlib/libc/include/machine/_default_types.h     2008-06-12 00:14:54.000000000 +0200
    210 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/machine/_default_types.h       2010-03-29 04:36:54.000000000 +0200
     231+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/machine/_default_types.h       2010-03-29 05:26:16.000000000 +0200
    211232@@ -54,14 +54,14 @@
    212233 #endif
     
    249270diff -Naur newlib-1.18.0.orig/newlib/libc/include/stdint.h newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/stdint.h
    250271--- newlib-1.18.0.orig/newlib/libc/include/stdint.h     2009-04-24 23:55:07.000000000 +0200
    251 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/stdint.h       2010-03-29 04:36:54.000000000 +0200
     272+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/stdint.h       2010-03-29 05:26:16.000000000 +0200
    252273@@ -33,7 +33,7 @@
    253274 /* Check if "long" is 64bit or 32bit wide */
     
    319340diff -Naur newlib-1.18.0.orig/newlib/libc/include/string.h newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/string.h
    320341--- newlib-1.18.0.orig/newlib/libc/include/string.h     2008-06-18 17:27:27.000000000 +0200
    321 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/string.h       2010-03-29 04:37:05.000000000 +0200
     342+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/string.h       2010-03-29 05:26:16.000000000 +0200
    322343@@ -49,18 +49,11 @@
    323344 #ifndef __STRICT_ANSI__
     
    370391diff -Naur newlib-1.18.0.orig/newlib/libc/include/strings.h newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/strings.h
    371392--- newlib-1.18.0.orig/newlib/libc/include/strings.h    1970-01-01 01:00:00.000000000 +0100
    372 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/strings.h      2010-03-29 04:37:05.000000000 +0200
     393+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/include/strings.h      2010-03-29 05:26:16.000000000 +0200
    373394@@ -0,0 +1,44 @@
    374395+/*
     
    418439diff -Naur newlib-1.18.0.orig/newlib/libc/machine/powerpc/Makefile.am newlib-1.18.0-rtems4.10-20100328/newlib/libc/machine/powerpc/Makefile.am
    419440--- newlib-1.18.0.orig/newlib/libc/machine/powerpc/Makefile.am  2007-05-24 19:33:35.000000000 +0200
    420 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/machine/powerpc/Makefile.am    2010-03-29 04:36:54.000000000 +0200
     441+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/machine/powerpc/Makefile.am    2010-03-29 05:26:16.000000000 +0200
    421442@@ -10,7 +10,7 @@
    422443 
     
    430451diff -Naur newlib-1.18.0.orig/newlib/libc/machine/powerpc/Makefile.in newlib-1.18.0-rtems4.10-20100328/newlib/libc/machine/powerpc/Makefile.in
    431452--- newlib-1.18.0.orig/newlib/libc/machine/powerpc/Makefile.in  2009-10-21 00:44:03.000000000 +0200
    432 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/machine/powerpc/Makefile.in    2010-03-29 04:36:54.000000000 +0200
     453+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/machine/powerpc/Makefile.in    2010-03-29 05:26:16.000000000 +0200
    433454@@ -51,7 +51,7 @@
    434455 LIBRARIES = $(noinst_LIBRARIES)
     
    519540diff -Naur newlib-1.18.0.orig/newlib/libc/misc/ffs.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/misc/ffs.c
    520541--- newlib-1.18.0.orig/newlib/libc/misc/ffs.c   2003-06-06 21:57:51.000000000 +0200
    521 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/misc/ffs.c     2010-03-29 04:37:05.000000000 +0200
     542+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/misc/ffs.c     2010-03-29 05:26:16.000000000 +0200
    522543@@ -24,7 +24,7 @@
    523544 
     
    531552diff -Naur newlib-1.18.0.orig/newlib/libc/posix/telldir.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/posix/telldir.c
    532553--- newlib-1.18.0.orig/newlib/libc/posix/telldir.c      2008-11-27 22:01:40.000000000 +0100
    533 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/posix/telldir.c        2010-03-29 04:36:54.000000000 +0200
    534 @@ -119,7 +119,6 @@
     554+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/posix/telldir.c        2010-03-29 05:28:31.000000000 +0200
     555@@ -67,7 +67,7 @@
     556 #define        NDIRHASH        32      /* Num of hash lists, must be a power of 2 */
     557 #define        LOCHASH(i)      ((i)&(NDIRHASH-1))
     558 
     559-static long    dd_loccnt;      /* Index of entry for sequential readdir's */
     560+static long    dd_loccnt = 1;  /* Index of entry for sequential readdir's */
     561 static struct  ddloc *dd_hash[NDIRHASH];   /* Hash list heads for ddlocs */
     562 __LOCK_INIT(static, dd_hash_lock);
     563 
     564@@ -119,40 +119,46 @@
    535565        register struct ddloc *lp;
    536566        register struct ddloc **prevlp;
     
    540570 #ifdef HAVE_DD_LOCK
    541571        __lock_acquire(dd_hash_lock);
    542 @@ -169,26 +168,26 @@
     572 #endif
     573-       prevlp = &dd_hash[LOCHASH(loc)];
     574-       lp = *prevlp;
     575-       while (lp != NULL) {
     576-               if (lp->loc_index == loc)
     577-                       break;
     578-               prevlp = &lp->loc_next;
     579-               lp = lp->loc_next;
     580-       }
     581-       if (lp == NULL) {
     582+       if (loc != 0) {
     583+               prevlp = &dd_hash[LOCHASH(loc)];
     584+               lp = *prevlp;
     585+               while (lp != NULL) {
     586+                       if (lp->loc_index == loc)
     587+                               break;
     588+                       prevlp = &lp->loc_next;
     589+                       lp = lp->loc_next;
     590+               }
     591+               if (lp == NULL) {
     592 #ifdef HAVE_DD_LOCK
     593-               __lock_release(dd_hash_lock);
     594+                       __lock_release(dd_hash_lock);
     595 #endif
     596-               return;
     597-       }
     598-       if (lp->loc_loc == dirp->dd_loc && lp->loc_seek == dirp->dd_seek)
     599-               goto found;
     600-       (void) lseek(dirp->dd_fd, lp->loc_seek, 0);
     601-       dirp->dd_seek = lp->loc_seek;
     602-       dirp->dd_loc = 0;
     603-       while (dirp->dd_loc < lp->loc_loc) {
     604-               dp = readdir(dirp);
     605-               if (dp == NULL)
     606-                       break;
     607-       }
     608+                       return;
     609+               }
     610+               if (lp->loc_loc == dirp->dd_loc && lp->loc_seek == dirp->dd_seek)
     611+                       goto found;
     612+               (void) lseek(dirp->dd_fd, lp->loc_seek, 0);
     613+               dirp->dd_seek = lp->loc_seek;
     614+               dirp->dd_loc = 0;
     615+               while (dirp->dd_loc < lp->loc_loc) {
     616+                       dp = readdir(dirp);
     617+                       if (dp == NULL)
     618+                               break;
     619+               }
     620 found:
     621 #ifdef SINGLEUSE
     622-       *prevlp = lp->loc_next;
     623-       free((caddr_t)lp);
     624+               *prevlp = lp->loc_next;
     625+               free((caddr_t)lp);
     626 #endif
     627+       } else {
     628+               // loc 0 means rewinding
     629+               (void) lseek(dirp->dd_fd, 0, 0);
     630+               dirp->dd_seek = 0;
     631+               dirp->dd_loc = 0;
     632+       }
     633 #ifdef HAVE_DD_LOCK
     634        __lock_release(dd_hash_lock);
     635 #endif
     636@@ -169,26 +175,26 @@
    543637        __lock_acquire(dd_hash_lock);
    544638 #endif
     
    580674diff -Naur newlib-1.18.0.orig/newlib/libc/search/db_local.h newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/db_local.h
    581675--- newlib-1.18.0.orig/newlib/libc/search/db_local.h    2002-06-25 01:05:08.000000000 +0200
    582 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/db_local.h      2010-03-29 04:36:54.000000000 +0200
     676+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/db_local.h      2010-03-29 05:26:16.000000000 +0200
    583677@@ -102,11 +102,11 @@
    584678 typedef struct __db {
     
    600694diff -Naur newlib-1.18.0.orig/newlib/libc/search/extern.h newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/extern.h
    601695--- newlib-1.18.0.orig/newlib/libc/search/extern.h      2002-06-20 21:51:31.000000000 +0200
    602 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/extern.h        2010-03-29 04:36:54.000000000 +0200
     696+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/extern.h        2010-03-29 05:26:16.000000000 +0200
    603697@@ -43,7 +43,7 @@
    604698 int     __big_split(HTAB *, BUFHEAD *, BUFHEAD *, BUFHEAD *,
     
    612706diff -Naur newlib-1.18.0.orig/newlib/libc/search/hash_buf.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/hash_buf.c
    613707--- newlib-1.18.0.orig/newlib/libc/search/hash_buf.c    2004-05-26 19:57:10.000000000 +0200
    614 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/hash_buf.c      2010-03-29 04:36:54.000000000 +0200
     708+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/hash_buf.c      2010-03-29 05:26:16.000000000 +0200
    615709@@ -118,7 +118,7 @@
    616710        int newpage;    /* If prev_bp set, indicates a new overflow page. */
     
    633727diff -Naur newlib-1.18.0.orig/newlib/libc/search/hash.h newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/hash.h
    634728--- newlib-1.18.0.orig/newlib/libc/search/hash.h        2008-07-02 20:38:45.000000000 +0200
    635 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/hash.h  2010-03-29 04:36:54.000000000 +0200
     729+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/search/hash.h  2010-03-29 05:26:16.000000000 +0200
    636730@@ -82,7 +82,7 @@
    637731 
     
    654748diff -Naur newlib-1.18.0.orig/newlib/libc/string/bcmp.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/bcmp.c
    655749--- newlib-1.18.0.orig/newlib/libc/string/bcmp.c        2005-10-28 23:21:07.000000000 +0200
    656 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/bcmp.c  2010-03-29 04:37:05.000000000 +0200
     750+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/bcmp.c  2010-03-29 05:26:16.000000000 +0200
    657751@@ -6,11 +6,11 @@
    658752        bcmp
     
    680774diff -Naur newlib-1.18.0.orig/newlib/libc/string/bcopy.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/bcopy.c
    681775--- newlib-1.18.0.orig/newlib/libc/string/bcopy.c       2002-05-23 20:46:04.000000000 +0200
    682 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/bcopy.c 2010-03-29 04:37:05.000000000 +0200
     776+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/bcopy.c 2010-03-29 05:26:16.000000000 +0200
    683777@@ -3,7 +3,7 @@
    684778        <<bcopy>>---copy memory regions
     
    701795diff -Naur newlib-1.18.0.orig/newlib/libc/string/bzero.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/bzero.c
    702796--- newlib-1.18.0.orig/newlib/libc/string/bzero.c       2002-05-23 20:46:04.000000000 +0200
    703 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/bzero.c 2010-03-29 04:37:05.000000000 +0200
     797+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/bzero.c 2010-03-29 05:26:16.000000000 +0200
    704798@@ -6,11 +6,11 @@
    705799        bzero
     
    727821diff -Naur newlib-1.18.0.orig/newlib/libc/string/index.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/index.c
    728822--- newlib-1.18.0.orig/newlib/libc/string/index.c       2000-02-17 20:39:48.000000000 +0100
    729 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/index.c 2010-03-29 04:37:05.000000000 +0200
     823+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/index.c 2010-03-29 05:26:16.000000000 +0200
    730824@@ -10,7 +10,7 @@
    731825        char * index(const char *<[string]>, int <[c]>);
     
    748842diff -Naur newlib-1.18.0.orig/newlib/libc/string/rindex.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/rindex.c
    749843--- newlib-1.18.0.orig/newlib/libc/string/rindex.c      2000-02-17 20:39:48.000000000 +0100
    750 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/rindex.c        2010-03-29 04:37:05.000000000 +0200
     844+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/rindex.c        2010-03-29 05:26:16.000000000 +0200
    751845@@ -10,7 +10,7 @@
    752846        char * rindex(const char *<[string]>, int <[c]>);
     
    769863diff -Naur newlib-1.18.0.orig/newlib/libc/string/strcasecmp.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/strcasecmp.c
    770864--- newlib-1.18.0.orig/newlib/libc/string/strcasecmp.c  2009-04-23 20:11:22.000000000 +0200
    771 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/strcasecmp.c    2010-03-29 04:37:05.000000000 +0200
     865+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/strcasecmp.c    2010-03-29 05:26:16.000000000 +0200
    772866@@ -38,7 +38,7 @@
    773867        strcasecmp
     
    781875diff -Naur newlib-1.18.0.orig/newlib/libc/string/strncasecmp.c newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/strncasecmp.c
    782876--- newlib-1.18.0.orig/newlib/libc/string/strncasecmp.c 2009-04-23 20:11:22.000000000 +0200
    783 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/strncasecmp.c   2010-03-29 04:37:05.000000000 +0200
     877+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/string/strncasecmp.c   2010-03-29 05:26:16.000000000 +0200
    784878@@ -6,11 +6,11 @@
    785879        strncasecmp
     
    807901diff -Naur newlib-1.18.0.orig/newlib/libc/sys/rtems/machine/_types.h newlib-1.18.0-rtems4.10-20100328/newlib/libc/sys/rtems/machine/_types.h
    808902--- newlib-1.18.0.orig/newlib/libc/sys/rtems/machine/_types.h   2009-12-17 17:10:41.000000000 +0100
    809 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/sys/rtems/machine/_types.h     2010-03-29 04:36:54.000000000 +0200
     903+++ newlib-1.18.0-rtems4.10-20100328/newlib/libc/sys/rtems/machine/_types.h     2010-03-29 05:26:16.000000000 +0200
    810904@@ -31,4 +31,22 @@
    811905 
     
    833927diff -Naur newlib-1.18.0.orig/newlib/libm/common/modfl.c newlib-1.18.0-rtems4.10-20100328/newlib/libm/common/modfl.c
    834928--- newlib-1.18.0.orig/newlib/libm/common/modfl.c       2009-04-18 00:15:43.000000000 +0200
    835 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libm/common/modfl.c 2010-03-29 04:36:54.000000000 +0200
     929+++ newlib-1.18.0-rtems4.10-20100328/newlib/libm/common/modfl.c 2010-03-29 05:26:16.000000000 +0200
    836930@@ -36,7 +36,7 @@
    837931 long double
     
    845939diff -Naur newlib-1.18.0.orig/newlib/libm/common/sf_llrint.c newlib-1.18.0-rtems4.10-20100328/newlib/libm/common/sf_llrint.c
    846940--- newlib-1.18.0.orig/newlib/libm/common/sf_llrint.c   2009-04-03 19:39:24.000000000 +0200
    847 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libm/common/sf_llrint.c     2010-03-29 04:36:54.000000000 +0200
     941+++ newlib-1.18.0-rtems4.10-20100328/newlib/libm/common/sf_llrint.c     2010-03-29 05:26:16.000000000 +0200
    848942@@ -71,7 +71,7 @@
    849943           GET_FLOAT_WORD (i0, t);
     
    857951diff -Naur newlib-1.18.0.orig/newlib/libm/common/sf_round.c newlib-1.18.0-rtems4.10-20100328/newlib/libm/common/sf_round.c
    858952--- newlib-1.18.0.orig/newlib/libm/common/sf_round.c    2005-02-24 20:02:35.000000000 +0100
    859 +++ newlib-1.18.0-rtems4.10-20100328/newlib/libm/common/sf_round.c      2010-03-29 04:36:54.000000000 +0200
     953+++ newlib-1.18.0-rtems4.10-20100328/newlib/libm/common/sf_round.c      2010-03-29 05:26:16.000000000 +0200
    860954@@ -38,7 +38,7 @@
    861955           w &= 0x80000000;
     
    869963diff -Naur newlib-1.18.0.orig/newlib/Makefile.am newlib-1.18.0-rtems4.10-20100328/newlib/Makefile.am
    870964--- newlib-1.18.0.orig/newlib/Makefile.am       2009-08-18 23:48:05.000000000 +0200
    871 +++ newlib-1.18.0-rtems4.10-20100328/newlib/Makefile.am 2010-03-29 04:36:54.000000000 +0200
     965+++ newlib-1.18.0-rtems4.10-20100328/newlib/Makefile.am 2010-03-29 05:26:16.000000000 +0200
    872966@@ -81,7 +81,7 @@
    873967        libc.a
     
    881975diff -Naur newlib-1.18.0.orig/newlib/Makefile.in newlib-1.18.0-rtems4.10-20100328/newlib/Makefile.in
    882976--- newlib-1.18.0.orig/newlib/Makefile.in       2009-10-21 00:43:45.000000000 +0200
    883 +++ newlib-1.18.0-rtems4.10-20100328/newlib/Makefile.in 2010-03-29 04:36:54.000000000 +0200
     977+++ newlib-1.18.0-rtems4.10-20100328/newlib/Makefile.in 2010-03-29 05:26:16.000000000 +0200
    884978@@ -122,7 +122,7 @@
    885979        install-pdf-recursive install-ps-recursive install-recursive \
Note: See TracChangeset for help on using the changeset viewer.