improve clean targets
[buildroot.git] / package / bash / bash32-susv3-legacy.patch
blob5893bd69e94d539cb937133c6585dd22a561160a
1 diff -rdup bash-3.2-p25/config.h.in bash-3.2/config.h.in
2 --- bash-3.2-p25/config.h.in 2007-10-15 20:08:58.000000000 +0200
3 +++ bash-3.2/config.h.in 2007-10-15 20:09:30.000000000 +0200
4 @@ -501,12 +501,6 @@
5 /* Define if you have the asprintf function. */
6 #undef HAVE_ASPRINTF
8 -/* Define if you have the bcopy function. */
9 -#undef HAVE_BCOPY
11 -/* Define if you have the bzero function. */
12 -#undef HAVE_BZERO
14 /* Define if you have the confstr function. */
15 #undef HAVE_CONFSTR
17 diff -rdup bash-3.2-p25/configure bash-3.2/configure
18 --- bash-3.2-p25/configure 2007-10-15 19:12:58.000000000 +0200
19 +++ bash-3.2/configure 2007-10-15 20:13:01.000000000 +0200
20 @@ -12382,7 +12382,7 @@ done
24 -for ac_func in bcopy bzero confstr fnmatch \
25 +for ac_func in confstr fnmatch \
26 getaddrinfo gethostbyname getservbyname getservent inet_aton \
27 memmove pathconf putenv raise regcomp regexec \
28 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
29 diff -rdup bash-3.2-p25/configure.in bash-3.2/configure.in
30 --- bash-3.2-p25/configure.in 2007-10-15 20:08:58.000000000 +0200
31 +++ bash-3.2/configure.in 2007-10-15 20:12:07.000000000 +0200
32 @@ -702,7 +702,7 @@ AC_CHECK_FUNCS(dup2 eaccess fcntl getdta
33 AC_REPLACE_FUNCS(rename)
35 dnl checks for c library functions
36 -AC_CHECK_FUNCS(bcopy bzero confstr fnmatch \
37 +AC_CHECK_FUNCS(confstr fnmatch \
38 getaddrinfo gethostbyname getservbyname getservent inet_aton \
39 memmove pathconf putenv raise regcomp regexec \
40 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
41 diff -rdup bash-3.2-p25/CWRU/misc/sigstat.c bash-3.2/CWRU/misc/sigstat.c
42 --- bash-3.2-p25/CWRU/misc/sigstat.c 2007-10-15 20:08:58.000000000 +0200
43 +++ bash-3.2/CWRU/misc/sigstat.c 2007-10-15 19:12:59.000000000 +0200
44 @@ -86,7 +86,7 @@ int sig;
45 init_signames()
47 register int i;
48 - bzero(signames, sizeof(signames));
49 + memset(signames, 0, sizeof(signames));
51 #if defined (SIGHUP) /* hangup */
52 signames[SIGHUP] = "SIGHUP";
53 diff -rdup bash-3.2-p25/lib/glob/sm_loop.c bash-3.2/lib/glob/sm_loop.c
54 --- bash-3.2-p25/lib/glob/sm_loop.c 2006-02-27 23:18:43.000000000 +0100
55 +++ bash-3.2/lib/glob/sm_loop.c 2007-10-15 20:11:27.000000000 +0200
56 @@ -355,7 +355,7 @@ BRACKMATCH (p, test, flags)
57 pc = 0;
58 else
60 - bcopy (p + 1, ccname, (close - p - 1) * sizeof (CHAR));
61 + memmove (ccname, p + 1, (close - p - 1) * sizeof (CHAR));
62 *(ccname + (close - p - 1)) = L('\0');
63 pc = IS_CCLASS (test, (XCHAR *)ccname);
65 diff -rdup bash-3.2-p25/lib/sh/oslib.c bash-3.2/lib/sh/oslib.c
66 --- bash-3.2-p25/lib/sh/oslib.c 2007-10-15 20:08:58.000000000 +0200
67 +++ bash-3.2/lib/sh/oslib.c 2007-10-15 20:10:34.000000000 +0200
68 @@ -157,36 +157,6 @@ getdtablesize ()
70 #endif /* !HAVE_GETDTABLESIZE */
72 -#if !defined (HAVE_BCOPY)
73 -# if defined (bcopy)
74 -# undef bcopy
75 -# endif
76 -void
77 -bcopy (s,d,n)
78 - char *d, *s;
79 - int n;
81 - FASTCOPY (s, d, n);
83 -#endif /* !HAVE_BCOPY */
85 -#if !defined (HAVE_BZERO)
86 -# if defined (bzero)
87 -# undef bzero
88 -# endif
89 -void
90 -bzero (s, n)
91 - char *s;
92 - int n;
94 - register int i;
95 - register char *r;
97 - for (i = 0, r = s; i < n; i++)
98 - *r++ = '\0';
100 -#endif
102 #if !defined (HAVE_GETHOSTNAME)
103 # if defined (HAVE_UNAME)
104 # include <sys/utsname.h>