Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (f - i) fchmod(2)
S_ISGID Sets the process’s effective group ID to the group ID of the file’s group on execu-
tion.
S_ISVTX For a directory, permits modification to the directory only if the effective user ID
of the process matches that of the file being accessed.
S_IRWXU Permits the file’s owner to read, write, and execute the file (or to search the direc-
tory).
S_IRUSR Permits the file’s owner to read the file.
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_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 a 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 fchmod( ) function marks the st_ctime field of the file for
update.
527186-023 Hewlett-Packard Company 3−3