aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2004-01-10 15:57:35 +0800
committeredwin <edwin@FreeBSD.org>2004-01-10 15:57:35 +0800
commite1309d51a5b9421cd9aba0ab9fcb77078592d228 (patch)
tree9a9ee3c3c289fa072e5d23509f0db2625207c6c7 /benchmarks
parent3632363ecd7f6b25bde216d320cd06be5131b072 (diff)
downloadfreebsd-ports-gnome-e1309d51a5b9421cd9aba0ab9fcb77078592d228.tar.gz
freebsd-ports-gnome-e1309d51a5b9421cd9aba0ab9fcb77078592d228.tar.zst
freebsd-ports-gnome-e1309d51a5b9421cd9aba0ab9fcb77078592d228.zip
[PATCH] benchmarks/rawio has a bug in commandline option parser
run rawio with -s option(size of raw disk device), as follows: % rawio -a -s 30029328k -v 1 /dev/ad4c returned: Invalid length specification: -v in source rawio.c, it skips parsing argument at one point. PR: ports/58567 Submitted by: OOTOMO Hiroyuki <ootomo@za.wakwak.com> Approved by: maintainer timeout
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/rawio/Makefile1
-rw-r--r--benchmarks/rawio/files/patch-ad19
2 files changed, 15 insertions, 5 deletions
diff --git a/benchmarks/rawio/Makefile b/benchmarks/rawio/Makefile
index d3a9498722f7..240326e89709 100644
--- a/benchmarks/rawio/Makefile
+++ b/benchmarks/rawio/Makefile
@@ -8,6 +8,7 @@
PORTNAME= rawio
PORTVERSION= 1.2
+PORTREVISION= 1
CATEGORIES= benchmarks
MASTER_SITES= ftp://ftp.lemis.com/pub/
diff --git a/benchmarks/rawio/files/patch-ad b/benchmarks/rawio/files/patch-ad
index efb1cbc2d164..fa92520200be 100644
--- a/benchmarks/rawio/files/patch-ad
+++ b/benchmarks/rawio/files/patch-ad
@@ -1,6 +1,15 @@
---- rawio.c~ Fri Mar 29 16:52:17 2002
-+++ rawio.c Fri Mar 29 16:53:49 2002
-@@ -358,7 +358,11 @@
+--- rawio.c.orig Sun Nov 26 19:28:19 2000
++++ rawio.c Fri Jan 9 23:53:28 2004
+@@ -423,7 +423,7 @@
+ printf ("No arg to n flag\n");
+ break;
+ }
+- filesize = sizespec (argv [++i]);
++ filesize = sizespec (arg);
+ break;
+
+ case 'S':
+@@ -580,7 +580,11 @@
childinfo = mmap (NULL,
nproc * sizeof (struct childinfo),
PROT_READ | PROT_WRITE,
@@ -10,5 +19,5 @@
+ MAP_SHARED | MAP_ANON,
+#endif
-1,
- 0 );
- if (childinfo == MAP_FAILED)
+ (off_t) 0 );
+ #else