Go to the previous, next section.

mkdir

SYNOPSIS

int mkdir(const char *path, mode_t mode);

PARAMETERS

path: [in] points to the path of the new directory.

mode: [in] the access bits of the new directory.

DESCRIPTION

Creates a new directory. The uid of the new directory is the same as the effective uid of the calling task. The gid of the new directory is the same as its parent directory.

RETURN VALUE

On success zero is returned. On error, -1 is returned and errno is set to one of the following values:

Go to the previous, next section.