Changes the user and group owner of the specified file.
#include <sys/stat.h> int fchown ( int fildes, uid_t owner, gid_t group );
(IN) Specifies the file descriptor of the file.
(IN) Specifies the ID of the user to make the owner of the file.
(IN) Specifies the ID of the group to make the owner of the file.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
Setting a group owner has no effect on a NetWare file system.