Veritas™ File System 5.0.1 Programmer's Reference Guide

Opens a named data streamopen()
Reads a named data streamread()
Writes a named data streamwrite()
Reads directory entries and puts in a file system independent
format
getdents()
Maps pages of memorymmap()
Reads a directoryreaddir()
VxFS named data stream functionality is available through the following
application programming interface functions:
Works similarly to the open() system call, except that the path
is interpreted as a named data stream to a file descriptor. If
the vxfs_nattr_open() operation completes successfully,
the return value is the file descriptor associated with the
named data stream. The file descriptor can be used by other
input/output functions to refer to that named data stream. If
the path of the named data stream is set to ., the file
descriptor returned points to the named data stream directory
vnode.
The following is the syntax for the vxfs_nattr_open() API:
int vxfs_nattr_open(int fd, char *path,
int oflag, int cmode);
vxfs_nattr_open()
Creates a new directory entry for the existing named data
stream and increments its link count by one. There is a pointer
to an existing named data stream in the named data stream
namespace and a pointer to the new directory entry created
in the named data stream namespace. The calling function
must have write permission to link the named data stream.
The following is the syntax for the vxfs_nattr_link() API:
int vxfs_nattr_link(int sfd, char *spath,
char *tpath);
vxfs_nattr_link()
65Named data streams
Named data streams application programming interface