diff options
author | Pascal Obry <obry@adacore.com> | 2008-08-05 15:24:02 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2008-08-05 15:24:02 +0200 |
commit | e5fe425118de09588879e2103f6cfb821c5919a5 (patch) | |
tree | 77ee8cc388cbd349a765f6fa9d59ae770a5bfb26 /gcc | |
parent | 0c78ce5ae07eda21ef19200cda8bc3d821a6aeaf (diff) | |
download | gcc-e5fe425118de09588879e2103f6cfb821c5919a5.zip gcc-e5fe425118de09588879e2103f6cfb821c5919a5.tar.gz gcc-e5fe425118de09588879e2103f6cfb821c5919a5.tar.bz2 |
adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
2008-08-05 Pascal Obry <obry@adacore.com>
* adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
From-SVN: r138703
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/adaint.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 320d9b2..c1afe1e 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -1828,7 +1828,7 @@ __gnat_is_readable_file (char *name) int mode; struct stat statbuf; - ret = __gnat_stat (name, &statbuf); + ret = stat (name, &statbuf); mode = statbuf.st_mode & S_IRUSR; return (!ret && mode); #endif @@ -1854,7 +1854,7 @@ __gnat_is_writable_file (char *name) int mode; struct stat statbuf; - ret = __gnat_stat (name, &statbuf); + ret = stat (name, &statbuf); mode = statbuf.st_mode & S_IWUSR; return (!ret && mode); #endif @@ -1878,7 +1878,7 @@ __gnat_is_executable_file (char *name) int mode; struct stat statbuf; - ret = __gnat_stat (name, &statbuf); + ret = stat (name, &statbuf); mode = statbuf.st_mode & S_IXUSR; return (!ret && mode); #endif @@ -1899,10 +1899,10 @@ __gnat_set_writable (char *name) struct stat statbuf; if (stat (name, &statbuf) == 0) - { - statbuf.st_mode = statbuf.st_mode | S_IWUSR; - chmod (name, statbuf.st_mode); - } + { + statbuf.st_mode = statbuf.st_mode | S_IWUSR; + chmod (name, statbuf.st_mode); + } #endif } @@ -1919,10 +1919,10 @@ __gnat_set_executable (char *name) struct stat statbuf; if (stat (name, &statbuf) == 0) - { - statbuf.st_mode = statbuf.st_mode | S_IXUSR; - chmod (name, statbuf.st_mode); - } + { + statbuf.st_mode = statbuf.st_mode | S_IXUSR; + chmod (name, statbuf.st_mode); + } #endif } @@ -3210,7 +3210,7 @@ get_gcc_version (void) int __gnat_set_close_on_exec (int fd ATTRIBUTE_UNUSED, - int close_on_exec_p ATTRIBUTE_UNUSED) + int close_on_exec_p ATTRIBUTE_UNUSED) { #if defined (F_GETFD) && defined (FD_CLOEXEC) && ! defined (__vxworks) int flags = fcntl (fd, F_GETFD, 0); |