]> git.hungrycats.org Git - bees/commitdiff
openat2: remove throw() specifier
authorZygo Blaxell <bees@furryterror.org>
Fri, 1 May 2026 08:01:34 +0000 (04:01 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sat, 2 May 2026 03:48:58 +0000 (23:48 -0400)
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>
include/crucible/openat2.h
lib/openat2.cc

index 6ccb34ef05b0ef4d66bb73bc78a8d0d1e477945f..149ec59e807576a8d1ac7685323a9f61d7903aef 100644 (file)
@@ -45,7 +45,7 @@ struct open_how {
 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);
 
 };
 
index 2912f8644bc7eec3d205cb3da0c18823fa6dffc1..c46182d0538e5f1b97659d8efb34aedb05799297 100644 (file)
@@ -23,7 +23,6 @@ extern "C" {
 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);
 }