Home
last modified time | relevance | path

Searched refs:error_code (Results 1 – 25 of 518) sorted by relevance

12345678910>>...21

/openbsd-src/gnu/llvm/libcxx/include/__filesystem/
H A Doperations.h37 _LIBCPP_FUNC_VIS path __absolute(const path&, error_code* __ec = nullptr);
38 _LIBCPP_FUNC_VIS path __canonical(const path&, error_code* __ec = nullptr);
39 … __copy_file(const path& __from, const path& __to, copy_options __opt, error_code* __ec = nullptr);
40 …opy_symlink(const path& __existing_symlink, const path& __new_symlink, error_code* __ec = nullptr);
41 _LIBCPP_FUNC_VIS void __copy(const path& __from, const path& __to, copy_options __opt, error_code* …
42 _LIBCPP_FUNC_VIS bool __create_directories(const path&, error_code* = nullptr);
43 …_create_directory_symlink(const path& __to, const path& __new_symlink, error_code* __ec = nullptr);
44 _LIBCPP_FUNC_VIS bool __create_directory(const path&, error_code* = nullptr);
45 _LIBCPP_FUNC_VIS bool __create_directory(const path&, const path& __attributes, error_code* = nullp…
46 _LIBCPP_FUNC_VIS void __create_hard_link(const path& __to, const path& __new_hard_link, error_code*…
[all …]
H A Ddirectory_entry.h55 error_code __ec; in directory_entry()
60 directory_entry(_Path const& __p, error_code& __ec) : __p_(__p) { in directory_entry()
72 error_code __ec; in assign()
77 void assign(_Path const& __p, error_code& __ec) { in assign()
85 error_code __ec; in replace_filename()
90 void replace_filename(_Path const& __p, error_code& __ec) { in replace_filename()
99 void refresh(error_code& __ec) noexcept { __refresh(&__ec); } in refresh()
111 bool exists(error_code& __ec) const noexcept { in exists()
119 bool is_block_file(error_code& __ec) const noexcept { in is_block_file()
127 bool is_character_file(error_code& __ec) const noexcept { in is_character_file()
[all …]
H A Drecursive_directory_iterator.h55 error_code& __ec) in recursive_directory_iterator()
59 recursive_directory_iterator(const path& __p, error_code& __ec) in recursive_directory_iterator()
97 recursive_directory_iterator& increment(error_code& __ec) { in increment()
108 void pop(error_code& __ec) { __pop(&__ec); } in pop()
119 error_code* __ec);
125 bool __try_recursion(error_code* __ec);
128 void __advance(error_code* __ec = nullptr);
131 recursive_directory_iterator& __increment(error_code* __ec = nullptr);
134 void __pop(error_code* __ec = nullptr);
/openbsd-src/gnu/llvm/llvm/include/llvm/ProfileData/
H A DSampleProfWriter.h46 virtual std::error_code writeSample(const FunctionSamples &S) = 0;
51 virtual std::error_code write(const SampleProfileMap &ProfileMap);
77 virtual std::error_code writeHeader(const SampleProfileMap &ProfileMap) = 0;
80 virtual std::error_code writeFuncProfiles(const SampleProfileMap &ProfileMap);
98 std::error_code writeSample(const FunctionSamples &S) override;
104 std::error_code writeHeader(const SampleProfileMap &ProfileMap) override { in writeHeader()
125 std::error_code writeSample(const FunctionSamples &S) override;
129 virtual std::error_code writeMagicIdent(SampleProfileFormat Format);
130 virtual std::error_code writeNameTable();
131 std::error_code writeHeader(const SampleProfileMap &ProfileMap) override;
[all …]
H A DSampleProfReader.h351 virtual std::error_code readHeader() = 0;
370 std::error_code read() { in read()
371 if (std::error_code EC = readImpl()) in read()
380 virtual std::error_code readImpl() = 0;
570 std::error_code readHeader() override { return sampleprof_error::success; } in readHeader()
573 std::error_code readImpl() override;
591 std::error_code readHeader() override;
594 std::error_code readImpl() override;
628 std::error_code readFuncProfile(const uint8_t *Start);
631 std::error_code readProfile(FunctionSamples &FProfile);
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ProfileData/
H A DSampleProfReader.cpp316 std::error_code SampleProfileReaderText::readImpl() { in readImpl()
468 std::error_code EC; in readNumber()
488 std::error_code EC; in readString()
502 std::error_code EC; in readUnencodedNumber()
517 std::error_code EC; in readStringIndex()
519 if (std::error_code EC = Idx.getError()) in readStringIndex()
528 if (std::error_code EC = Idx.getError()) in readStringFromTable()
536 if (std::error_code EC = FName.getError()) in readSampleContextFromTable()
547 if (std::error_code EC = Idx.getError()) in readStringFromTable()
557 if (std::error_code EC = FID.getError()) in readStringFromTable()
[all …]
H A DSampleProfWriter.cpp43 std::error_code
48 if (std::error_code EC = writeSample(*I.second)) in writeFuncProfiles()
54 std::error_code SampleProfileWriter::write(const SampleProfileMap &ProfileMap) { in write()
55 if (std::error_code EC = writeHeader(ProfileMap)) in write()
58 if (std::error_code EC = writeFuncProfiles(ProfileMap)) in write()
80 std::error_code SampleProfileWriterExtBinaryBase::compressAndOutput() { in compressAndOutput()
102 std::error_code SampleProfileWriterExtBinaryBase::addNewSection( in addNewSection()
109 if (std::error_code EC = compressAndOutput()) in addNewSection()
117 std::error_code
119 if (std::error_code EC = writeHeader(ProfileMap)) in write()
[all …]
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXLoadedDiagnostic.cpp193 std::error_code reportBad(enum CXLoadDiag_Error code, llvm::StringRef err) { in reportBad()
201 std::error_code reportInvalidFile(llvm::StringRef err) { in reportInvalidFile()
205 std::error_code readRange(const serialized_diags::Location &SDStart,
209 std::error_code readLocation(const serialized_diags::Location &SDLoc,
213 std::error_code visitStartOfDiagnostic() override;
214 std::error_code visitEndOfDiagnostic() override;
216 std::error_code visitCategoryRecord(unsigned ID, StringRef Name) override;
218 std::error_code visitDiagFlagRecord(unsigned ID, StringRef Name) override;
220 std::error_code visitDiagnosticRecord(
224 std::error_code visitFilenameRecord(unsigned ID, unsigned Size,
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/include/
H A Dos9k.h161 error_code _os_crc (void *, u_int32, int *);
162 error_code _os_datmod (char *, u_int32, u_int16 *, u_int16 *, u_int32, void **, mh_data **);
163 error_code _os_get_moddir (void *, u_int32 *);
164 error_code _os_initdata (mh_com *, void *);
165 error_code _os_link (char **, mh_com **, void **, u_int16 *, u_int16 *);
166 error_code _os_linkm (mh_com *, void **, u_int16 *, u_int16 *);
167 error_code _os_load (char *, mh_com **, void **, u_int32, u_int16 *, u_int16 *, u_int32);
168 error_code _os_mkmodule (char *, u_int32, u_int16 *, u_int16 *, u_int32, void **, mh_com **, u_int3…
169 error_code _os_modaddr (void *, mh_com **);
170 error_code _os_setcrc (mh_com *);
[all …]
/openbsd-src/gnu/usr.bin/binutils/include/
H A Dos9k.h161 error_code _os_crc (void *, u_int32, int *);
162 error_code _os_datmod (char *, u_int32, u_int16 *, u_int16 *, u_int32, void **, mh_data **);
163 error_code _os_get_moddir (void *, u_int32 *);
164 error_code _os_initdata (mh_com *, void *);
165 error_code _os_link (char **, mh_com **, void **, u_int16 *, u_int16 *);
166 error_code _os_linkm (mh_com *, void **, u_int16 *, u_int16 *);
167 error_code _os_load (char *, mh_com **, void **, u_int32, u_int16 *, u_int16 *, u_int32);
168 error_code _os_mkmodule (char *, u_int32, u_int16 *, u_int16 *, u_int32, void **, mh_com **, u_int3…
169 error_code _os_modaddr (void *, mh_com **);
170 error_code _os_setcrc (mh_com *);
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Frontend/
H A DSerializedDiagnosticReader.h41 inline std::error_code make_error_code(SDError E) { in make_error_code()
42 return std::error_code(static_cast<int>(E), SDErrorCategory()); in make_error_code()
66 std::error_code readDiagnostics(StringRef File);
76 std::error_code readMetaBlock(llvm::BitstreamCursor &Stream);
79 std::error_code readDiagnosticBlock(llvm::BitstreamCursor &Stream);
83 virtual std::error_code visitStartOfDiagnostic() { return {}; } in visitStartOfDiagnostic()
86 virtual std::error_code visitEndOfDiagnostic() { return {}; } in visitEndOfDiagnostic()
89 virtual std::error_code visitCategoryRecord(unsigned ID, StringRef Name) { in visitCategoryRecord()
94 virtual std::error_code visitDiagFlagRecord(unsigned ID, StringRef Name) { in visitDiagFlagRecord()
99 virtual std::error_code
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DFileSystem.h297 std::error_code make_absolute(SmallVectorImpl<char> &path);
305 std::error_code create_directories(const Twine &path,
315 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true,
329 std::error_code create_link(const Twine &to, const Twine &from);
337 std::error_code create_hard_link(const Twine &to, const Twine &from);
346 std::error_code real_path(const Twine &path, SmallVectorImpl<char> &output,
360 std::error_code current_path(SmallVectorImpl<char> &result);
367 std::error_code set_current_path(const Twine &path);
375 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true);
382 std::error_code remove_directories(const Twine &path, bool IgnoreErrors = true);
[all …]
/openbsd-src/gnu/llvm/libcxx/include/
H A Dsystem_error31 virtual bool equivalent(const error_code& code, int condition) const noexcept;
55 class error_code
59 error_code() noexcept;
60 error_code(int val, const error_category& cat) noexcept;
62 error_code(ErrorCodeEnum e) noexcept;
67 error_code& operator=(ErrorCodeEnum e) noexcept;
81 operator<<(basic_ostream<charT,traits>& os, const error_code& ec);
109 system_error(error_code ec, const string& what_arg);
110 system_error(error_code ec, const char* what_arg);
111 system_error(error_code ec);
[all …]
H A Dfilesystem175 directory_entry(const filesystem::path& p, error_code& ec);
182 void assign(const filesystem::path& p, error_code& ec);
184 void replace_filename(const filesystem::path& p, error_code& ec);
186 void refresh(error_code& ec) noexcept;
191 bool exists(error_code& ec) const noexcept;
193 bool is_block_file(error_code& ec) const noexcept;
195 bool is_character_file(error_code& ec) const noexcept;
197 bool is_directory(error_code& ec) const noexcept;
199 bool is_fifo(error_code& ec) const noexcept;
201 bool is_other(error_code& ec) const noexcept;
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Docd.c71 ocd_error (char *s, int error_code) in ocd_error() argument
78 switch (error_code) in ocd_error()
126 sprintf (buf, "Unknown error code %d", error_code); in ocd_error()
159 int error_code; in ocd_start_remote() local
182 error_code = p[2]; in ocd_start_remote()
184 if (error_code != 0) in ocd_start_remote()
185 ocd_error ("OCD_INIT:", error_code); in ocd_start_remote()
213 error_code = p[2]; in ocd_start_remote()
215 if (error_code != 0) in ocd_start_remote()
216 ocd_error ("OCD_SET_CTL_FLAGS:", error_code); in ocd_start_remote()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DAutoConvert.cpp20 std::error_code llvm::disableAutoConversion(int FD) { in disableAutoConversion()
27 return std::error_code(errno, std::generic_category()); in disableAutoConversion()
28 return std::error_code(); in disableAutoConversion()
31 std::error_code llvm::enableAutoConversion(int FD) { in enableAutoConversion()
39 return std::error_code(errno, std::generic_category()); in enableAutoConversion()
49 return std::error_code(errno, std::generic_category()); in enableAutoConversion()
50 return std::error_code(); in enableAutoConversion()
53 std::error_code llvm::setFileTag(int FD, int CCSID, bool Text) { in setFileTag()
63 return std::error_code(errno, std::generic_category()); in setFileTag()
64 return std::error_code(); in setFileTag()
H A DError.cpp74 std::error_code ErrorList::convertToErrorCode() const { in convertToErrorCode()
75 return std::error_code(static_cast<int>(ErrorErrorCode::MultipleErrors), in convertToErrorCode()
79 std::error_code inconvertibleErrorCode() { in inconvertibleErrorCode()
80 return std::error_code(static_cast<int>(ErrorErrorCode::InconvertibleError), in inconvertibleErrorCode()
84 std::error_code FileError::convertToErrorCode() const { in convertToErrorCode()
85 std::error_code NestedEC = Err->convertToErrorCode(); in convertToErrorCode()
87 return std::error_code(static_cast<int>(ErrorErrorCode::FileError), in convertToErrorCode()
92 Error errorCodeToError(std::error_code EC) { in errorCodeToError()
98 std::error_code errorToErrorCode(Error Err) { in errorToErrorCode()
99 std::error_code EC; in errorToErrorCode()
[all …]
H A DRandomNumberGenerator.cpp68 std::error_code llvm::getRandomBytes(void *Buffer, size_t Size) { in getRandomBytes()
75 return std::error_code(); in getRandomBytes()
77 return std::error_code(GetLastError(), std::system_category()); in getRandomBytes()
81 std::error_code Ret; in getRandomBytes()
84 Ret = std::error_code(errno, std::system_category()); in getRandomBytes()
86 Ret = std::error_code(EIO, std::system_category()); in getRandomBytes()
88 Ret = std::error_code(errno, std::system_category()); in getRandomBytes()
92 return std::error_code(errno, std::system_category()); in getRandomBytes()
H A DPath.cpp169 static std::error_code
179 std::error_code EC; in createUniqueEntity()
195 return std::error_code(); in createUniqueEntity()
201 return std::error_code(); in createUniqueEntity()
214 return std::error_code(); in createUniqueEntity()
787 std::error_code getUniqueID(const Twine Path, UniqueID &Result) { in getUniqueID()
789 std::error_code EC = status(Path, Status); in getUniqueID()
793 return std::error_code(); in getUniqueID()
822 std::error_code createUniqueFile(const Twine &Model, int &ResultFd, in createUniqueFile()
829 std::error_code createUniqueFile(const Twine &Model, in createUniqueFile()
[all …]
H A DFileCollector.cpp30 std::error_code EC; in addDirectory()
139 std::error_code &EC) { in addDirectoryImpl()
159 static std::error_code
178 std::error_code FileCollector::copyFiles(bool StopOnError) { in copyFiles()
189 if (std::error_code EC = sys::fs::status(entry.VPath, Stat)) { in copyFiles()
200 if (std::error_code EC = in copyFiles()
209 if (std::error_code EC = in copyFiles()
219 if (std::error_code EC = sys::fs::copy_file(entry.VPath, entry.RPath)) { in copyFiles()
226 if (std::error_code EC = sys::fs::setPermissions(entry.RPath, *perms)) { in copyFiles()
238 std::error_code FileCollector::writeMapping(StringRef MappingFile) { in writeMapping()
[all …]
/openbsd-src/gnu/llvm/libcxx/src/filesystem/
H A Ddirectory_iterator.cpp33 __dir_stream(const path& root, directory_options opts, error_code& ec) in __dir_stream()
61 bool advance(error_code& ec) { in advance()
85 error_code close() noexcept { in close()
86 error_code ec; in close()
112 __dir_stream(const path& root, directory_options opts, error_code& ec) in __dir_stream()
132 bool advance(error_code& ec) { in advance()
151 error_code close() noexcept { in close()
152 error_code m_ec; in close()
169 directory_iterator::directory_iterator(const path& p, error_code* ec, in directory_iterator()
173 error_code m_ec; in directory_iterator()
[all …]
H A Doperations.cpp488 static FileDescriptor create(const path* p, error_code& ec, Args... args) { in create()
499 static FileDescriptor create_with_status(const path* p, error_code& ec, in create_with_status()
513 file_status refresh_status(error_code& ec);
541 file_status create_file_status(error_code& m_ec, path const& p, in create_file_status()
542 const StatT& path_stat, error_code* ec) { in create_file_status()
577 file_status posix_stat(path const& p, StatT& path_stat, error_code* ec) { in posix_stat()
578 error_code m_ec; in posix_stat()
584 file_status posix_stat(path const& p, error_code* ec) { in posix_stat()
589 file_status posix_lstat(path const& p, StatT& path_stat, error_code* ec) { in posix_lstat()
590 error_code m_ec; in posix_lstat()
[all …]
/openbsd-src/gnu/llvm/libcxx/src/
H A Dsystem_error.cpp56 error_category::equivalent(const error_code& code, int condition) const noexcept in equivalent()
227 error_code::message() const in message()
235 system_error::__init(const error_code& ec, string what_arg) in __init()
246 system_error::system_error(error_code ec, const string& what_arg) in system_error()
252 system_error::system_error(error_code ec, const char* what_arg) in system_error()
258 system_error::system_error(error_code ec) in system_error()
265 : runtime_error(__init(error_code(ev, ecat), what_arg)), in system_error()
266 __ec_(error_code(ev, ecat)) in system_error()
271 : runtime_error(__init(error_code(ev, ecat), what_arg)), in system_error()
272 __ec_(error_code(ev, ecat)) in system_error()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/Windows/
H A DPath.inc68 std::error_code widenPath(const Twine &Path8, SmallVectorImpl<wchar_t> &Path16,
82 if (std::error_code EC = UTF8ToUTF16(Path8Str, Path16))
100 return std::error_code();
103 if (std::error_code EC = llvm::sys::fs::make_absolute(Path8Str))
198 std::error_code current_path(SmallVectorImpl<char> &result) {
218 if (std::error_code EC =
223 return std::error_code();
226 std::error_code set_current_path(const Twine &path) {
229 if (std::error_code ec = widenPath(path, wide_path))
235 return std::error_code();
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/Unix/
H A DPath.inc355 return std::error_code(errno, std::generic_category());
364 std::error_code current_path(SmallVectorImpl<char> &result) {
374 return std::error_code();
384 return std::error_code(errno, std::generic_category());
393 return std::error_code();
396 std::error_code set_current_path(const Twine &path) {
401 return std::error_code(errno, std::generic_category());
403 return std::error_code();
406 std::error_code create_directory(const Twine &path, bool IgnoreExisting,
413 return std::error_code(errno, std::generic_category());
[all …]

12345678910>>...21