]> git.ipfire.org Git - people/ms/gcc.git/commit
libstdc++: Use ENOSYS for unsupported filesystem ops on AVR
authorJonathan Wakely <jwakely@redhat.com>
Thu, 2 Feb 2023 16:00:21 +0000 (16:00 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 2 Feb 2023 16:57:27 +0000 (16:57 +0000)
commit5c43f06c228d169c370e99fa009154344fa305b8
treeab96262784a3c5c9ae5934379602f72b7e6cc0de
parent331b4f168a06cd85fe40fd03b48b128cc8af399c
libstdc++: Use ENOSYS for unsupported filesystem ops on AVR

Because avr-libc <errno.h> defines most error numbers with duplicate
values it's not sufficient to check #ifdef ENOTSUP when deciding which
std::errc constant to use for the filesystem library's __unsupported()
helper. Add a special case for AVR to always use the ENOSYS value.

libstdc++-v3/ChangeLog:

* src/filesystem/ops-common.h [AVR] (__unsupported): Always use
errc::function_not_supported instead of errc::not_supported.
libstdc++-v3/src/filesystem/ops-common.h