Open System Services Programmer's Guide

Table 8 OSS File-System Functions (continued)
Guardian NotesOSS NotesOSS Function
The return of EOF from a device
special file has no effect on
subsequent read() calls.
If nbytes > SSIZE_MAX, -1 is
returned and errno is set to EINVAL.
Can return extended errors.
Can return Guardian file-system error
numbers in errno.
Can return extended errors.readdir()
If, after a call to fork() or
tdm_fork(), both the parent and
readdir64()
Refer to opendir().
the child processes make calls to
readdir() to access the same OSS
directory, the results of the calls are
undefined.
readdir64() can access both small
files and large files.
FDM set.Can return extended errors.readlink()
This function cannot be used on an
object in /G because symbolic links
cannot be created in /G.
Reads the value of a symbolic link.
Can return extended errors.readv()
Can return Guardian file-system error
numbers in errno.
Reads from a file into scattered buffers.
If remove() is passed the name of
an open file, that file is no longer
remove()
Removes a file.
accessible by that name. Existing
opens remain in effect. When there
are no more outstanding opens, the
physical file is removed.
OSS SEEP consultation.
FDM set.OSS SEEP consultation.rename() or
In /G, this function can be used on files
but cannot be used on directories. The
rename_oss()
Renames a directory or file within a
fileset from the OSS environment.
new pathname must correspond to a
Guardian permanent disk filename on
the same volume, and the caller must
have Guardian write access to the file.
Can be used only on Guardian files in
/G, and the caller must have Guardian
write access to the file.
Can return Guardian file-system error
numbers in errno.
rename_guardian()
Renames a file in the Guardian file
system.
If, after a call to fork() or
tdm_fork(), both the parent and
rewinddir()
Repositions a directory stream to its
beginning. Refer to opendir().
the child processes make calls to
rewinddir() to access the same
OSS directory, the results of the calls
are undefined.
FDM set.Fails on lost+found in root directory
of a fileset and on /dev.
rmdir()
Fails on disk volumes or processes in
/G and errno is set to EBUSY.
Removes a directory.
rmdir() can be used to remove the
current working directory of a process.
OSS File-System Functions 97