I don't know whether anyone needs this, but g77 has according to
this intrinsic function whereas gfortran only provides the subroutine.
integer :: status
print *, 'Status: ', status
print *, 'Status: ', chmod('test.dat','u=rwx')
end program chmod_test
No, it's implemented, it's only that the subroutine and function with the same name cannot be called in the same scoping unit.