Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: stat.h

chmod()

IMPORT_C int chmod(const char *_path, mode_t _mode);

Description

Sets the access permissions for the file whose name is given by pathname to the bit pattern contained in mode. For this call to succeed, the effective user ID of the process must match the owner of the file, or the process must have appropriate privileges. The owner of the file pathname always has privileges to change permission modes and file attributes.

Parameters

const char *_path

Points to the name of the file.

mode_t _mode

Is a bitwise-or field that specifies the new permission modes for path name.

Return value

int

On Success, returns 0. On Failure, returns -1, errno may be set.