umask(OC)
Shore Programmer's Manual - 2 August 96
NAME
umask \- set registered object creation mode mask
SYNOPSIS
#include <ShoreApp.h>
shrc Shore::umask(mode_t newmask, mode_t *oldmask);
DESCRIPTION
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).
VERSION
This manual page applies to Version 1.0 of theShore software.
SPONSORSHIP
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-92-C-Q508.
COPYRIGHT
Copyright (c) 1994, 1995, 1996 Computer Sciences Department, University of Wisconsin -- Madison. All Rights Reserved.SEE ALSO
create(cxxlb)
,
create_xref(cxxlb)
,
init(oc)
,
mkdir(oc)
,
umask(2).