CONTENTS
#include <ShoreApp.h>
shrc Shore::umask(mode_t newmask, mode_t *oldmask);
If
oldmask
is non-zero,
umask
places the current value of the process' umask in
oldmask.
In either case,
umask
sets the process' umask to the value of
newmask.
The umask is used to determine the mode of a new registered object. Any
bits set in the process' umask are cleared from the
mode
parameter of
mkdir(oc),
create(cxxlb),
or
create_xref(cxxlb),
and the resulting value is used as the mode of the new registered object.
Shore applications have two umasks, the Unix mask and the Shore
mask. When a connection with the Shore server is established (see
init(oc)
), the Shore mask is set to the current value of the Unix mask.
Any subsequent changes to either mask are not reflected in the other.
Furthermore, changes to the Shore mask in one process are not seen by
subsequent processes. The Unix mask can be changed with
umask(2).
This manual page applies to Version 1.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.
create(cxxlb),
create_xref(cxxlb),
init(oc),
mkdir(oc),
umask(2).