public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4159] [Ada] Add case to consider ENODEV a "file not found error"
@ 2021-10-05 8:23 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-10-05 8:23 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:50524b0aa6ae0ffa1399851a19d6d97c867206a7
commit r12-4159-g50524b0aa6ae0ffa1399851a19d6d97c867206a7
Author: Corentin Gay <gay@adacore.com>
Date: Thu Sep 9 11:57:06 2021 +0200
[Ada] Add case to consider ENODEV a "file not found error"
gcc/ada/
* sysdep.c (__gnat_is_file_not_found_error): Add else if case.
Diff:
---
gcc/ada/sysdep.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c
index ee951e31049..2c50b3621b5 100644
--- a/gcc/ada/sysdep.c
+++ b/gcc/ada/sysdep.c
@@ -907,6 +907,10 @@ __gnat_is_file_not_found_error (int errno_val)
if (errno_val == ENOENT)
return 1;
#ifdef __vxworks
+ /* Starting with VxWorks 21.03, the fopen() function can set errno to
+ * ENODEV when the prefix of the path does not match any known device. */
+ else if (errno_val == ENODEV)
+ return 1;
/* In the case of VxWorks, we also have to take into account various
* filesystem-specific variants of this error.
*/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-05 8:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 8:23 [gcc r12-4159] [Ada] Add case to consider ENODEV a "file not found error" Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).