diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-26 23:07:24 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-26 23:07:24 +0000 |
commit | ec9496bea543bd5ebb9214880c056b95446b6b13 (patch) | |
tree | f13a58e9814886bf7627a4f566caa7425bd61a25 /ACE/examples/Web_Crawler | |
parent | d4ce64ef75457044ad7a9334f787d24fbb4c0a23 (diff) | |
download | ATCD-ec9496bea543bd5ebb9214880c056b95446b6b13.tar.gz |
ChangeLogTag:Thu Oct 27 01:59:19 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'ACE/examples/Web_Crawler')
-rw-r--r-- | ACE/examples/Web_Crawler/Iterators.cpp | 2 | ||||
-rw-r--r-- | ACE/examples/Web_Crawler/Mem_Map_Stream.cpp | 8 | ||||
-rw-r--r-- | ACE/examples/Web_Crawler/Mem_Map_Stream.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/ACE/examples/Web_Crawler/Iterators.cpp b/ACE/examples/Web_Crawler/Iterators.cpp index 98b4f999622..232042cb835 100644 --- a/ACE/examples/Web_Crawler/Iterators.cpp +++ b/ACE/examples/Web_Crawler/Iterators.cpp @@ -46,7 +46,7 @@ HTML_Body_Iterator::next (ACE_CString &url) if ( href_index > 0) { // Get back to buffer start location. - this->url_.stream ().seek (-1 * static_cast<off_t> (len), + this->url_.stream ().seek (-1 * static_cast<ACE_OFF_T> (len), SEEK_CUR); int start_index = buffer.find ('\"', diff --git a/ACE/examples/Web_Crawler/Mem_Map_Stream.cpp b/ACE/examples/Web_Crawler/Mem_Map_Stream.cpp index dda1d465a71..26422e07dd3 100644 --- a/ACE/examples/Web_Crawler/Mem_Map_Stream.cpp +++ b/ACE/examples/Web_Crawler/Mem_Map_Stream.cpp @@ -70,7 +70,7 @@ Mem_Map_Stream::recv (size_t &len) const char *s = this->recv_pos_; - off_t olen = static_cast <off_t> (len); + ACE_OFF_T olen = static_cast <ACE_OFF_T> (len); this->seek (olen, SEEK_CUR); len = this->get_pos_ - s; return s; @@ -94,8 +94,8 @@ Mem_Map_Stream::peek_str (size_t offset, return &this->get_pos_[offset]; } -off_t -Mem_Map_Stream::seek (off_t offset, int whence) +ACE_OFF_T +Mem_Map_Stream::seek (ACE_OFF_T offset, int whence) { switch (whence) { @@ -120,7 +120,7 @@ Mem_Map_Stream::seek (off_t offset, int whence) // Make sure that the backing store will cover this. while (this->get_pos_ > this->end_of_mapping_plus1_) if (this->grow_file_and_remap () == -1) - return (off_t) -1; + return (ACE_OFF_T) -1; this->recv_pos_ = this->get_pos_; return this->recv_pos_ - reinterpret_cast<char *> (this->mem_map_.addr ()); diff --git a/ACE/examples/Web_Crawler/Mem_Map_Stream.h b/ACE/examples/Web_Crawler/Mem_Map_Stream.h index 3595f04ab77..b7aa58c85f0 100644 --- a/ACE/examples/Web_Crawler/Mem_Map_Stream.h +++ b/ACE/examples/Web_Crawler/Mem_Map_Stream.h @@ -124,7 +124,7 @@ public: // store if necessary. Returns 0 if <offset> or <offset + size> is // past the end of the stream. - virtual off_t seek (off_t offset, int whence = SEEK_CUR); + virtual ACE_OFF_T seek (ACE_OFF_T offset, int whence = SEEK_CUR); // Sets the <get> and <recv> positions as follows: // o If <whence> is <SEEK_SET>, the positions are set to <offset> // bytes from the start of the stream. |