10 - modify catalog.

Usage:

mme    gefsye
zero   CC,ARGLIST
zero   10,BUFFER

Where:

CC
is either zero or a courtesy call address.
ARGLIST
points to a list of arguments for this call. The format of this list is described below.
BUFFER
points to a buffer that can be used in this operation. This buffer should be 355 words long.

Description:

This version of MME GEFSYE modifies an existing catalog and gives it a new set of attributes. The argument list indicated by ARGLIST has the form

zero    RETURN_WORD,USERID
zero    CAT_NAME,PERMISSION
zero    OPTION,NEWNAME

where

RETURN_WORD
points to two words where MME GEFSYE can return a status. MME GEFSYE will initialize these words to zeroes. When MME GEFSYE returns, the first word will contain
Bit 0      -- 1 to indicate completion
    1-11   -- error code, or 0 for success
    18-35  -- pointer to additional error info
              (if any)

See "expl mme gefsye" for a list of common error codes.

USERID
points to two words containing the userid under which the program is operating (in BCD characters).
CAT_NAME
points to an area of memory containing the name of the catalog to be modified. This consists of four word chunks: the first two words of each chunk gives a component of a pathname (first chunk the userid, next chunk the name of the first catalog, and so on); the last two words of each chunk gives a password. Each component name and password is given as 1-12 BCD characters, left-justified and padded on the right with blanks. If a component has no password, the password part of the chunk is all blanks.

After the last pathname chunk comes a word containing the value -1.

PERMISSION
points to a word giving new general attributes for the catalog.
Bits 0-11
give new general permissions (four octal digits, as described in "expl mme gefsye") that will be added to the existing permissions. If general permissions are not to be modified, bits 0-17 should contain -1.
Bits 18-28
reserved
Bit 26
if 1, SAVE
Bit 29
if 1, NSLOCK (turn off SLOCK)
Bit 30
if 1, WLOCK
Bit 32
if 1, NSAVE
Bit 35
if 1, SLOCK
OPTION
points into a buffer describing additional arguments for the catalog creation. Below we describe the bits of each word in the buffer.
OPTION:
      Bit 0:  if on, this call to MME GEFSYE only
              checks permissions; no modification
OPTION+1:
  Bits 0-35:  not used

Beginning at OPTION+2, there are triplets of words indicating new specific permissions for the catalog being modified. The first two words of each triplet give the BCD userid receiving the permission. The last word has two possible formats. In the first, a general permissions code is in Bits 0-11 (see "expl mme gefsye"); Bit 17 should be on if this EXCLUDEs permission. In the second, bits 0-17 are zero; this removes all specific permissions for the associated userid. If bit 18 is 0, the userid itself is removed from the specific permissions list; if bit 18 is 1, specific permissions are removed, but the name is retained in the list, in anticipation of new permissions being granted.

In both formats, bits which are not used are reserved. The final triplet is followed by a word containing -1.

NEWNAME
points to a four-word block that may specify a new name and/or password for the catalog. If word 0 of this block is -1, there is no new name; otherwise, words 0 and 1 give the new name (1-12 BCD characters, left-justified, blank-filled). If word 2 of this block is -1, the password should not be modified; otherwise, words 2 and 3 give a new password (1-12 BCD characters, left-justified, blank-filled). If the two password words only contain BCD blanks, the existing password will be removed.

Words 2 and 3 may also be a special password block (described below).

Special Password Block

A special password block is two words long. It appears in the password part of the final chunk of a pathname. It has the form

zero    N,-1
zero    LIST,0

where LIST points to a list of password descriptors and N is the number of descriptors in the list. Each descriptor is four words long. The first two words give a password as 1-12 BCD characters, left-justified and padded with blanks. The next word gives a time when the password starts to apply, and the last gives a time when the password should stop applying. This lets you set passwords that are only in effect at certain times of the day. Times are given as a certain number of "ticks" after midnight, where each tick is 1/64,000 of a second.

See Also:

expl access

expl access permissions

Copyright © 2000, Thinkage Ltd.