Home
last modified time | relevance | path

Searched refs:IoErrorHandler (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/flang/runtime/
Dunit.h50 static void CloseAll(IoErrorHandler &);
51 static void FlushAll(IoErrorHandler &);
55 IoErrorHandler &);
57 OpenStatus, std::optional<Action>, Position, Convert, IoErrorHandler &);
58 void CloseUnit(CloseStatus, IoErrorHandler &);
61 bool SetDirection(Direction, IoErrorHandler &);
76 const char *, std::size_t, std::size_t elementBytes, IoErrorHandler &);
77 bool Receive(char *, std::size_t, std::size_t elementBytes, IoErrorHandler &);
78 std::optional<char32_t> GetCurrentChar(IoErrorHandler &);
80 void BeginReadingRecord(IoErrorHandler &);
[all …]
Dfile.h43 void Open(OpenStatus, std::optional<Action>, Position, IoErrorHandler &);
45 void Close(CloseStatus, IoErrorHandler &);
53 std::size_t maxBytes, IoErrorHandler &);
57 std::size_t Write(FileOffset, const char *, std::size_t, IoErrorHandler &);
60 void Truncate(FileOffset, IoErrorHandler &);
63 int ReadAsynchronously(FileOffset, char *, std::size_t, IoErrorHandler &);
65 FileOffset, const char *, std::size_t, IoErrorHandler &);
66 void Wait(int id, IoErrorHandler &);
67 void WaitAll(IoErrorHandler &);
77 bool Seek(FileOffset, IoErrorHandler &);
Dunit.cpp32 IoErrorHandler handler{terminator}; in FlushOutputOnCrash()
62 IoErrorHandler handler{terminator}; in LookUpOrCreateAnonymous()
94 Convert convert, IoErrorHandler &handler) { in OpenUnit()
151 IoErrorHandler &handler) { in OpenAnonymousUnit()
160 void ExternalFileUnit::CloseUnit(CloseStatus status, IoErrorHandler &handler) { in CloseUnit()
171 Direction direction, IoErrorHandler &handler) { in SetDirection()
202 IoErrorHandler handler{terminator}; in GetUnitMap()
216 void ExternalFileUnit::CloseAll(IoErrorHandler &handler) { in CloseAll()
225 void ExternalFileUnit::FlushAll(IoErrorHandler &handler) { in FlushAll()
245 std::size_t elementBytes, IoErrorHandler &handler) { in Emit()
[all …]
Dio-error.cpp20 void IoErrorHandler::Begin(const char *sourceFileName, int sourceLine) { in Begin()
27 void IoErrorHandler::SignalError(int iostatOrErrno, const char *msg, ...) { in SignalError()
61 void IoErrorHandler::SignalError(int iostatOrErrno) { in SignalError()
65 void IoErrorHandler::SignalErrno() { SignalError(errno); } in SignalErrno()
67 void IoErrorHandler::SignalEnd() { SignalError(IostatEnd); } in SignalEnd()
69 void IoErrorHandler::SignalEor() { SignalError(IostatEor); } in SignalEor()
71 bool IoErrorHandler::GetIoMsg(char *buffer, std::size_t bufferLength) { in GetIoMsg()
Dinternal-unit.h21 class IoErrorHandler; variable
33 bool Emit(const char *, std::size_t, IoErrorHandler &);
34 std::optional<char32_t> GetCurrentChar(IoErrorHandler &);
35 bool AdvanceRecord(IoErrorHandler &);
36 void BackspaceRecord(IoErrorHandler &);
Dformat.h63 struct DefaultFormatControlCallbacks : public IoErrorHandler {
64 using IoErrorHandler::IoErrorHandler;
91 IoErrorHandler &, const CharType *format, std::size_t formatLength);
125 CharType GetNextChar(IoErrorHandler &handler) { in GetNextChar()
134 int GetIntField(IoErrorHandler &, CharType firstCh = '\0');
Dfile.cpp33 static int openfile_mkstemp(IoErrorHandler &handler) { in openfile_mkstemp()
63 Position position, IoErrorHandler &handler) { in Open()
166 void OpenFile::Close(CloseStatus status, IoErrorHandler &handler) { in Close()
189 std::size_t maxBytes, IoErrorHandler &handler) { in Read()
219 std::size_t bytes, IoErrorHandler &handler) { in Write()
255 void OpenFile::Truncate(FileOffset at, IoErrorHandler &handler) { in Truncate()
269 FileOffset at, char *buffer, std::size_t bytes, IoErrorHandler &handler) { in ReadAsynchronously()
298 std::size_t bytes, IoErrorHandler &handler) { in WriteAsynchronously()
322 void OpenFile::Wait(int id, IoErrorHandler &handler) { in Wait()
341 void OpenFile::WaitAll(IoErrorHandler &handler) { in WaitAll()
[all …]
Dinternal-unit.cpp58 const char *data, std::size_t bytes, IoErrorHandler &handler) { in Emit()
92 IoErrorHandler &handler) { in GetCurrentChar()
113 bool InternalDescriptorUnit<DIR>::AdvanceRecord(IoErrorHandler &handler) { in AdvanceRecord()
133 void InternalDescriptorUnit<DIR>::BackspaceRecord(IoErrorHandler &handler) { in BackspaceRecord()
Dio-error.h26 class IoErrorHandler : public Terminator {
29 explicit IoErrorHandler(const Terminator &that) : Terminator{that} {} in IoErrorHandler() function
Dunit-map.h53 void CloseAll(IoErrorHandler &);
54 void FlushAll(IoErrorHandler &);
Dbuffer.h50 FileOffset at, std::size_t bytes, IoErrorHandler &handler) { in ReadFrame()
92 void WriteFrame(FileOffset at, std::size_t bytes, IoErrorHandler &handler) { in WriteFrame()
105 void Flush(IoErrorHandler &handler) { in Flush()
Dstop.cpp48 Fortran::runtime::io::IoErrorHandler handler{why}; in CloseAllExternalUnits()
79 Fortran::runtime::io::IoErrorHandler handler{"PAUSE statement"}; in StartPause()
Dunit-map.cpp54 void UnitMap::CloseAll(IoErrorHandler &handler) { in CloseAll()
66 void UnitMap::FlushAll(IoErrorHandler &handler) { in FlushAll()
Dformat-implementation.h38 IoErrorHandler &handler, const CharType *format, std::size_t formatLength) { in GetMaxParenthesisNesting()
91 IoErrorHandler &handler, CharType firstCh) { in GetIntField()
Dio-api.cpp167 IoErrorHandler handler{terminator}; in BeginExternalListIO()
199 IoErrorHandler handler{terminator}; in BeginExternalFormattedIO()
232 IoErrorHandler handler{terminator}; in BeginUnformattedIO()
369 IoErrorHandler &handler{cookie->GetIoErrorHandler()}; in IONAME()
388 IoErrorHandler &handler) { in YesOrNo()
1059 IoErrorHandler &handler{cookie->GetIoErrorHandler()}; in IONAME()
Dio-stmt.cpp396 IoErrorHandler &IoStatementState::GetIoErrorHandler() const { in GetIoErrorHandler()
398 [](auto &x) -> IoErrorHandler & { in GetIoErrorHandler()
399 return static_cast<IoErrorHandler &>(x.get()); in GetIoErrorHandler()
488 IoErrorHandler &handler{GetIoErrorHandler()}; in NextInField()
Dio-stmt.h71 IoErrorHandler &GetIoErrorHandler() const;
/external/llvm-project/flang/unittests/Runtime/
Dformat.cpp18 class TestFormatContext : public IoErrorHandler {
21 TestFormatContext() : IoErrorHandler{"format.cpp", 1} {} in TestFormatContext()