From 07f218f3a457250b25fb5236609ec161035206b3 Mon Sep 17 00:00:00 2001
From: Rich Prohaska <prohaska@tokutek.com>
Date: Thu, 13 Nov 2008 14:54:45 +0000
Subject: [PATCH] imp toku_os_ closes #1253

git-svn-id: file:///svn/toku/tokudb.1032b@7838 c7de825b-a66e-492c-adef-691d508d4ae1
---
 db-benchmark-test/db-benchmark-test.c |  2 +-
 src/tests/test_db_version.c           | 11 ++++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/db-benchmark-test/db-benchmark-test.c b/db-benchmark-test/db-benchmark-test.c
index 4a59c19d8fa..0493242c48b 100644
--- a/db-benchmark-test/db-benchmark-test.c
+++ b/db-benchmark-test/db-benchmark-test.c
@@ -79,7 +79,7 @@ static void benchmark_setup (void) {
 	system(unlink_cmd);
     }
     if (strcmp(dbdir, ".") != 0) {
-        r = os_mkdir(dbdir,S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
+        r = toku_os_mkdir(dbdir,S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
         assert(r == 0);
     }
 
diff --git a/src/tests/test_db_version.c b/src/tests/test_db_version.c
index e8c66bc1f3e..e302a702927 100644
--- a/src/tests/test_db_version.c
+++ b/src/tests/test_db_version.c
@@ -1,19 +1,28 @@
 /* -*- mode: C; c-basic-offset: 4 -*- */
 #ident "Copyright (c) 2007 Tokutek Inc.  All rights reserved."
 
+#include "portability.h"
 #include <db.h>
 #include <assert.h>
 
 #include "test.h"
 
-int main (int UU(argc), char UU(*argv[])) {
+int main (int argc, char *argv[]) {
     const char *v;
     int major, minor, patch;
+    int i;
+    for (i=1; i<argc; i++) {
+        char *arg = argv[i];
+        if (strcmp(arg, "-v") == 0)
+            verbose++;
+    }
     v = db_version(0, 0, 0);
     assert(v!=0);
     v = db_version(&major, &minor, &patch);
     assert(major==DB_VERSION_MAJOR);
     assert(minor==DB_VERSION_MINOR);
     assert(patch==DB_VERSION_PATCH);
+    if (verbose)
+        printf("%d.%d.%d %s\n", major, minor, patch, v);
     return 0;
 }
-- 
2.30.9