summaryrefslogtreecommitdiffstats
path: root/package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-07-05 01:42:29 +0000
committerEric Andersen <andersen@codepoet.org>2006-07-05 01:42:29 +0000
commitc9306ec90c5fb41d20096da8f902e9aff1790e0e (patch)
tree670a86405f25d0e2b38f6a114f9391fa1dc9e977 /package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch
parent050da8412ec28b63ab11af55ecef20b7e58cb09b (diff)
downloadbuildroot-novena-c9306ec90c5fb41d20096da8f902e9aff1790e0e.tar.gz
buildroot-novena-c9306ec90c5fb41d20096da8f902e9aff1790e0e.zip
update LTP to the latest and greatest
Diffstat (limited to 'package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch')
-rw-r--r--package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch122
1 files changed, 112 insertions, 10 deletions
diff --git a/package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch b/package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch
index 9cc6ac37f..be525abab 100644
--- a/package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch
+++ b/package/ltp-testsuite/ltp-testsuite-remove-bcopy.patch
@@ -1,19 +1,17 @@
-diff -ur ltp-full-20050804/testcases/network/multicast/mc_member/member.c ltp-full-20050804-patched/testcases/network/multicast/mc_member/member.c
---- ltp-full-20050804/testcases/network/multicast/mc_member/member.c 2005-08-04 15:33:05.000000000 -0500
-+++ ltp-full-20050804-patched/testcases/network/multicast/mc_member/member.c 2006-06-21 22:56:15.746866000 -0500
-@@ -74,7 +74,7 @@
+--- ltp/testcases/network/multicast/mc_member/member.c.orig 2005-10-03 12:19:46.000000000 -0600
++++ ltp/testcases/network/multicast/mc_member/member.c 2006-07-04 18:29:28.000000000 -0600
+@@ -80,7 +80,7 @@
}
- if(hp = gethostbyname(interface)) {
+ if((hp = gethostbyname(interface))) {
- bcopy(hp->h_addr, &imr.imr_interface.s_addr, hp->h_length);
-+ memcpy(&imr.imr_interface.s_addr, hp->h_addr, hp->h_length);
++ memcpy(&imr.imr_interface.s_addr, hp->h_addr, hp->h_length);
} else
if((n = sscanf(interface, "%u.%u.%u.%u", &i1, &i2, &i3, &i4)) != 4) {
fprintf(stderr, "bad group address\n" );
-diff -ur ltp-full-20050804/testcases/network/tcp_cmds/echo/echoes.c ltp-full-20050804-patched/testcases/network/tcp_cmds/echo/echoes.c
---- ltp-full-20050804/testcases/network/tcp_cmds/echo/echoes.c 2005-08-04 15:33:05.000000000 -0500
-+++ ltp-full-20050804-patched/testcases/network/tcp_cmds/echo/echoes.c 2006-06-21 22:55:13.000000000 -0500
-@@ -121,7 +121,7 @@
+--- ltp/testcases/network/tcp_cmds/echo/echoes.c.orig 2005-10-03 11:58:24.000000000 -0600
++++ ltp/testcases/network/tcp_cmds/echo/echoes.c 2006-07-04 18:27:06.000000000 -0600
+@@ -133,7 +133,7 @@
exit(1);
}
port=sp->s_port;
@@ -22,3 +20,107 @@ diff -ur ltp-full-20050804/testcases/network/tcp_cmds/echo/echoes.c ltp-full-200
bzero((char *)&sa,sizeof (sa));
sa.sin_port=port;
sa.sin_family=AF_INET;
+--- ltp/testcases/network/tcp_cmds/perf_lan/pingpong.c.orig 2006-07-04 18:33:14.000000000 -0600
++++ ltp/testcases/network/tcp_cmds/perf_lan/pingpong.c 2006-07-04 18:33:44.000000000 -0600
+@@ -118,7 +118,7 @@
+ hp = gethostbyname(av[1]);
+ if (hp) {
+ to->sin_family = hp->h_addrtype;
+- bcopy(hp->h_addr, (caddr_t)&to->sin_addr, hp->h_length);
++ memcpy((caddr_t)&to->sin_addr, hp->h_addr, hp->h_length);
+ hostname = hp->h_name;
+ } else {
+ tst_resm (TINFO, "%s: unknown host, couldn't get address\n",argv[0]);
+--- ltp/testcases/network/rpc/rpc01/rpc1.c.orig 2006-07-04 18:34:29.000000000 -0600
++++ ltp/testcases/network/rpc/rpc01/rpc1.c 2006-07-04 18:34:47.000000000 -0600
+@@ -101,7 +101,7 @@
+ }
+ bzero(&server_sin, sizeof(server_sin));
+ server_sin.sin_family = AF_INET;
+- bcopy(hp->h_addr, (char *) &server_sin.sin_addr, sizeof(hp->h_addr));
++ memcpy((char *) &server_sin.sin_addr, hp->h_addr, sizeof(hp->h_addr));
+
+ if (!file_name) {
+ fprintf(stderr, "file name not given\n");
+--- ltp/testcases/network/multicast/mc_commo/mc_recv.c.orig 2006-07-04 18:35:24.000000000 -0600
++++ ltp/testcases/network/multicast/mc_commo/mc_recv.c 2006-07-04 18:35:59.000000000 -0600
+@@ -45,7 +45,7 @@
+ imr.imr_multiaddr.s_addr = htonl((g1<<24) | (g2<<16) | (g3<<8) | g4);
+
+ if((hp = gethostbyname(argv[2])))
+- bcopy(hp->h_addr, &imr.imr_interface.s_addr, hp->h_length);
++ memcpy(&imr.imr_interface.s_addr, hp->h_addr, hp->h_length);
+ else
+ if((n = sscanf(argv[2], "%u.%u.%u.%u", &i1, &i2, &i3, &i4)) != 4) {
+ fprintf (stderr,"Bad group interface address\n");
+--- ltp/testcases/network/multicast/mc_commo/mc_send.c.orig 2006-07-04 18:36:34.000000000 -0600
++++ ltp/testcases/network/multicast/mc_commo/mc_send.c 2006-07-04 18:36:52.000000000 -0600
+@@ -48,7 +48,7 @@
+ imr.imr_multiaddr.s_addr = htonl((g1<<24) | (g2<<16) | (g3<<8) | g4);
+
+ if((hp = gethostbyname(argv[2]))) {
+- bcopy(hp->h_addr, &imr.imr_interface.s_addr, hp->h_length);
++ memcpy(&imr.imr_interface.s_addr, hp->h_addr, hp->h_length);
+ } else
+ if((n = sscanf(argv[2], "%u.%u.%u.%u", &i1, &i2, &i3, &i4)) != 4) {
+ fprintf (stderr,"Bad interface address\n");
+--- ltp/testcases/kernel/ipc/pipeio/pipeio.c.orig 2006-07-04 18:37:26.000000000 -0600
++++ ltp/testcases/kernel/ipc/pipeio/pipeio.c 2006-07-04 18:38:44.000000000 -0600
+@@ -742,7 +742,7 @@
+ /*
+ * get the last 2 words printed
+ */
+- bcopy(a-(width*NBPW),c,width*NBPW);
++ memcpy(c,a-(width*NBPW),width*NBPW);
+ for (p = c; (p-c) < width*NBPW; ++p) {
+ if (*p < '!' || *p > '~')
+ *p = '.';
+@@ -761,7 +761,7 @@
+ printf("%10.10ld ",*word);
+ break;
+ case ASCII:
+- bcopy(a,b,NBPW);
++ memcpy(b,a,NBPW);
+ for (p = b; (p-b) < NBPW; ++p) {
+ if (*p < '!' || *p > '~')
+ *p = '.';
+@@ -780,7 +780,7 @@
+ */
+ bzero(c,width*NBPW);
+ if (extra_words) width = extra_words; /* odd number of words */
+- bcopy(a-(width*NBPW),c,width*NBPW);
++ memcpy(c,a-(width*NBPW),width*NBPW);
+ for (p = c; (p-c) < width*NBPW; ++p) {
+ if (*p < '!' || *p > '~')
+ *p = '.';
+--- ltp/testcases/ballista/ballista/serverCommunication.cpp.orig 2006-07-04 18:39:39.000000000 -0600
++++ ltp/testcases/ballista/ballista/serverCommunication.cpp 2006-07-04 18:40:33.000000000 -0600
+@@ -67,7 +67,7 @@
+ #ifdef SUN
+
+ #include <strings.h>
+-//includes bcopy proto
++//includes memcpy proto
+
+ #endif
+
+@@ -118,7 +118,7 @@
+ }
+
+
+- bcopy ((const char *)hp->h_addr,(char *)&(server_addr.sin_addr.s_addr),hp->h_length);
++ memcpy ((char *)&(server_addr.sin_addr.s_addr),(const char *)hp->h_addr,hp->h_length);
+
+
+ server_addr.sin_family = AF_INET;
+--- ltp/tools/netpipe-2.4/TCP.c.orig 2006-07-04 18:41:13.000000000 -0600
++++ ltp/tools/netpipe-2.4/TCP.c 2006-07-04 18:41:39.000000000 -0600
+@@ -85,7 +85,7 @@
+ }
+
+ lsin1->sin_family = addr->h_addrtype;
+- bcopy(addr->h_addr, (char*) &(lsin1->sin_addr.s_addr), addr->h_length);
++ memcpy((char*) &(lsin1->sin_addr.s_addr), addr->h_addr, addr->h_length);
+ }
+
+ lsin1->sin_port = htons(p->port);