open_control |
Any I/O class with a constructor
that takes an os_open_t
parameter can be constructed to either access an existing object in the system
or create a new object. A parameter of this type accepts either an os_open_control
object or a bitwise-OR of the following flags.
create_new
-Create the object; then open it. If the object already exists, raise an
exception.create_always
-Create the object if it does not already exist; then open it. If the object
already exists, truncate its length to 0 .open_existing
-Open the object if it already exists; otherwise, raise an exception.open_always
-Create the object if it does not already exist; then open it.truncate_existing
-Open the existing object, but truncate its length to 0
.
enum os_open_control::type_t
{
create_new,
create_always,
open_existing,
open_always,
truncate_existing
};
)os_open_control::open_existing
).))
consttrue if this value is less than control
.)))
consttrue if this value is the same as control
.true if creation is enabled. The I/O object is
created if it does not already exist.)true if exclusive creation is enabled. If
creation and exclusive creation are enabled and the I/O object already
exists, the creation fails.)
consttrue if the flags specified by mask
are set.)
const)true ).true if truncation is enabled. If truncation is
enabled, and the I/O object already exists and is writable, all of the
object's previous data is deleted when the object is opened.)
#include <ospace/uss/io.h>
))Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.