Open System Services Programmer's Guide

Table 8 OSS File-System Functions (continued)
Guardian NotesOSS NotesOSS Function
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).
Can return extended errors.
Can return Guardian file-system error
numbers in errno.
OSS SEEP consultation.
FDM set.Can return extended errors.chroot()
When called with a path parameter
that points to a Guardian subvolume
with a reserved name, it fails.
OSS SEEP consultation.
Changes the effective root directory.
Does not return EINTR.close()
Can return extended errors.
Closes the file associated with a file
descriptor.
Can return Guardian file-system error
numbers in errno.
If the dir_pointer parameter does
not refer to a currently opened directory
Can return extended errors.
If the dir_pointer parameter does
not refer to a currently opened
closedir()
Closes a directory stream. Refer to
opendir(). stream when it is passed to the
closedir() function, the following
can occur:
directory stream when it is passed to
the closedir() function, the
following can occur:
The caller might cause a trap
condition.
The caller might receive a
SIGSEGV or SIGILL signal.
User memory might be corrupted.
User memory might be corrupted.
confstr()
Determines the current value of a
specified system variable defined by
a string value.
FDM set.Can return Guardian file-system error
numbers in errno.
creat()
Refer to open().
creat64()
creat64() can access both small
files and large files.
Creates a file. Refer to open().
OSS SEEP consultation.
For Guardian processes, it returns a null
pointer and errno is set to ENOTOSS.
If the parameter is a null pointer, the
string is stored in an internal static
area and the address is returned. The
ctermid()
Generates the pathname for a
controlling terminal.
next call to this function with a null
pointer overwrites the contents of the
internal static area.
Can return extended errors.
Can return extended errors.dup()
Can return Guardian file-system error
numbers in errno.
Duplicates an open file descriptor.
Does not return EINTR.dup2()
Can return extended errors.Can return
Guardian file-system error numbers in
errno.
Duplicates and controls an open file
descriptor.
Can return extended errors.fclose()
92 Managing Files