mkdir(3)
DESCRIPTION
Creates a directory at path with the supplied permission bits. Parent directories must already exist.
SYNOPSIS
#include <sys/stat.h> int mkdir(const char *path, mode_t mode);
RETURN VALUE
- Returns zero, or -1 and sets errno.
ERRORS
-EFAULT- Path is null or cannot be read.
-EINVAL- Path resolution fails.
-EEXIST- The path already exists.
-ENOENT- The parent directory does not exist.
-ENOSPC- The filesystem has no free entry.
NOTES
Only the low permission bits in mode are retained by tmpfs.