The function sets access rights to a file (on HPUX and Linux platforms).
Declaration
BOOL %FIO_ChmodHpux(
TEXT in fileName,
INT in access
)
Parameters
fileName
The file name.
access
An absolute access mode.
Return value
HP Linux platform:
@TRUE - if the access rights have been changed,
@FALSE - some error occurred
Other platforms:
@TRUE
Absolute mode
An absolute mode consists of three digits, the first one applies the rights to owner, the second one to group and the third one to others. Each access mode is characterized by its value. The numbers are formed by a sum of these values, where: 1 - execute, 2 - write, 4 - read.
0 komentárov