This removes the obsolete throw() specifier from the openat2() declaration in
include/crucible/openat2.h and its definition in lib/openat2.cc. C++11 and
later deprecates throw() and C++17 removes it in favor of noexcept.
Co-Authored-By: Gemini CLI <gemini-cli@google.com>
extern "C" {
/// Weak symbol to support libc with no syscall wrapper
-int openat2(int dirfd, const char *pathname, const struct open_how *how, size_t size) throw();
+int openat2(int dirfd, const char *pathname, const struct open_how *how, size_t size);
};
int
__attribute__((weak))
openat2(int const dirfd, const char *const pathname, const struct open_how *const how, size_t const size)
-throw()
{
return syscall(SYS_openat2, dirfd, pathname, how, size);
}