Library /sys$common/syshlp/helplib.hlb  —  CRTL  chown
    Changes the user ID and group ID of the specified file.

    Format

      #include  <unistd.h>

      int chown  (const char *file_spec, uid_t owner, gid_t group);

1  –  Arguments

 file_spec

    The address of an ASCII filename.

 owner

    The new user ID of the file.

 group

    The new group ID of the file.

2  –  Return Values

    0                  Indicates success.
    -1                 Indicates failure.
Close Help