Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (a - d) chmod(2)
S_IWUSR Permits the file’s owner to write to the file.
S_IXUSR Permits the file’s owner to execute the file (or to search the directory).
S_IRWXG Permits the file’s group to read, write, and execute the file (or to search the direc-
tory).
S_IRGRP Permits the file’s group to read the file.
S_IWGRP Permits the file’s group to write to the file.
S_IXGRP Permits the file’s group to execute the file (or to search the directory).
S_IRWXO Permits others to read, write, and execute the file (or to search the directory).
S_IROTH Permits others to read the file.
S_IWOTH Permits others to write to the file.
S_IXOTH Permits others to execute the file (or to search the directory).
S_NONSTOP For a regular file, setting this flag results in:
• Disabling file 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 file does not contain code for an uncooperative process or
code to examine or modify I/O buffers. This flag suppresses operating system
protection of the buffers when the memory segment containing the buffers is not
shared. This flag applies only to loadfiles 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 file does not contain code for an uncooperative process or
code to examine or modify I/O buffers. This flag suppresses operating system
protection of the buffers regardless of whether the memory segment containing
the buffers is shared. This flag applies only to loadfiles 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 file is not changed by the call if the file specified by the path parameter
resides on an HP NonStop node where the calling process is not logged in.
The S_ISGID bit of the file is cleared if all of these conditions are true:
• The named file is a regular file.
• The process does not have appropriate privileges.
• The file’s group ID does not match the effective group ID of the process or one of the IDs
of the process’s group list.
Upon successful completion, the chmod() function marks the st_ctime field of the file for
update.
527186-003 Hewlett-Packard Company 1−15