int mkdir(int dir_fd, const char *path, int path_len, int mode);
This syscall creates directories in the passed path.
The syscall returns 0
or -1
on failure, with the following errno:
EACCES
: Bad memory addresses.
EINVAL
: The passed path length is way too big.
EIO
: Internal error.