Format
>>-mkdir--pathname--mode---------------------------------------><
Purpose
mkdir invokes the mkdir callable service to create a new,
empty directory.
Parameters
- pathname
- A path name for the directory.
- mode
- A three- or four-digit number, corresponding to the access permission
bits. Each digit must be in the range 0–7,
and at least three digits must be specified. For more information
on permissions, see Setting permissions for files and directories.
Usage
- The file permission bits specified in mode are modified
by the file creation mask of the calling process (see umask),
and are then used to set the file permission bits of the new directory.
- The new directory's owner ID is set to the effective user
ID (UID) of the calling process.
- The mkdir service sets the access, change, and modification times
for the new directory. It also sets the change and modification times
for the directory that contains the new directory.
Examples
In the following example, assume that
pathname and
mode were
assigned a value earlier in the exec:
"mkdir (pathname)" mode