HPlogo MPE/iX Intrinsics Reference Manual > Chapter 7 Command Definitions (HP32208-HPLOACNMPROC)

HPACDPUT

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

Manipulates security information in the access control definition (ACD) of a specified file or device.

Syntax



            I32     IV        *      IV        *
  HPACDPUT (status, itemnum1, item1, itemnum2, item2);

Parameters


status

32-bit signed integer by reference (required)

Returns the status of the HPACDPUT call. If no errors or warnings are encountered, status returns 32-bits of zero. If errors or warnings are encountered, status is interpreted as two 16-bit fields:

Bits (0:16) comprise status.info. A negative value indicates an error condition, and a positive value indicates a warning condition. Refer to the MPE/iX Error Message Manual Volumes 1, 2, and 3 for a description of its value.

Bits (16:16) comprise status.subsys. The value represents the subsystem that sets the status information. The subsystem identifier for HPACDPUT is 246.

itemnum1

integer by value (required)

Passes an identifier code defining the accompanying paired input (item1). The values for itemnum1 are described in the item1 parameter description. Refer to Table 7-3 "HPACDPUT Itemnum1/Item1 Values".

item1

Type varies by reference (required)

Passes the file or device identification information. The file or device identifier must be specified using one of the following predefined itemnum1/item1 pairs. Refer to Table 7-3 "HPACDPUT Itemnum1/Item1 Values".

itemnum2

Integer by value (required)

Passes the function code defining the accompanying paired input (item2). The values for itemnum2 are described in the item2 parameter description. Refer to Table 7-4 "HPACDPUT Itemnum2/Item2 Values".

item2

Type varies by reference (required)

Passes the information to be used to manipulate the ACD of the specified file or device.

Functionality requests can be made using one of the predefined itemnum2/item2 pairs. Refer to Table 7-4 "HPACDPUT Itemnum2/Item2 Values".

Table 7-3 HPACDPUT Itemnum1/Item1 Values

Itemnum Mnemonic Item Description
1BASpecifies the target file name. The item1 value specified must be a byte array, word aligned.

No wildcard characters are allowed, a lockword can be included, the file name specified does not need to be fully qualified and can be specified using either MPE or HFS name syntax. HFS pathnames must begin with a dot (.) or slash (/) character and cannot exceed 1024 characters including the dot or slash and a null character terminator. MPE filenames < 35 characters must be terminated with a null character or a carriage return.
2BASpecifies the target file name. The item1 value specified must be a byte array of 1 to 35 characters, word aligned.

Wildcard characters are allowed, the file name specified does not need to be fully qualified, and a file name < 35 characters must be terminated with a null character or a carriage return.
3UDSSpecifies the unique file identifier (UFID). The item1 value specified must be a 20-byte structure, which can be obtained from the file system through the HPFOPEN, FLABELINFO, or FFILEINFO intrinsics.
4ISpecifies the file number of a previously opened file. The item1 value specified must be a 16-bit integer value.
5N/ASpecifies all devices configured on the system. An item1 value is not required with the option.
6ISpecifies the logical device number (ldev). The item1 value specified must be a 16-bit integer value.
7BASpecifies the name of a specific device. The item1 value specified must be a 1 to 8 character byte array.
8BASpecifies the name of a specific device class. The item1 value specified must be a 1 to 8 character byte array.
15BASpecifies the target filename. The item1 value specified must be a byte array of < 1024 characters long, including the terminating carriage return, blank, or null character.

Table 7-4 HPACDPUT Itemnum2/Item2 Values

Itemnum Mnemonic Item Description
20BACreate a new ACD. The item2 value specified must be a 1 to 279 character byte array.
21BAAdd ACD pairs. The item2 value specified must be a 1 to 279 character byte array.
22BAReplace ACD pairs. The item2 value specified must be a 1 to 279 character byte array.
23BADelete ACD pairs. The item2 value specified must be a 1 to 279 character byte array.
24N/ADelete an ACD. An item2 value is not required with this option.
25BACreate a new ACD. The item2 value specified must be an MPE or HFS name syntax file name. HFS pathnames must begin with a dot (.) or slash (/) character and cannot exceed 1024 characters, including the dot or slashand the null character terminator. MPE filenames < 35 characters must be terminated with a null character or a carriage return.
26BACopy an ACD from a specified file. The item2 value specified must be specified using MPE or HFS name syntax file name. HFS pathnames must begin with a dot (.) or slash (/) character and cannot exceed 1024 characters, including the dot or slash and the null character terminator. MPE filenames < 35 characters must be terminated with a null character or a carriage return.
27UDSCopy an ACD from the specified unique file identifier (UFID). The item2 value specified must be a 20-byte structure containing the UFID obtained from the file system through the FLABELINFO and FFILEINFO intrinsics.
28ICopy an ACD from a previously opened file number. The item2 value specified must be a 16-bit integer containing the filenum of the file containing the ACD to be copied.
29ICopy an ACD from the specified logical device number (ldev). The item2 value specified must be a 16-bit integer value.
30BACopy an ACD from the specified device name. The item2 value specified must be a 1 to 8 character byte array.
31BAAdd ACD pairs. The item2 value specified must be an MPE or HFS name syntax file name. HFS pathnames must begin with a dot (.) or slash (/) character and cannot exceed 1024 characters, including the dot or slash and the null character terminator. MPE filenames < 35 characters must be terminated with a null character or a carriage return.
32BAReplace ACD pairs. The item2 value specified must be specified using either MPE or HFS name syntax file name. HFS pathnames must begin with a dot (.) or slash (/) character and cannot exceed 1024 characters, including the dot or slash and the null character terminator. MPE filenames < 35 characters must be terminated with a null character or a carriage return.
33BADelete ACD pairs. The item2 value specified must be either MPE or HFS name syntax file name. HFS pathnames must begin with a dot (.) or slash (/) character and cannot exceed 1024 characters, including the dot or slash. MPE filenames < 35 characters must be terminated with a null character or a carriage return.
50IFile class indicating the maximum access to be calculated and assigned in the class mask. The item2 value specified must be a 32-bit integer.

Operation Notes


The HPACDPUT intrinsic allows programmatic adjustment, creation, and deletion of ACDs and their security provisions. The intrinsic is used to create, copy, and delete an ACD and to add, replace, modify, and delete pairs within an ACD.

Related Information


Intrinsics HPACDINFO, HPFOPEN
CommandsALTSEC, COPY, PASSWORD, RELEASE, SECURE, STORE, RESTORE
Manuals MPE/iX Commands Reference Manual




HPACDINFO


HPCALENDAR