Digital UNIX Diffs - mkdir(5) Digital UNIX Diffs - mkdir(5)NAMEmkdir - Creates a directory
SYNOPSIS
#include <sys/stat.h>
#include <sys/types.h>
int mkdir (
const char *path,
mode_t mode );
PARAMETERS
Specifies the name of the new directory. Specifies the mask for the
read, write, and execute (RWX) flags for owner, group, and others.
DIFFERENCESvms-files(5): OpenVMS File System Differences
The syntax of filename path are different on UNIX and OpenVMS. On
OpenVMS, either a UNIX or VMS style directory name may be used.
Setting mode to 0777 on OpenVMS results in the default OpenVMS file
protections being used provided that you have not defined a default
mask using umask(2). This feature is not available on UNIX.
UNIX requires that parent directory of the new directory being create
exist. OpenVMS will create a hierarchy of directories.
OpenVMS does not set delete privilege for the directory even if mode
calls for it. You must use a separate chmod(2) call to set the delete
privilege. UNIX sets the delete protection based on mode.
OpenVMS sets the UIC (groupID and userID in UNIX terms) to that of the
current process. UNIX uses the process' effective userID and the par‐
ent directories groupID. This can be set to various other combinations
by specifying mode values not supported on OpenVMS.
RELATED INFORMATION
Functions: mkdir(2)CATEGORY INDEXvms-files(5)
delim off
Digital UNIX Diffs - mkdir(5)