The function sets an access rights to a file (only for HP Linux platformon HPUX and Linux platforms).
Declaration
Blok kódu
language
esl
theme
Confluence
BOOL %FIO_ChmodHpux(
TEXT in fileName,
INT in access
)
Parameters
fileName
File name.
access
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 groupand 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.