aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/mutex
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-02-10 23:16:15 +0000
committerJonathan Wakely <jwakely@redhat.com>2023-02-16 10:24:45 +0000
commitdc79eba72b4d16180e500eba336f511a485a8496 (patch)
treed04fcf23593c201f4ad3f3be7b3f065d8b261094 /libstdc++-v3/include/std/mutex
parent55db240d28d29aac90a2d2af3768283ba6288752 (diff)
downloadgcc-dc79eba72b4d16180e500eba336f511a485a8496.zip
gcc-dc79eba72b4d16180e500eba336f511a485a8496.tar.gz
gcc-dc79eba72b4d16180e500eba336f511a485a8496.tar.bz2
libstdc++: Fix uses of non-reserved names in headers
The non-reserved names 'val' and 'dest' were being used in our headers but haven't been added to the 17_intro/names.cc test. That's because they are used by <asm-generic/posix_types.h> and <netinet/tcp.h> respecitvely on glibc-based systems. libstdc++-v3/ChangeLog: * include/bits/fs_ops.h (create_directory): Use reserved name for parameter. * include/bits/ranges_algo.h (__contains_subrange_fn): Likewise. * include/bits/regex_automaton.h (_State_base::_M_print): Likewise. * include/bits/regex_automaton.tcc(_State_base::_M_print): Likewise. * include/bits/regex_scanner.tcc(_Scanner::_M_print): Likewise. * include/experimental/bits/fs_ops.h (create_directory): Likewise. * include/std/mutex (timed_mutex::_M_clocklock): Likewise. (recursive_timed_mutex:_M_clocklock): Likewise. * include/std/tuple (basic_common_reference): Likewise. * libsupc++/cxxabi_init_exception.h (__cxa_init_primary_exception): Likewise. * testsuite/17_intro/names.cc: Add checks.
Diffstat (limited to 'libstdc++-v3/include/std/mutex')
-rw-r--r--libstdc++-v3/include/std/mutex8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex
index 9451c42..7942038 100644
--- a/libstdc++-v3/include/std/mutex
+++ b/libstdc++-v3/include/std/mutex
@@ -294,8 +294,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#if _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK
bool
- _M_clocklock(clockid_t clockid, const __gthread_time_t& __ts)
- { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); }
+ _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts)
+ { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); }
#endif
};
@@ -372,8 +372,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#ifdef _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK
bool
- _M_clocklock(clockid_t clockid, const __gthread_time_t& __ts)
- { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); }
+ _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts)
+ { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); }
#endif
};