summaryrefslogtreecommitdiff
path: root/Base/usr/share/man/man2/mkdir.md
blob: 293b13d3fecff69117127a99fdf3ce3d9411e9b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Name

mkdir - create a directory

## Synopsis

```**c++
#include <sys/stat.h>

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

## Description

Create a new empty directory at the given *path* using the given *mode*.

## Return value

If the directory was created successfully, `mkdir()` returns 0. Otherwise,
it returns -1 and sets `errno` to describe the error.

## See also

* [`mkdir`(1)](help://man/1/mkdir)