I don't know whether anyone needs this, but g77 has according to http://gcc.gnu.org/onlinedocs/gcc-3.4.6/g77.pdf this intrinsic function whereas gfortran only provides the subroutine.
program chmod_test implicit none intrinsic chmod integer :: status call chmod('test.dat','u=rwx',status) print *, 'Status: ', status print *, 'Status: ', chmod('test.dat','u=rwx') end program chmod_test -- Summary: [g77 support] chmod intrinsic function not implemented in gfortran Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tobias dot burnus at physik dot fu-berlin dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29453