diff options
Diffstat (limited to 'gcc/ada/cstreams.c')
-rw-r--r-- | gcc/ada/cstreams.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/gcc/ada/cstreams.c b/gcc/ada/cstreams.c index f0f8266..e4e6147 100644 --- a/gcc/ada/cstreams.c +++ b/gcc/ada/cstreams.c @@ -6,7 +6,7 @@ * * * Auxiliary C functions for Interfaces.C.Streams * * * - * Copyright (C) 1992-2015, Free Software Foundation, Inc. * + * Copyright (C) 1992-2017, Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -67,10 +67,6 @@ extern "C" { #endif -#ifdef VMS -#include <unixlib.h> -#endif - #ifdef __linux__ /* Don't use macros on GNU/Linux since they cause incompatible changes between glibc 2.0 and 2.1 */ @@ -202,23 +198,6 @@ __gnat_full_name (char *nam, char *buffer) getcwd approach instead. */ realpath (nam, buffer); -#elif defined (VMS) - strncpy (buffer, __gnat_to_canonical_file_spec (nam), __gnat_max_path_len); - - if (buffer[0] == '/' || strchr (buffer, '!')) /* '!' means decnet node */ - strncpy (buffer, __gnat_to_host_file_spec (buffer), __gnat_max_path_len); - else - { - char *nambuffer = alloca (__gnat_max_path_len); - - strncpy (nambuffer, buffer, __gnat_max_path_len); - strncpy - (buffer, getcwd (buffer, __gnat_max_path_len, 0), __gnat_max_path_len); - strncat (buffer, "/", __gnat_max_path_len); - strncat (buffer, nambuffer, __gnat_max_path_len); - strncpy (buffer, __gnat_to_host_file_spec (buffer), __gnat_max_path_len); - } - #elif defined (__vxworks) /* On VxWorks systems, an absolute path can be represented (depending on |