OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/gcc/305-libmudflap-susv3-legacy.patch
  5. # Copyright (C) 2009 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Index: gcc-4.2/libmudflap/mf-hooks2.c
  17. ===================================================================
  18. --- gcc-4.2/libmudflap/mf-hooks2.c (revision 119834)
  19. +++ gcc-4.2/libmudflap/mf-hooks2.c (working copy)
  20. @@ -427,7 +427,7 @@
  21. {
  22. TRACE ("%s\n", __PRETTY_FUNCTION__);
  23. MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region");
  24. - bzero (s, n);
  25. + memset (s, 0, n);
  26. }
  27. @@ -437,7 +437,7 @@
  28. TRACE ("%s\n", __PRETTY_FUNCTION__);
  29. MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src");
  30. MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest");
  31. - bcopy (src, dest, n);
  32. + memmove (dest, src, n);
  33. }
  34. @@ -447,7 +447,7 @@
  35. TRACE ("%s\n", __PRETTY_FUNCTION__);
  36. MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg");
  37. MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg");
  38. - return bcmp (s1, s2, n);
  39. + return n == 0 ? 0 : memcmp (s1, s2, n);
  40. }
  41. @@ -456,7 +456,7 @@
  42. size_t n = strlen (s);
  43. TRACE ("%s\n", __PRETTY_FUNCTION__);
  44. MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region");
  45. - return index (s, c);
  46. + return strchr (s, c);
  47. }
  48. @@ -465,7 +465,7 @@
  49. size_t n = strlen (s);
  50. TRACE ("%s\n", __PRETTY_FUNCTION__);
  51. MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region");
  52. - return rindex (s, c);
  53. + return strrchr (s, c);
  54. }
  55. /* XXX: stpcpy, memccpy */