pdmkdir Subroutine

Purpose

Creates or sets partitioned directories.

Syntax

#include <sys/secconf.h>
int pdmkdir (Path, Mode, Flag)
char *Path;
mode_t Mode;
int Flag;

Description

The pdmkdir subroutine creates a new partitioned directory or changes the type of the directory.

The process must be in real mode for the pdmkdir subroutine to succeed.

To run the pdmkdir subroutine, the PDMKDIR authorization is required to override the Discretionary Access Control (DAC), the Mandatory Access Control (MAC), and the Mandatory Integrity Control (MIC) restrictions. Otherwise, the pdmkdir function can be used by the non-PDMKDIR-authorized users subject to the DAC, MAC, and MIC restrictions.

The nested partitioned directory is not supported by this subroutine because there is no advantage of having nested partitioned directory.

Parameters

Item Description
Path Specifies the name of the directory to be created or to be modified.
Mode Specified the mask for the read, write, and execute flags for owners, group, and others. The Mode parameter specifies directory permissions and attributes.
Flag Specifies the function to be performed by the pdmkdir subroutine. The flag parameter can be one of the following values:
MKPDIR
Creates a partitioned directory.
SETPDIR
Sets a directory to partitioned directory. The existing subdirectories do not become partitioned subdirectories and the existing file objects in this directory are not accessible in virtual mode.

Return Values

Upon successful completion, the pdmkdir subroutine returns a value of zero. Otherwise, it returns a value of nonzero.

Files

The sys/secconf.h file.