HELPLIB.HLB  —  System Services, $SETDFPROT
    Allows you to read and write the default file protection for the
    process.

    Format

      SYS$SETDFPROT  [new-def-prot-addr] ,[cur-def-prot-addr]

    C Prototype

      int sys$setdfprot  (unsigned short int *newdefprotaddr,

                         unsigned short int *curdefprotaddr);

1  –  Arguments

 new-def-prot-addr

    OpenVMS usage:file_protection
    type:         word (unsigned)
    access:       read only
    mechanism:    by reference
    A word that specifies the new default file protection
    specification. The new-def-prot-addr argument is the address
    of the word that specifies the desired protection. If you do not
    want the process-default file protection to be changed, specify
    the value 0.

 cur-def-prot-addr

    OpenVMS usage:file_protection
    type:         word (unsigned)
    access:       write only
    mechanism:    by reference
    A word that is to receive the current default file protection
    specification. The cur-def-prot-addr argument is the address of
    the word that receives the current process-default protection. If
    you do not want the current default file protection, specify the
    value 0.
Close Help