CONTENTS
VASResult shore_vas::mkUnixFile(
const Path name,
mode_t mode,
const vec_t &contents, // -- initial value
lrid_t *result
);
VASResult shore_vas::rmUnixFile(
const lrid_t &dir, // -- can't be root("/")
const Path name
);
Value-added servers can create and destroy UnixFile objects with
these methods.
UnixFile objects are Shore objects with a single attribute,
of type TEXT.
MkUnixFile
creates an object with the path or file name
given in
name.
The protection bits are given in
mode.
The object is initialized with the data given in
contents.
The SVAS writes logical object identifier of the new object
into the space to which
result
points.
If
result
is null, the resulting object identifier is not written.
RmUnixFile
removes the object named
name
in the directory
whose object identifier is
dir.
These methods are available only to value-added servers.
These methods can be used only in a transaction.
Deadlocks can occur while locks are being acquired. See
transaction(svas)
for information about deadlocks.
A complete list of errors is in
errors(svas).
This manual page applies to Version 1.1 of the Shore software.
The Shore project is sponsored by the Advanced Research Project Agency, ARPA
order number 018 (formerly 8230), monitored by the U.S. Army Research
Laboratory under contract DAAB07-91-C-Q518.
Copyright © 1994, 1995, 1996, 1997,
Computer Sciences Department, University of
Wisconsin -- Madison. All Rights Reserved.
errors(svas),
transaction(svas),
and
text(svas).