/art/compiler/linker/ |
output_stream.h | 28 enum Whence { 33 std::ostream& operator<<(std::ostream& os, const Whence& rhs); 47 virtual off_t Seek(off_t offset, Whence whence) = 0;
|
output_stream.cc | 22 std::ostream& operator<<(std::ostream& os, const Whence& rhs) {
|
file_output_stream.h | 35 off_t Seek(off_t offset, Whence whence) OVERRIDE;
|
buffered_output_stream.h | 37 off_t Seek(off_t offset, Whence whence) OVERRIDE;
|
file_output_stream.cc | 33 off_t FileOutputStream::Seek(off_t offset, Whence whence) { 34 return lseek(file_->Fd(), offset, static_cast<int>(whence));
|
buffered_output_stream.cc | 64 off_t BufferedOutputStream::Seek(off_t offset, Whence whence) { 68 return out_->Seek(offset, whence);
|
vector_output_stream.cc | 27 off_t VectorOutputStream::Seek(off_t offset, Whence whence) { 28 CHECK(whence == kSeekSet || whence == kSeekCurrent || whence == kSeekEnd) << whence; 30 switch (whence) {
|
error_delaying_output_stream.h | 54 off_t Seek(off_t offset, Whence whence) OVERRIDE { 58 switch (whence) { 66 LOG(FATAL) << "Unsupported seek type: " << whence; 70 off_t actual_offset = output_->Seek(offset, whence); 73 << " whence=" << whence << " new_offset=" << new_offset;
|
vector_output_stream.h | 49 off_t Seek(off_t offset, Whence whence) OVERRIDE;
|
output_stream_test.cc | 117 off_t Seek(off_t offset ATTRIBUTE_UNUSED, Whence whence ATTRIBUTE_UNUSED) OVERRIDE {
|
/external/libbrillo/brillo/streams/ |
stream_utils_unittest.cc | 101 using Whence = Stream::Whence; 107 FROM_HERE, 0, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); 111 FROM_HERE, 0, Whence::FROM_CURRENT, current_pos, end_pos, &pos, nullptr)); 115 FROM_HERE, 0, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); 119 FROM_HERE, 10, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); 123 FROM_HERE, 10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, 128 FROM_HERE, 10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); 132 FROM_HERE, -10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, 137 FROM_HERE, -10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)) [all...] |
mock_stream.h | 30 MOCK_METHOD4(Seek, bool(int64_t, Whence, uint64_t*, ErrorPtr*));
|
stream_utils.cc | 153 Stream::Whence whence, 159 switch (whence) { 160 case Stream::Whence::FROM_BEGIN: 164 case Stream::Whence::FROM_CURRENT: 168 case Stream::Whence::FROM_END: 177 "Invalid stream position whence");
|
stream.h | 86 // When seeking in streams, whence specifies the origin of the seek operation. 87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; 164 // beginning of the stream. This calls Seek(position, Whence::FROM_BEGIN), 169 // Moves the stream pointer by |offset| bytes relative to |whence|. 176 Whence whence,
|
input_stream_set.h | 75 Whence whence,
|
stream_utils.h | 55 Stream::Whence whence,
|
tls_stream.h | 49 Whence whence,
|
file_stream_unittest.cc | 78 EXPECT_TRUE(stream->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); 94 EXPECT_TRUE(stream->Seek(10, Stream::Whence::FROM_BEGIN, &pos, nullptr)); 102 EXPECT_TRUE(stream->Seek(7, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); 106 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, &pos, nullptr)); 110 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); 113 EXPECT_TRUE(stream->Seek(-1, Stream::Whence::FROM_END, &pos, nullptr)); 314 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); 318 EXPECT_TRUE(stream_->Seek(123456, Stream::Whence::FROM_BEGIN, &pos, nullptr)); 323 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, &pos, 326 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, nullptr [all...] |
file_stream.h | 43 virtual off64_t Seek(off64_t offset, int whence) = 0; 110 Whence whence,
|
/external/llvm/tools/llvm-cov/ |
CodeCoverage.cpp | 50 void error(const Twine &Message, StringRef Whence = ""); 53 void deferError(const Twine &Message, StringRef Whence = ""); 56 void deferWarning(const Twine &Message, StringRef Whence = ""); 114 static std::string getErrorString(const Twine &Message, StringRef Whence, 118 if (!Whence.empty()) 119 Str += Whence; 124 void CodeCoverageTool::error(const Twine &Message, StringRef Whence) { 125 errs() << getErrorString(Message, Whence, false); 128 void CodeCoverageTool::deferError(const Twine &Message, StringRef Whence) { 130 DeferredMessages.emplace_back(getErrorString(Message, Whence, false)) [all...] |
/external/ltp/testcases/kernel/syscalls/llseek/ |
llseek02.c | 26 * 1. llseek() returns -1 and sets errno to EINVAL, if the 'Whence' argument 104 int Whence; 110 1, SEEK_TOP, "'whence' argument is not valid", EINVAL, setup1}, { 123 int whence; /* position of file handle in the file */ local 138 whence = Test_cases[ind].Whence; 152 TEST(lseek64(fildes, (loff_t) 0, whence));
|
/external/libchrome/base/files/ |
file.h | 123 enum Whence { 210 // defined by |whence|. Returns the resultant current position in the file 212 int64_t Seek(Whence whence, int64_t offset);
|
/external/llvm/tools/llvm-profdata/ |
llvm-profdata.cpp | 39 static void exitWithError(const Twine &Message, StringRef Whence = "", 42 if (!Whence.empty()) 43 errs() << Whence << ": "; 50 static void exitWithError(Error E, StringRef Whence = "") { 59 exitWithError(IPE.message(), Whence, Hint); 63 exitWithError(toString(std::move(E)), Whence); 66 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") { 67 exitWithError(EC.message(), Whence);
|
/prebuilts/go/darwin-x86/src/syscall/ |
syscall_unix_test.go | 50 Whence: int16(0), 77 Start: 31415, Len: 271828, Whence: 1, 115 // Linux kernel always set Whence to 0 116 flock.Whence = 0 117 if got.Type == flock.Type && got.Start == flock.Start && got.Len == flock.Len && got.Pid == flock.Pid && got.Whence == flock.Whence {
|
/prebuilts/go/linux-x86/src/syscall/ |
syscall_unix_test.go | 50 Whence: int16(0), 77 Start: 31415, Len: 271828, Whence: 1, 115 // Linux kernel always set Whence to 0 116 flock.Whence = 0 117 if got.Type == flock.Type && got.Start == flock.Start && got.Len == flock.Len && got.Pid == flock.Pid && got.Whence == flock.Whence {
|