summaryrefslogtreecommitdiff
path: root/dvb-spec/valgrind-1.0.4.diff
diff options
context:
space:
mode:
authoroberritter <devnull@localhost>2003-03-03 03:42:29 -0300
committeroberritter <devnull@localhost>2003-03-03 03:42:29 -0300
commit0c835747fef0c13496f773a754bf557183734387 (patch)
tree48b80dde95afc7087aea184cc5f1788e848a8854 /dvb-spec/valgrind-1.0.4.diff
parentf005fb88fdf382126eb5e52a0910b5d60f750d5d (diff)
downloadmediapointer-dvb-s2-0c835747fef0c13496f773a754bf557183734387.tar.gz
mediapointer-dvb-s2-0c835747fef0c13496f773a754bf557183734387.tar.bz2
fixed NET_ADD_IF/NET_GET_IF which are _IOWR and added diff for valgrind
version 1.9.4
Diffstat (limited to 'dvb-spec/valgrind-1.0.4.diff')
-rw-r--r--dvb-spec/valgrind-1.0.4.diff24
1 files changed, 14 insertions, 10 deletions
diff --git a/dvb-spec/valgrind-1.0.4.diff b/dvb-spec/valgrind-1.0.4.diff
index 20ddcc956..0e77afe14 100644
--- a/dvb-spec/valgrind-1.0.4.diff
+++ b/dvb-spec/valgrind-1.0.4.diff
@@ -1,7 +1,7 @@
diff -Naur valgrind-1.0.4.orig/vg_syscall_mem.c valgrind-1.0.4/vg_syscall_mem.c
--- valgrind-1.0.4.orig/vg_syscall_mem.c 2002-10-13 17:04:49.000000000 +0200
-+++ valgrind-1.0.4/vg_syscall_mem.c 2003-03-03 06:17:15.000000000 +0100
-@@ -2323,6 +2323,332 @@
++++ valgrind-1.0.4/vg_syscall_mem.c 2003-03-03 07:34:50.000000000 +0100
+@@ -2323,6 +2323,336 @@
sizeof(struct cdrom_msf));
KERNEL_DO_SYSCALL(tid,res);
break;
@@ -229,10 +229,12 @@ diff -Naur valgrind-1.0.4.orig/vg_syscall_mem.c valgrind-1.0.4/vg_syscall_mem.c
+ make_readable (arg3, sizeof(struct dvb_frontend_event));
+ break;
+ case NET_ADD_IF:
-+ must_be_readable(tst, "ioctl(NET_ADD_IF)", arg3,
-+ sizeof(struct dvb_net_if));
-+ must_be_writable(tst, "ioctl(NET_ADD_IF)", arg3,
-+ sizeof(struct dvb_net_if));
++ must_be_readable(tst, "ioctl(NET_ADD_IF (pid, uint16_t))",
++ (int) &(((struct dvb_net_if *) arg3)->pid),
++ sizeof(((struct dvb_net_if *) arg3)->pid));
++ must_be_writable(tst, "ioctl(NET_ADD_IF (if_num, uint16_t))",
++ (int) &(((struct dvb_net_if *) arg3)->if_num),
++ sizeof(((struct dvb_net_if *) arg3)->if_num));
+ KERNEL_DO_SYSCALL(tid,res);
+ if (!VG_(is_kerror)(res) && res == 0)
+ make_readable (arg3, sizeof(struct dvb_net_if));
@@ -241,10 +243,12 @@ diff -Naur valgrind-1.0.4.orig/vg_syscall_mem.c valgrind-1.0.4/vg_syscall_mem.c
+ KERNEL_DO_SYSCALL(tid,res);
+ break;
+ case NET_GET_IF:
-+ must_be_readable(tst, "ioctl(NET_GET_IF)", arg3,
-+ sizeof(struct dvb_net_if));
-+ must_be_writable(tst, "ioctl(NET_GET_IF)", arg3,
-+ sizeof(struct dvb_net_if));
++ must_be_readable(tst, "ioctl(NET_GET_IF (if_num, uint16_t))",
++ (int) &(((struct dvb_net_if *) arg3)->if_num),
++ sizeof(((struct dvb_net_if *) arg3)->if_num));
++ must_be_writable(tst, "ioctl(NET_GET_IF (pid, uint16_t))",
++ (int) &(((struct dvb_net_if *) arg3)->pid),
++ sizeof(((struct dvb_net_if *) arg3)->pid));
+ KERNEL_DO_SYSCALL(tid,res);
+ if (!VG_(is_kerror)(res) && res == 0)
+ make_readable (arg3, sizeof(struct dvb_net_if));