ladybird/Base/usr/share/man/man2/mkdir.md
Sergey Bugaev fed96f455d Base: Write some initial man pages
It ain't much, but it's honest work!
2019-09-28 18:29:42 +02:00

20 lines
365 B
Markdown

## 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.