g77.info: ChMod Intrinsic (subroutine)
Go forward to CLog Intrinsic
Go backward to ChDir Intrinsic (subroutine)
Go up to Table of Intrinsic Functions
Go to the top op g77
ChMod Intrinsic (subroutine)
CALL ChMod(NAME, MODE, STATUS)
NAME: `CHARACTER'; scalar; INTENT(IN).
MODE: `CHARACTER'; scalar; INTENT(IN).
STATUS: `INTEGER(KIND=1)'; OPTIONAL; scalar; INTENT(OUT).
Intrinsic groups: `unix'.
Description:
Changes the access mode of file NAME according to the specification
MODE, which is given in the format of `chmod(1)'. A null character
(`CHAR(0)') marks the end of the name in NAME--otherwise, trailing
blanks in NAME are ignored. Currently, NAME must not contain the
single quote character.
If the STATUS argument is supplied, it contains 0 on success or a
non-zero error code upon return.
Note that this currently works by actually invoking `/bin/chmod' (or
the `chmod' found when the library was configured) and so might fail in
some circumstances and will, anyway, be slow.
Some non-GNU implementations of Fortran provide this intrinsic as
only a function, not as a subroutine, or do not support the (optional)
STATUS argument.
For information on other intrinsics with the same name: *Note ChMod
Intrinsic (function)::.
Created Mon Nov 8 17:42:15 2004 on tillpc with info_to_html version 0.9.6.