Commit 08d7f64e by Tobias Burnus

gfortran.texi: Add volatile and internal-file namelist to Fortran 2003 status.

2006-11-08  Tobias Burnus  <burnus@net-b.de>

       * gfortran.texi: Add volatile and internal-file
         namelist to Fortran 2003 status.
       * intrinsic.texi: Correct CHMOD entry.

From-SVN: r118578
parent 89d67cca
2006-11-07 Paul Thomas <pault@gcc.gnu.org> 2006-11-08 Tobias Burnus <burnus@net-b.de>
* gfortran.texi: Add volatile and internal-file
namelist to Fortran 2003 status.
* intrinsic.texi: Correct CHMOD entry.
2006-11-07 Paul Thomas <pault@gcc.gnu.org>
PR fortran/29539 PR fortran/29539
PR fortran/29634 PR fortran/29634
......
...@@ -1380,6 +1380,12 @@ TR 15581: ...@@ -1380,6 +1380,12 @@ TR 15581:
The @code{OPEN} statement supports the @code{ACCESS='STREAM'} specifier, The @code{OPEN} statement supports the @code{ACCESS='STREAM'} specifier,
allowing I/O without any record structure. allowing I/O without any record structure.
@item
Namelist input/output for internal files.
@item
@cindex @code{VOLATILE}
The @code{VOLATILE} statement and attribute.
@end itemize @end itemize
......
...@@ -1910,16 +1910,21 @@ END PROGRAM ...@@ -1910,16 +1910,21 @@ END PROGRAM
@item @emph{Description}: @item @emph{Description}:
@code{CHMOD} changes the permissions of a file. This function invokes @code{CHMOD} changes the permissions of a file. This function invokes
@code{/bin/chmod} and might therefore not work on all platforms. @code{/bin/chmod} and might therefore not work on all platforms.
@code{CHMOD} as an intrinsic function is not implemented in GNU Fortran.
This intrinsic is provided in both subroutine and function forms; however,
only one form can be used in any given program unit.
@item @emph{Standard}: @item @emph{Standard}:
GNU extension GNU extension
@item @emph{Class}: @item @emph{Class}:
Subroutine Subroutine, non-elemental function
@item @emph{Syntax}: @item @emph{Syntax}:
@code{CHMOD(NAME, MODE[, STATUS])} @multitable @columnfractions .80
@item @code{CALL CHMOD(NAME, MODE[, STATUS])}
@item @code{STATUS = CHMOD(NAME, MODE)}
@end multitable
@item @emph{Arguments}: @item @emph{Arguments}:
@multitable @columnfractions .15 .80 @multitable @columnfractions .15 .80
...@@ -1936,7 +1941,12 @@ used as the file name. ...@@ -1936,7 +1941,12 @@ used as the file name.
@code{0} on success and non-zero otherwise. @code{0} on success and non-zero otherwise.
@end multitable @end multitable
@item @emph{Return value}:
In either syntax, @var{STATUS} is set to @code{0} on success and non-zero
otherwise.
@item @emph{Example}: @item @emph{Example}:
@code{CHMOD} as subroutine
@smallexample @smallexample
program chmod_test program chmod_test
implicit none implicit none
...@@ -1945,6 +1955,15 @@ program chmod_test ...@@ -1945,6 +1955,15 @@ program chmod_test
print *, 'Status: ', status print *, 'Status: ', status
end program chmod_test end program chmod_test
@end smallexample @end smallexample
@code{CHMOD} as non-elemental function:
@smallexample
program chmod_test
implicit none
integer :: status
status = chmod('test.dat','u+x')
print *, 'Status: ', status
end program chmod_test
@end smallexample
@item @emph{Specific names}: @item @emph{Specific names}:
@item @emph{See also}: @item @emph{See also}:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment