Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (a - d) chmod(2)
S_IWUSR Permits the les owner to write to the le.
S_IXUSR Permits the les owner to execute the le (or to search the directory).
S_IRWXG Permits the les group to read, write, and execute the le (or to search the direc-
tory).
S_IRGRP Permits the les group to read the le.
S_IWGRP Permits the les group to write to the le.
S_IXGRP Permits the les group to execute the le (or to search the directory).
S_IRWXO Permits others to read, write, and execute the le (or to search the directory).
S_IROTH Permits others to read the le.
S_IWOTH Permits others to write to the le.
S_IXOTH Permits others to execute the le (or to search the directory).
S_NONSTOP For a regular le, setting this ag results in:
Disabling le system caching.
Returning control to a calling process only after the backup disk process
has received checkpoint data for a write operation.
S_TRUST Establishes that the le does not contain code for an uncooperative process or
code to examine or modify I/O buffers. This ag suppresses operating system
protection of the buffers when the memory segment containing the buffers is not
shared. This ag applies only to loadles for a TNS/E native process and can be
set only by a user with appropriate privileges (the super ID).
S_TRUSTSHARED
Establishes that the le does not contain code for an uncooperative process or
code to examine or modify I/O buffers. This ag suppresses operating system
protection of the buffers regardless of whether the memory segment containing
the buffers is shared. This ag applies only to loadles for a TNS/E native pro-
cess and can be set only by a user with appropriate privileges (the super ID).
The S_ISUID bit of the le is not changed by the call if the le specied by the path parameter
resides on an HP NonStop node where the calling process is not logged in.
The S_ISGID bit of the le is cleared if all of these conditions are true:
The named le is a regular le.
The process does not have appropriate privileges.
The les group ID does not match the effective group ID of the process or one of the IDs
of the processs group list.
Upon successful completion, the chmod() function marks the st_ctime eld of the le for
update.
527186-003 Hewlett-Packard Company 115