diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-01-05 01:28:52 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-01-05 01:28:52 +0000 |
commit | 45e9e173c84e5ddaffc9d4049719345fd5b34202 (patch) | |
tree | 8b775da14b4e7a82eedb1719108b3cdb288bd184 /ace/FILE.cpp | |
parent | 33ad447d78d88e691325511694f8c569e4a08035 (diff) | |
download | ATCD-45e9e173c84e5ddaffc9d4049719345fd5b34202.tar.gz |
.
Diffstat (limited to 'ace/FILE.cpp')
-rw-r--r-- | ace/FILE.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/ace/FILE.cpp b/ace/FILE.cpp index 2c39321cd89..6af5bb20dab 100644 --- a/ace/FILE.cpp +++ b/ace/FILE.cpp @@ -75,19 +75,34 @@ ACE_FILE::truncate (off_t length) } off_t +ACE_FILE::seek (long offset, int startpos) +{ + return ACE_OS::lseek (this->get_handle (), + offset, + startpos); +} + +off_t ACE_FILE::position (long offset, int startpos) { ACE_TRACE ("ACE_FILE::position"); - return ACE_OS::lseek (this->get_handle (), offset, startpos); + return this->seek (offset, startpos); } off_t -ACE_FILE::position (void) +ACE_FILE::tell (void) { ACE_TRACE ("ACE_FILE::position"); return ACE_OS::lseek (this->get_handle (), 0, SEEK_CUR); } +off_t +ACE_FILE::position (void) +{ + ACE_TRACE ("ACE_FILE::position"); + return this->tell (); +} + // Return the local endpoint address. int |