Open System Services Programmer's Guide
Table 8 OSS File-System Functions
Guardian NotesOSS NotesOSS Function
FDM set.Can return extended errors.access()
Not all the Guardian information can
be summarized here; for example, there
OSS SEEP consultation.
Determines the accessibility of a file.
are several security restrictions. For
Guardian information, refer to the
reference pages.
FDM set.Can return extended errors.chdir()
You can’t use chdir() on Guardian
process names or subvolumes with a
reserved name.
Can return Guardian file-system error
numbers in errno.
OSS SEEP consultation.
Changes the current working directory.
Process must have the appropriate
privilege. For files that are not in
chmod()
fchmod()
restricted-access filesets, the process
lchmod()
must have either the same effective
Changes file-access permissions.
user ID as the owner of the file or the
super ID. For files in restricted-access
filesets, see “Restricted-Access Filesets
and File Privileges” (page 270).
Call to chmod() has no effect on
descriptor of open file, but new
openers of the file are authenticated
with the new permissions specified in
the call.
The fchmod() function is like the
chmod()function except that it
operates on a file descriptor instead
of a pathname.
The lchmod() function is similar to
the chmod() function except when
the final component of the path
parameter refers to a symbolic link,
the lchmod()function changes access
permissions for the symbolic link
instead of the file to which it refers.
The mode parameter uses symbols.
Refer to the reference page.
Can return extended errors.
Can return Guardian file-system error
numbers in errno.
OSS SEEP consultation.
FDM set.The fchown() function is like the
chown() function except that it
chown()
Can be used only on files in the /G
fileset.
fchown()
operates on a file descriptor instead
of a pathname.
lchown()
Changes the owner and group IDs of
a file.
The _POSIX_CHOWN_
RESTRICTEDconstant is ignored for
files in /G.
The lchown() function is similar to
the chown() function except when
the final component of the path
For details on disk file security, refer to
the reference pages.
parameter refers to a symbolic link,
the lchown() function changes
access permissions for the symbolic
link instead of the file to which it
refers.
Process must have the appropriate
privilege. For files that are not in
restricted-access filesets, the process
must have either the same effective
OSS File-System Functions 91