1 |
patrick 08/11/23 09:56:37 |
2 |
|
3 |
Added: bonnie++-1.94-missing_include.patch |
4 |
bonnie++-1.94-64bit.patch |
5 |
Log: |
6 |
Bump. |
7 |
(Portage version: 2.2_rc14/cvs/Linux 2.6.26.5 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-benchmarks/bonnie++/files/bonnie++-1.94-missing_include.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-benchmarks/bonnie++/files/bonnie++-1.94-missing_include.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-benchmarks/bonnie++/files/bonnie++-1.94-missing_include.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: bonnie++-1.94-missing_include.patch |
16 |
=================================================================== |
17 |
diff -Naur bonnie++-1.93c.orig/bon_csv2html.cpp bonnie++-1.93c/bon_csv2html.cpp |
18 |
--- bonnie++-1.93c.orig/bon_csv2html.cpp 2008-05-02 14:12:19.000000000 +0200 |
19 |
+++ bonnie++-1.93c/bon_csv2html.cpp 2008-05-02 14:13:57.000000000 +0200 |
20 |
@@ -3,6 +3,7 @@ |
21 |
#include <vector> |
22 |
#include <string.h> |
23 |
#include <math.h> |
24 |
+#include <stdlib.h> |
25 |
|
26 |
// Maximum number of items expected on a csv line |
27 |
#define MAX_ITEMS 48 |
28 |
diff -Naur bonnie++-1.93c.orig/getc_putc.cpp bonnie++-1.93c/getc_putc.cpp |
29 |
--- bonnie++-1.93c.orig/getc_putc.cpp 2008-05-02 14:12:19.000000000 +0200 |
30 |
+++ bonnie++-1.93c/getc_putc.cpp 2008-05-02 14:19:15.000000000 +0200 |
31 |
@@ -12,6 +12,7 @@ |
32 |
#include <sys/types.h> |
33 |
#include <sys/stat.h> |
34 |
#include <fcntl.h> |
35 |
+#include <string.h> |
36 |
#include <vector> |
37 |
|
38 |
#include "duration.h" |
39 |
diff -Naur bonnie++-1.93c.orig/getc_putc_helper.cpp bonnie++-1.93c/getc_putc_helper.cpp |
40 |
--- bonnie++-1.93c.orig/getc_putc_helper.cpp 2008-05-02 14:12:19.000000000 +0200 |
41 |
+++ bonnie++-1.93c/getc_putc_helper.cpp 2008-05-02 14:19:57.000000000 +0200 |
42 |
@@ -7,6 +7,7 @@ |
43 |
#include <sys/types.h> |
44 |
#include <sys/stat.h> |
45 |
#include <fcntl.h> |
46 |
+#include <string.h> |
47 |
#include "duration.h" |
48 |
#include <vector> |
49 |
#include "getc_putc.h" |
50 |
diff -Naur bonnie++-1.93c.orig/zcav.cpp bonnie++-1.93c/zcav.cpp |
51 |
--- bonnie++-1.93c.orig/zcav.cpp 2008-05-02 14:12:19.000000000 +0200 |
52 |
+++ bonnie++-1.93c/zcav.cpp 2008-05-02 14:20:42.000000000 +0200 |
53 |
@@ -9,6 +9,9 @@ |
54 |
#include "getopt.h" |
55 |
#endif |
56 |
|
57 |
+#include <stdlib.h> |
58 |
+#include <string.h> |
59 |
+ |
60 |
#define TOO_MANY_LOOPS 100 |
61 |
|
62 |
void usage() |
63 |
|
64 |
|
65 |
|
66 |
1.1 app-benchmarks/bonnie++/files/bonnie++-1.94-64bit.patch |
67 |
|
68 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-benchmarks/bonnie++/files/bonnie++-1.94-64bit.patch?rev=1.1&view=markup |
69 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-benchmarks/bonnie++/files/bonnie++-1.94-64bit.patch?rev=1.1&content-type=text/plain |
70 |
|
71 |
Index: bonnie++-1.94-64bit.patch |
72 |
=================================================================== |
73 |
--- getc_putc.cpp.old 2004-09-15 02:37:21.500489552 +0200 |
74 |
+++ getc_putc.cpp 2004-09-15 02:40:58.623481840 +0200 |
75 |
@@ -165,7 +165,11 @@ |
76 |
int size = 0, wrote; |
77 |
while(size < file_size) |
78 |
{ |
79 |
- wrote = write(FILE_FD, buf, min(sizeof(buf), (unsigned int)file_size - size)); |
80 |
+ //wrote = write(FILE_FD, buf, min(sizeof(buf), (unsigned int)file_size - size)); |
81 |
+ /* |
82 |
+ * gcc doesn't like above line. ? : should do the job as good as min()... |
83 |
+ */ |
84 |
+ wrote = write(FILE_FD, buf, (sizeof(buf) < (file_size - size) ? (sizeof(buf)):(file_size - size))); |
85 |
if(wrote < 0) |
86 |
{ |
87 |
fprintf(stderr, "Can't extend file - disk full?\n"); |