Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

chmod(2) OSS System Calls Reference Manual
S_ISGID Sets the processs effective group ID to the group ID of the files 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 files owner to read, write, and execute the file (or to search the direc-
tory).
S_IRUSR Permits the files owner to read the file.
S_IWUSR Permits the files 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 files 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 files 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).
If the file specified by the path parameter resides on an HP NonStop node where the calling pro-
cess is not logged in, the S_ISUID bit of the file is cleared by the call, but the S_ISGID bit of the
file is not cleared by the call.
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 files 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.
122 Hewlett-Packard Company 527186-023