diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-22 16:30:11 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-22 16:30:11 +0000 |
commit | 75be7fa77b4ecdb572c9f32f4c8c227ca272a436 (patch) | |
tree | a105e9a2107a8ca222f9bc722cb1a568c6481af1 /examples/Misc | |
parent | 2b1f0d6551e104395e45e731edfe3fc2bd8aa603 (diff) | |
download | ATCD-75be7fa77b4ecdb572c9f32f4c8c227ca272a436.tar.gz |
replaced bare OS calls with ACE_OS calls
Diffstat (limited to 'examples/Misc')
-rw-r--r-- | examples/Misc/test_read_buffer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/Misc/test_read_buffer.cpp b/examples/Misc/test_read_buffer.cpp index 991bd41831b..005509d3896 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_Allocator::instance ()->free (buf); } return 0; |