chmod

chmod(3f)                                                              chmod(3f)



Name
       chmod - changes mode of a file

Syntax
       integer chmod, err
       external chmod
       character*len name, mode
       err = chmod ( name, mode )

Description
       The chmod function changes the filesystem mode of file name.  The mode
       can be any specification recognized by the chmod command.  The name must
       be a single pathname.

Restrictions
       Pathnames cannot be longer than MAXPATHLEN (as defined in sys/param.h ).

Return Values
       The function returns zero if it is successful; otherwise, it returns an
       error code.

Files
       libU77.a
       /bin/chmod       executed to change the file mode

See Also
       chmod(1)

Notes
       The chmod function actually executes the /bin/chmod utility via execl()
       in order to change the file's protection. This has got to be the biggest
       kludge in the Fortran UNIX library, but you check to see how anyone else
       does it. Changing it would somhow distroy the authentic funkyness of the
       libU77.a library.



                                                                       chmod(3f)