diff options
author | joerg <joerg@pkgsrc.org> | 2005-11-06 19:39:49 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-11-06 19:39:49 +0000 |
commit | 69d9ee5e6815b0c02bf73121964a32e5318d5b8e (patch) | |
tree | 6742091589cae089f067fe0a084a613d75d15a76 /benchmarks/dbench | |
parent | a38a1dc0e2f107414379ed68b29e1043a1d811cc (diff) | |
download | pkgsrc-69d9ee5e6815b0c02bf73121964a32e5318d5b8e.tar.gz |
Use O_FSYNC instead of O_SYNC on DragonFly. Disable extattr_get_file
on DragonFly, the semantic is different and it isn't very useful
in the current form.
Diffstat (limited to 'benchmarks/dbench')
-rw-r--r-- | benchmarks/dbench/distinfo | 5 | ||||
-rw-r--r-- | benchmarks/dbench/patches/patch-aa | 14 | ||||
-rw-r--r-- | benchmarks/dbench/patches/patch-ac | 13 |
3 files changed, 25 insertions, 7 deletions
diff --git a/benchmarks/dbench/distinfo b/benchmarks/dbench/distinfo index 90d33b3529e..8549539a644 100644 --- a/benchmarks/dbench/distinfo +++ b/benchmarks/dbench/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.8 2005/10/10 08:35:54 xtraeme Exp $ +$NetBSD: distinfo,v 1.9 2005/11/06 19:39:49 joerg Exp $ SHA1 (dbench-3.03.tar.gz) = 9261e6c3d800ee6822be579ac37a9d531a03e4c2 RMD160 (dbench-3.03.tar.gz) = 1fc311e3d598f25b96448002006a94e24ae8424a Size (dbench-3.03.tar.gz) = 2076982 bytes -SHA1 (patch-aa) = b2a134ef7650bef60551972f5c3c0209d6d41112 +SHA1 (patch-aa) = 462f50ac9d529d788f165556846df88b8d8765c6 SHA1 (patch-ab) = 5a26819bffe3a20c31e88846d327e3af92144833 +SHA1 (patch-ac) = 19fe1e5d1957c711a2eec8c12290074238ffc773 diff --git a/benchmarks/dbench/patches/patch-aa b/benchmarks/dbench/patches/patch-aa index f4fdd5ee386..dc5e73bfd3a 100644 --- a/benchmarks/dbench/patches/patch-aa +++ b/benchmarks/dbench/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.4 2005/09/25 10:40:18 rillig Exp $ +$NetBSD: patch-aa,v 1.5 2005/11/06 19:39:49 joerg Exp $ ---- fileio.c.orig Mon Dec 13 03:47:59 2004 -+++ fileio.c Sat Sep 24 23:06:17 2005 -@@ -19,6 +19,10 @@ +--- fileio.c.orig 2004-12-13 02:47:59.000000000 +0000 ++++ fileio.c +@@ -19,6 +19,14 @@ */ #include "dbench.h" @@ -10,10 +10,14 @@ $NetBSD: patch-aa,v 1.4 2005/09/25 10:40:18 rillig Exp $ +#include <sys/aio.h> +#define fdatasync fsync +#endif ++ ++#ifdef __DragonFly__ ++#define O_SYNC O_FSYNC ++#endif #define MAX_FILES 200 -@@ -375,12 +379,14 @@ void nb_qfileinfo(struct child_struct *c +@@ -375,12 +383,14 @@ void nb_qfileinfo(struct child_struct *c void nb_qfsinfo(struct child_struct *child, int level, const char *status) { diff --git a/benchmarks/dbench/patches/patch-ac b/benchmarks/dbench/patches/patch-ac new file mode 100644 index 00000000000..081e1b0b849 --- /dev/null +++ b/benchmarks/dbench/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2005/11/06 19:39:49 joerg Exp $ + +--- system.c.orig 2005-11-06 19:15:46.000000000 +0000 ++++ system.c +@@ -30,7 +30,7 @@ ssize_t sys_getxattr (const char *path, + { + #if defined(HAVE_GETXATTR) + return getxattr(path, name, value, size); +-#elif defined(HAVE_EXTATTR_GET_FILE) ++#elif defined(HAVE_EXTATTR_GET_FILE) && !defined(__DragonFly__) + char *s; + int attrnamespace = (strncmp(name, "system", 6) == 0) ? + EXTATTR_NAMESPACE_SYSTEM : EXTATTR_NAMESPACE_USER; |