summaryrefslogtreecommitdiff
path: root/examples/Misc
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-24 16:45:31 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-24 16:45:31 +0000
commit18b83734dab7828d3c839a4230ddb064d0008181 (patch)
treed1cadc2d130b3f09a40e011d9286ce686e682b54 /examples/Misc
parentc58bdacf9900f0a0b43b16d9f8e8539232a3ef95 (diff)
downloadATCD-18b83734dab7828d3c839a4230ddb064d0008181.tar.gz
replaced bare OS calls with ACE_OS calls.
Diffstat (limited to 'examples/Misc')
-rw-r--r--examples/Misc/test_read_buffer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/Misc/test_read_buffer.cpp b/examples/Misc/test_read_buffer.cpp
index 16e8fccd6d9..5c4dd3e695e 100644
--- a/examples/Misc/test_read_buffer.cpp
+++ b/examples/Misc/test_read_buffer.cpp
@@ -6,10 +6,10 @@
int
main (int argc, char *argv[])
{
- int handle = argc > 1 ? ::open (argv[1], O_RDONLY) : 0;
- int term = argc > 2 ? ::atoi (argv[2]) : EOF;
- int search = argc > 3 ? ::atoi (argv[3]) : '\n';
- int replace = argc > 4 ? ::atoi (argv[4]) : '\0';
+ int handle = argc > 1 ? ACE_OS::open (argv[1], O_RDONLY) : 0;
+ int term = argc > 2 ? ACE_OS::atoi (argv[2]) : EOF;
+ int search = argc > 3 ? ACE_OS::atoi (argv[3]) : '\n';
+ int replace = argc > 4 ? ACE_OS::atoi (argv[4]) : '\0';
ACE_Read_Buffer rb (handle);
@@ -17,7 +17,7 @@ main (int argc, char *argv[])
while ((buf = rb.read (term, search, replace)) != 0)
{
- ::write (1, buf, rb.size ());
+ ACE_OS::write (1, buf, rb.size ());
ACE_Service_Config::alloc ()->free (buf);
}
return 0;