%FIO_ChmodHpux function


Function
The function sets an access rights to a file (only for HP Linux platform).
Declaration
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 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.


Numerical permissions:

Value Permission
0 ---
1 --x
2 -w-
3 -wx
4 r--
5 r-x
6 rw-
7 rwx

Napíšte komentár