libMapRClient for hadoop-0.20.2 and hadoop-2.x
Changes permissions on a file or directory in the manner of the
The handle to the filesystem. Obtain this handle with one of the
The path to the file or directory
The bitmask for the new permissions.
Returns 0 on success, -1 on error.
Check errno for error codes and meanings.
errno is set to EINVAL if the input arguments are invalid.
errno is set to EPERM if the process does not have enough privileges to perform the operation.