/art/compiler/linker/ |
output_stream.h | 27 enum Whence { 32 std::ostream& operator<<(std::ostream& os, const Whence& rhs); 46 virtual off_t Seek(off_t offset, Whence whence) = 0;
|
output_stream.cc | 21 std::ostream& operator<<(std::ostream& os, const Whence& rhs) {
|
file_output_stream.h | 34 off_t Seek(off_t offset, Whence whence) OVERRIDE;
|
file_output_stream.cc | 32 off_t FileOutputStream::Seek(off_t offset, Whence whence) { 33 return lseek(file_->Fd(), offset, static_cast<int>(whence));
|
buffered_output_stream.h | 36 off_t Seek(off_t offset, Whence whence) OVERRIDE;
|
vector_output_stream.cc | 26 off_t VectorOutputStream::Seek(off_t offset, Whence whence) { 27 CHECK(whence == kSeekSet || whence == kSeekCurrent || whence == kSeekEnd) << whence; 29 switch (whence) {
|
buffered_output_stream.cc | 63 off_t BufferedOutputStream::Seek(off_t offset, Whence whence) { 67 return out_->Seek(offset, whence);
|
error_delaying_output_stream.h | 51 off_t Seek(off_t offset, Whence whence) OVERRIDE { 55 switch (whence) { 63 LOG(FATAL) << "Unsupported seek type: " << whence; 67 off_t actual_offset = output_->Seek(offset, whence); 70 << " whence=" << whence << " new_offset=" << new_offset;
|
vector_output_stream.h | 48 off_t Seek(off_t offset, Whence whence) OVERRIDE;
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
lseek01.c | 129 int Whence[] = { SEEK_SET, SEEK_CUR, SEEK_END, -1 }; 157 for (ind = 0; Whence[ind] >= 0; ind++) { 162 TEST(lseek(Fd, (long)offset, Whence[ind])); 173 Fname, offset, Whence[ind],
|
lseek02.c | 129 int Whence[] = { SEEK_SET, SEEK_CUR, SEEK_END, -1 };
|
lseek10.c | 27 * 2. lseek() returns -1 and sets errno to EINVAL, if the 'Whence' argument 106 int Whence; 113 2, SEEK_TOP, "'whence' argument is not valid", EINVAL, setup2}, { 126 int whence; /* position of file handle in the file */ local 141 whence = Test_cases[ind].Whence; 156 TEST(lseek(fildes, 0, whence));
|
/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...] |
/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 103 int Whence; 109 1, SEEK_TOP, "'whence' argument is not valid", EINVAL, setup1}, { 122 int whence; /* position of file handle in the file */ local 137 whence = Test_cases[ind].Whence; 151 TEST(lseek64(fildes, (loff_t) 0, whence));
|
/external/libchrome/base/files/ |
file.h | 120 enum Whence { 207 // defined by |whence|. Returns the resultant current position in the file 209 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, 111 // Linux kernel always set Whence to 0 112 flock.Whence = 0 113 if got.Type == flock.Type && got.Start == flock.Start && got.Len == flock.Len && got.Pid == flock.Pid && got.Whence == flock.Whence {
|