summaryrefslogtreecommitdiff
path: root/performance-tests
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-02-24 17:33:12 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-02-24 17:33:12 +0000
commite6ada50531f9f5a99b13422d3b96600baee61f82 (patch)
tree28d8babce0abf0610d6f8aa3b49ab43236c1e018 /performance-tests
parente53f0c0f044d27b28901fa1a07011b7fb9bc0d53 (diff)
downloadATCD-e6ada50531f9f5a99b13422d3b96600baee61f82.tar.gz
ChangeLogTag: Thu Feb 19 17:33:11 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'performance-tests')
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Adaptive_Lock_Performance_Test_Base.h2
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.cpp4
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h4
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.cpp2
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.h2
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp26
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.h20
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.i14
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/adaptive_mutex_test.cpp4
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/adaptive_recursive_lock_test.cpp4
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/adaptive_sema_test.cpp4
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp6
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/pipe_proc_test.cpp10
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/pipe_thr_test.cpp10
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/sysvsema_test.cpp4
15 files changed, 58 insertions, 58 deletions
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Adaptive_Lock_Performance_Test_Base.h b/performance-tests/Synch-Benchmarks/Perf_Test/Adaptive_Lock_Performance_Test_Base.h
index eae59d82db6..9fb65628ea8 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Adaptive_Lock_Performance_Test_Base.h
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Adaptive_Lock_Performance_Test_Base.h
@@ -11,7 +11,7 @@ ACE_RCSID(Synch_Benchmarks, Adaptive_Lock_Performance_Test_Base, "$Id$")
class ACE_Svc_Export Adaptive_Lock_Performance_Test_Base : public Benchmark_Performance
{
public:
- virtual int init (int, char *[]) = 0;
+ virtual int init (int, ACE_TCHAR *[]) = 0;
virtual int fini (void);
virtual int svc (void);
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.cpp
index 713f9c71ad8..d563b6e832c 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.cpp
@@ -33,13 +33,13 @@ Benchmark_Performance::done (sig_atomic_t d)
}
int
-Benchmark_Performance::init (int, char **)
+Benchmark_Performance::init (int, ACE_TCHAR **)
{
return 1;
}
int
-Benchmark_Performance::info (char **, size_t) const
+Benchmark_Performance::info (ACE_TCHAR **, size_t) const
{
return -1;
}
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h
index 2a582bfc81b..b66a83048a7 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h
@@ -30,8 +30,8 @@ class ACE_Svc_Export Benchmark_Performance : public Benchmark_Performance_Test_B
public:
// = Hooks inherited from ACE_Service_Object.
virtual int svc (void) = 0;
- virtual int init (int, char *[]);
- virtual int info (char **, size_t) const;
+ virtual int init (int, ACE_TCHAR *[]);
+ virtual int info (ACE_TCHAR **, size_t) const;
virtual int fini (void);
static void *svc_run (Benchmark_Performance *bp);
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.cpp
index c54c5f900f3..4dd6126f06b 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.cpp
@@ -18,7 +18,7 @@ Performance_Test::Performance_Test (void)
// Initialize and run the benchmarks tests.
int
-Performance_Test::init (int argc, char **argv)
+Performance_Test::init (int argc, ACE_TCHAR **argv)
{
ACE_DEBUG ((LM_DEBUG, "Performance_Test::init\n"));
performance_test_options.parse_args (argc, argv);
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.h b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.h
index c6775cb5bbe..ee8e9d8ee2f 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.h
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.h
@@ -10,7 +10,7 @@ class ACE_Svc_Export Performance_Test : public Benchmark_Method_Base
{
public:
Performance_Test (void);
- virtual int init (int argc, char *argv[]);
+ virtual int init (int argc, ACE_TCHAR *argv[]);
virtual int pre_run_test (Benchmark_Base *bp);
virtual int run_test (void);
virtual int post_run_test (void);
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp
index 21e917cddfb..83ce801f066 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp
@@ -42,7 +42,7 @@ Performance_Test_Options::Performance_Test_Options (void)
: thr_wc_size (10000),
_service_entry (0),
_mapped_file (0),
- _pipe_addr (ACE_const_cast (char *, ACE_DEFAULT_RENDEZVOUS)),
+ _pipe_addr (ACE_const_cast (ACE_TCHAR *, ACE_DEFAULT_RENDEZVOUS)),
_sleep_time (100),
_n_lwps (0),
_thr_count (4),
@@ -72,16 +72,16 @@ Performance_Test_Options::Performance_Test_Options (void)
}
void
-Performance_Test_Options::parse_args (int argc, char *argv[])
+Performance_Test_Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "a:A:bBc:C:dDe:F:g:H:i:L:l:M:m:n:Np:P:s:S:t:T:uvX:Z:", 0);
+ ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("a:A:bBc:C:dDe:F:g:H:i:L:l:M:m:n:Np:P:s:S:t:T:uvX:Z:"), 0);
int c;
while ((c = get_opt ()) != -1)
switch (c)
{
case 'a': // Not used. (do_ack ???)
- this->_ack = ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0;
+ this->_ack = ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("ON")) == 0;
break;
case 'A': // Not used. (set rendezvous point.)
this->pipe_addr (get_opt.opt_arg ());
@@ -103,7 +103,7 @@ Performance_Test_Options::parse_args (int argc, char *argv[])
break;
}
case 'C': // Not used. (Toggle calculate checksum.)
- this->_checksum = ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0;
+ this->_checksum = ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("ON")) == 0;
break;
case 'd': // Not used. (Enable debugging.)
this->_debugging = 1;
@@ -112,13 +112,13 @@ Performance_Test_Options::parse_args (int argc, char *argv[])
this->t_flags (THR_DETACHED);
break;
case 'e': // Perform eager exit (without cleaning up.)
- this->_eager_exit = ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0;
+ this->_eager_exit = ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("ON")) == 0;
break;
case 'F': // Not used.
- this->_free_memory = ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0;
+ this->_free_memory = ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("ON")) == 0;
break;
case 'g': // Not used. (generate data ??)
- this->_generate = ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0;
+ this->_generate = ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("ON")) == 0;
break;
case 'H': // Not used. (set high water mark)
this->high_water_mark (ACE_OS::atoi (get_opt.opt_arg ()));
@@ -145,7 +145,7 @@ Performance_Test_Options::parse_args (int argc, char *argv[])
this->n_lwps (ACE_OS::atoi (get_opt.opt_arg ()));
break;
case 'p': // Toggle whether summary is printed.
- this->_print_summary = ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0;
+ this->_print_summary = ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("ON")) == 0;
break;
case 'P': // Not used.
this->consecutive_ports (ACE_OS::atoi (get_opt.opt_arg ()));
@@ -158,9 +158,9 @@ Performance_Test_Options::parse_args (int argc, char *argv[])
break;
case 'T': // Enable/disable tracing.
#if defined (ACE_HAS_TRACE)
- if (ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0)
+ if (ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("ON")) == 0)
ACE_Trace::start_tracing ();
- else if (ACE_OS::strcasecmp (get_opt.opt_arg (), "OFF") == 0)
+ else if (ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("OFF")) == 0)
ACE_Trace::stop_tracing ();
#endif /* ACE_HAS_TRACE */
break;
@@ -174,10 +174,10 @@ Performance_Test_Options::parse_args (int argc, char *argv[])
this->_verbosity = 1;
break;
case 'X': // Not used. (Use xdr conversion.)
- this->_xdr = ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0;
+ this->_xdr = ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("ON")) == 0;
break;
case 'Z': // Not used. (Do zero copy.)
- this->_zero_copy = ACE_OS::strcasecmp (get_opt.opt_arg (), "ON") == 0;
+ this->_zero_copy = ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("ON")) == 0;
break;
default:
ACE_DEBUG ((LM_INFO,
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.h b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.h
index a3f5a49cd12..8d38e4634ca 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.h
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.h
@@ -24,7 +24,7 @@ class ACE_Svc_Export Performance_Test_Options
{
public:
Performance_Test_Options (void);
- void parse_args (int argc, char *argv[]);
+ void parse_args (int argc, ACE_TCHAR *argv[]);
void init (void);
@@ -34,14 +34,14 @@ public:
void thr_count (size_t count);
size_t thr_count (void);
- void pipe_addr (char pipe[]);
- char *pipe_addr (void);
+ void pipe_addr (ACE_TCHAR pipe[]);
+ ACE_TCHAR *pipe_addr (void);
- void mapped_file (char filename[]);
- char *mapped_file (void);
+ void mapped_file (ACE_TCHAR filename[]);
+ ACE_TCHAR *mapped_file (void);
- void service_entry (char *service_entry);
- char *service_entry (void);
+ void service_entry (ACE_TCHAR *service_entry);
+ ACE_TCHAR *service_entry (void);
void sleep_time (size_t count);
size_t sleep_time (void);
@@ -97,9 +97,9 @@ public:
private:
ACE_Profile_Timer _itimer; // Keep track of time.
- char *_service_entry; // Name of the shared object file and shared object.
- char *_mapped_file; // Name of the mapped file.
- char *_pipe_addr; // Name of the STREAM pipe.
+ ACE_TCHAR *_service_entry; // Name of the shared object file and shared object.
+ ACE_TCHAR *_mapped_file; // Name of the mapped file.
+ ACE_TCHAR *_pipe_addr; // Name of the STREAM pipe.
size_t _sleep_time; // Time to sleep.
size_t _n_lwps; // Number of LWPs.
size_t _thr_count; // Number of threads to spawn.
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.i b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.i
index 2ce171075bf..6856edfa3cd 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.i
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.i
@@ -5,7 +5,7 @@
#include "ace/Get_Opt.h"
-// Since this is only included in the .h file, these should be
+// Since this is only included in the .h file, these should be
// remain inline, not ACE_INLINE.
// FUZZ: disable check_for_inline
@@ -89,36 +89,36 @@ Performance_Test_Options::n_lwps (void)
}
inline void
-Performance_Test_Options::pipe_addr (char *pipe)
+Performance_Test_Options::pipe_addr (ACE_TCHAR *pipe)
{
this->_pipe_addr = pipe;
}
-inline char *
+inline ACE_TCHAR *
Performance_Test_Options::pipe_addr (void)
{
return this->_pipe_addr;
}
inline void
-Performance_Test_Options::service_entry (char *pipe)
+Performance_Test_Options::service_entry (ACE_TCHAR *pipe)
{
this->_service_entry = pipe;
}
-inline char *
+inline ACE_TCHAR *
Performance_Test_Options::service_entry (void)
{
return this->_service_entry;
}
inline void
-Performance_Test_Options::mapped_file (char *filename)
+Performance_Test_Options::mapped_file (ACE_TCHAR *filename)
{
this->_mapped_file = filename;
}
-inline char *
+inline ACE_TCHAR *
Performance_Test_Options::mapped_file (void)
{
return this->_mapped_file;
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_mutex_test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_mutex_test.cpp
index 0381e964f52..cc28443533a 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_mutex_test.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_mutex_test.cpp
@@ -11,11 +11,11 @@ ACE_RCSID(Synch_Benchmarks, adaptive_mutex_test, "$Id$")
class ACE_Svc_Export Adaptive_Mutex_Test : public Adaptive_Lock_Performance_Test_Base
{
public:
- virtual int init (int, char *[]);
+ virtual int init (int, ACE_TCHAR *[]);
};
int
-Adaptive_Mutex_Test::init (int, char *[])
+Adaptive_Mutex_Test::init (int, ACE_TCHAR *[])
{
ACE_Lock *lock;
ACE_NEW_RETURN (lock,
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_recursive_lock_test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_recursive_lock_test.cpp
index a3cb2c2dd69..e332abd5bd4 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_recursive_lock_test.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_recursive_lock_test.cpp
@@ -12,11 +12,11 @@ ACE_RCSID(Synch_Benchmarks, adaptive_recursive_lock_test, "$Id$")
class ACE_Svc_Export Adaptive_Recursive_Lock_Test : public Adaptive_Lock_Performance_Test_Base
{
public:
- virtual int init (int, char *[]);
+ virtual int init (int, ACE_TCHAR *[]);
};
int
-Adaptive_Recursive_Lock_Test::init (int, char *[])
+Adaptive_Recursive_Lock_Test::init (int, ACE_TCHAR *[])
{
ACE_Lock *lock;
ACE_NEW_RETURN (lock,
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_sema_test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_sema_test.cpp
index 5b0c7d4af37..1320a5f0c69 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_sema_test.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/adaptive_sema_test.cpp
@@ -12,7 +12,7 @@ ACE_RCSID(Synch_Benchmarks, adaptive_sema_test, "$Id$")
class ACE_Svc_Export Adaptive_Sema_Test : public Adaptive_Lock_Performance_Test_Base
{
public:
- virtual int init (int, char *[]);
+ virtual int init (int, ACE_TCHAR *[]);
private:
static ACE_Semaphore sema;
@@ -21,7 +21,7 @@ private:
ACE_Semaphore Adaptive_Sema_Test::sema (1);
int
-Adaptive_Sema_Test::init (int, char *[])
+Adaptive_Sema_Test::init (int, ACE_TCHAR *[])
{
ACE_Lock *lock;
ACE_NEW_RETURN (lock,
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp
index 4f325eaf49b..c59fd47ade6 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp
@@ -18,7 +18,7 @@ public:
};
virtual int svc (void);
- virtual int init (int, char *[]);
+ virtual int init (int, ACE_TCHAR *[]);
void test_guard (int);
#if defined (ACE_USES_OBSOLETE_GUARD_CLASSES)
@@ -33,9 +33,9 @@ int Guard_Test::guard_type_ = Guard_Test::TEST_ACE_GUARD;
ACE_Thread_Mutex Guard_Test::mutex_;
int
-Guard_Test::init (int argc, char *argv[])
+Guard_Test::init (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, "gt");
+ ACE_Get_Opt getopt (argc, argv, ACE_TEXT("gt"));
int c;
while ((c = getopt()) != -1)
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/pipe_proc_test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/pipe_proc_test.cpp
index 1215d7dac68..2c1b31e90dc 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/pipe_proc_test.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/pipe_proc_test.cpp
@@ -11,7 +11,7 @@ ACE_RCSID(Synch_Benchmarks, pipe_proc_test, "$Id$")
class ACE_Svc_Export Pipe_Proc_Test : public Benchmark_Performance
{
public:
- int init (int, char **);
+ int init (int, ACE_TCHAR **);
virtual int svc (void);
private:
@@ -21,17 +21,17 @@ private:
};
int
-Pipe_Proc_Test::init (int, char **)
+Pipe_Proc_Test::init (int, ACE_TCHAR **)
{
synch_count = 1;
if (ACE_OS::pipe (this->pipe_handles) == -1)
- ACE_OS::perror ("pipe"), ACE_OS::exit (1);
+ ACE_OS::perror (ACE_TEXT("pipe")), ACE_OS::exit (1);
switch (ACE_OS::fork ())
{
case -1:
- ACE_OS::perror ("fork"), ACE_OS::exit (1);
+ ACE_OS::perror (ACE_TEXT("fork")), ACE_OS::exit (1);
case 0:
this->reader (pipe_handles[0]);
/* NOTREACHED */
@@ -70,7 +70,7 @@ Pipe_Proc_Test::svc (void)
if (ACE_OS::write (handle, from, length) == length)
performance_test_options.thr_work_count[ni]++;
else
- ACE_OS::perror ("write");
+ ACE_OS::perror (ACE_TEXT("write"));
ACE_OS::close (this->pipe_handles[0]);
ACE_OS::close (this->pipe_handles[1]);
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/pipe_thr_test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/pipe_thr_test.cpp
index 4221e16a53d..12c0847436b 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/pipe_thr_test.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/pipe_thr_test.cpp
@@ -12,7 +12,7 @@ ACE_RCSID(Synch_Benchmarks, pipe_thr_test, "$Id$")
class ACE_Svc_Export Pipe_Thr_Test : public Benchmark_Performance
{
public:
- virtual int init (int, char **);
+ virtual int init (int, ACE_TCHAR **);
virtual int svc (void);
private:
@@ -37,17 +37,17 @@ Pipe_Thr_Test::reader (Pipe_Thr_Test *t)
}
int
-Pipe_Thr_Test::init (int, char **)
+Pipe_Thr_Test::init (int, ACE_TCHAR **)
{
synch_count = 1;
if (ACE_OS::pipe (this->pipe_handles) == -1)
- ACE_OS::perror ("pipe"), ACE_OS::exit (1);
+ ACE_OS::perror (ACE_TEXT("pipe")), ACE_OS::exit (1);
if (ACE_Thread_Manager::instance ()->spawn
(ACE_THR_FUNC (Pipe_Thr_Test::reader),
(void *) this, performance_test_options.t_flags ()) == -1)
- ACE_OS::perror ("thr_create"), ACE_OS::exit (1);
+ ACE_OS::perror (ACE_TEXT("thr_create")), ACE_OS::exit (1);
return 1;
}
@@ -62,7 +62,7 @@ Pipe_Thr_Test::svc (void)
while (!this->done ())
if (ACE_OS::write (handle, from, length) != length)
- ACE_OS::perror ("write");
+ ACE_OS::perror (ACE_TEXT("write"));
ACE_OS::close (this->pipe_handles[0]);
ACE_OS::close (this->pipe_handles[1]);
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/sysvsema_test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/sysvsema_test.cpp
index 1da04d95e4e..5899e4f1a75 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/sysvsema_test.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/sysvsema_test.cpp
@@ -12,7 +12,7 @@ ACE_RCSID(Synch_Benchmarks, sysvsema_test, "$Id$")
class ACE_Svc_Export SYSVSema_Test : public Benchmark_Performance
{
public:
- virtual int init (int, char *[]);
+ virtual int init (int, ACE_TCHAR *[]);
virtual int fini (void);
virtual int svc (void);
@@ -24,7 +24,7 @@ private:
ACE_SV_Semaphore_Simple *SYSVSema_Test::sema = 0;
int
-SYSVSema_Test::init (int, char *[])
+SYSVSema_Test::init (int, ACE_TCHAR *[])
{
#if defined (ACE_HAS_SYSV_IPC)
ACE_NEW_RETURN (SYSVSema_Test::sema, ACE_SV_Semaphore_Simple ((key_t) 1234), -1);