aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2012-01-12 21:26:10 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2012-01-12 21:26:10 +0100
commit9c69933102c60c283b53a7ad73192be51a29f507 (patch)
treeb6e0d3e2fffc3e6afe56a8ece666aab8f9c1513a /gcc
parent105b876e5556ffbb0fe367eda217cb4e74125c1f (diff)
downloadgcc-9c69933102c60c283b53a7ad73192be51a29f507.zip
gcc-9c69933102c60c283b53a7ad73192be51a29f507.tar.gz
gcc-9c69933102c60c283b53a7ad73192be51a29f507.tar.bz2
re PR libfortran/36755 (Avoid fork/exec in chmod intrinsic)
2012-01-12 Tobias Burnus <burnus@net-b.de> PR fortran/36755 * intrinsic.texi (CHMOD): Extend a bit and remove statement that /bin/chmod is called. 2012-01-12 Tobias Burnus <burnus@net-b.de> PR fortran/36755 * intrinsics/chmod.c (chmod_func): Replace call to /bin/chmod From-SVN: r183137
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/intrinsic.texi10
2 files changed, 11 insertions, 5 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 598f47c..0005161 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2012-01-12 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/36755
+ * intrinsic.texi (CHMOD): Extend a bit and remove statement
+ that /bin/chmod is called.
+
2012-01-10 Gerald Pfeifer <gerald@pfeifer.com>
* gfortran.texi (Fortran 2003 Status): Fix grammar.
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index 6d4c9ff..294818e 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -1,5 +1,5 @@
@ignore
-Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010
+Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012
Free Software Foundation, Inc.
This is part of the GNU Fortran manual.
For copying conditions, see the file gfortran.texi.
@@ -2665,8 +2665,7 @@ END PROGRAM
@table @asis
@item @emph{Description}:
-@code{CHMOD} changes the permissions of a file. This function invokes
-@code{/bin/chmod} and might therefore not work on all platforms.
+@code{CHMOD} changes the permissions of a file.
This intrinsic is provided in both subroutine and function forms; however,
only one form can be used in any given program unit.
@@ -2692,8 +2691,9 @@ file name. Trailing blanks are ignored unless the character
@code{achar(0)} are used as the file name.
@item @var{MODE} @tab Scalar @code{CHARACTER} of default kind giving the
-file permission. @var{MODE} uses the same syntax as the @var{MODE}
-argument of @code{/bin/chmod}.
+file permission. @var{MODE} uses the same syntax as the @code{chmod} utility
+as defined by the POSIX standard. The argument shall either be a string of
+a nonnegative octal number or a symbolic mode.
@item @var{STATUS} @tab (optional) scalar @code{INTEGER}, which is
@code{0} on success and nonzero otherwise.