thomas@1461: Original patch from: ../4.3.2/300-libmudflap-susv3-legacy.patch thomas@1461: thomas@1461: -= BEGIN original header =- thomas@1461: Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/uclibc/90_all_305-libmudflap-susv3-legacy.patch thomas@1461: -= END original header =- thomas@1461: thomas@1461: diff -durN gcc-4.3.3.orig/libmudflap/mf-hooks2.c gcc-4.3.3/libmudflap/mf-hooks2.c thomas@1461: --- gcc-4.3.3.orig/libmudflap/mf-hooks2.c 2005-09-23 23:58:39.000000000 +0200 thomas@1461: +++ gcc-4.3.3/libmudflap/mf-hooks2.c 2009-01-27 22:25:45.000000000 +0100 thomas@1461: @@ -427,7 +427,7 @@ thomas@1461: { thomas@1461: TRACE ("%s\n", __PRETTY_FUNCTION__); thomas@1461: MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region"); thomas@1461: - bzero (s, n); thomas@1461: + memset (s, 0, n); thomas@1461: } thomas@1461: thomas@1461: thomas@1461: @@ -437,7 +437,7 @@ thomas@1461: TRACE ("%s\n", __PRETTY_FUNCTION__); thomas@1461: MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src"); thomas@1461: MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest"); thomas@1461: - bcopy (src, dest, n); thomas@1461: + memmove (dest, src, n); thomas@1461: } thomas@1461: thomas@1461: thomas@1461: @@ -447,7 +447,7 @@ thomas@1461: TRACE ("%s\n", __PRETTY_FUNCTION__); thomas@1461: MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg"); thomas@1461: MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg"); thomas@1461: - return bcmp (s1, s2, n); thomas@1461: + return memcmp (s1, s2, n); thomas@1461: } thomas@1461: thomas@1461: thomas@1461: @@ -456,7 +456,7 @@ thomas@1461: size_t n = strlen (s); thomas@1461: TRACE ("%s\n", __PRETTY_FUNCTION__); thomas@1461: MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region"); thomas@1461: - return index (s, c); thomas@1461: + return strchr (s, c); thomas@1461: } thomas@1461: thomas@1461: thomas@1461: @@ -465,7 +465,7 @@ thomas@1461: size_t n = strlen (s); thomas@1461: TRACE ("%s\n", __PRETTY_FUNCTION__); thomas@1461: MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region"); thomas@1461: - return rindex (s, c); thomas@1461: + return strrchr (s, c); thomas@1461: } thomas@1461: thomas@1461: /* XXX: stpcpy, memccpy */