Next Previous Contents

23. chmod

Synopsis

Change the mode of a file

Usage

Integer_Type chmod (String_Type file, Integer_Type mode)

Description

The chmod function changes the permissions of file to those specified by mode. It returns 0 upon success, or -1 upon failure setting errno accordingly.

See the system specific documentation for the C library function chmod for a discussion of the mode parameter.

See Also

chown, stat_file


Next Previous Contents