Open System Services Programmer's Guide

Table 8 OSS File-System Functions (continued)
Guardian NotesOSS NotesOSS Function
fstat64() can access both small
files and large files.
FDM set.Can return extended errors.fstatvfs()
Can return Guardian file-system error
numbers in errno.
fstatvfs64()
Gets fileset information for an open
file.
fstatvfs64() can access both
small files and large files.
Time values are not saved for file types
other than regular files in /G.
Can return extended errors.
Can return Guardian file-system error
numbers in errno.
fsync()
Writes modified data and file
attributes to permanent storage.
Can return extended errors.ftruncate()
Can return Guardian file-system error
numbers in errno.
ftruncate64()
Changes file length.
ftruncate64() can access both
small files and large files.
FDM set.All files in /G that are visible
to opendir() can be traversed.
Does not return EINVAL.
Can return extended errors.
ftw()
ftw64()
Traverses a file tree.
Recursive access from / can cause
unexpected results.
ftw64() can access both small files
and large files.
Can return Guardian file-system error
numbers in errno.
fwrite()
Writes to an output stream.
FDM set.If buffer is a null pointer, getcwd()
uses malloc() to allocate a buffer.
getcwd()
When a Guardian process makes its
first OSS call with a pathname, the
Gets the pathname of the current
directory.
In that case, the caller releases the
buffer with free().
process’s current working directory
Can return extended errors.
becomes the /G version of the default
subvolume as contained in the VOLUME
attribute of the Guardian =_DEFAULTS
DEFINE. Changes to the =_DEFAULTS
DEFINE after this point do not affect
the current working directory, and
changes to the current working
directory of the process do not affect
the =_DEFAULTS DEFINE.
Can be called only by native
processes.
globfree()
Frees all memory associated with a
previous call to pglob().
A Guardian process cannot receive the
SIGWINCH signal.
Can return extended errors.
Can return Guardian file-system error
numbers in errno.
ioctl()
Controls device files.
The fildes parameter can specify a
terminal file in /G.
FDM set.Linked pathnames must reside on the
same fileset.
link()
Cannot create a link to a Guardian file.
Creates an additional directory entry
for an existing file on the current file
system.
Not supported for directories.
Can return extended errors.
OSS SEEP consultation.
94 Managing Files