Files
oldlinux-files/Ref-docs/syscalls/syscalls_20.html
2024-02-19 00:21:47 -05:00

38 lines
1.7 KiB
HTML

<html><!-- This HTML file has been created by texi2html 1.29
from syscalls.texi on 4 June 1994 -->
<TITLE>Syscall specifications of Linux - mkdir</TITLE>
<P>Go to the <A HREF="syscalls_19.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_19.html">previous</A>, <A HREF="syscalls_21.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_21.html">next</A> section.<P>
<H2><A NAME="SEC20" HREF="syscalls_toc.html#SEC20" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC20">mkdir</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int mkdir(const char *<VAR>path</VAR>, mode_t <VAR>mode</VAR>);</CODE>
<P>
<H3>PARAMETERS</H3>
<P>
<VAR>path</VAR>: [in] points to the path of the new directory.
<P>
<VAR>mode</VAR>: [in] the access bits of the new directory.
<H3>DESCRIPTION</H3>
<P>
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.
<P>
<H3>RETURN VALUE</H3>
<P>
On success zero is returned. On error, -1 is returned and <CODE>errno</CODE> is
set to one of the following values:
<P>
<UL>
<LI><CODE>EINVAL</CODE>: the path contains a character not in the ASCII
[0,127] range.
<LI><CODE>ENOTDIR</CODE>, <CODE>ENAMETOOLONG</CODE>, <CODE>ENOENT</CODE>,
<CODE>EACCESS</CODE>, <CODE>ELOOP</CODE>, <CODE>EPERM</CODE>, <CODE>EROFS</CODE>, <CODE>EEXIST</CODE>,
<CODE>ENOSPC</CODE>, <CODE>EDQUOT</CODE>, <CODE>EIO</CODE> and <CODE>EFAULT</CODE>.
</UL>
<P>
<P>Go to the <A HREF="syscalls_19.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_19.html">previous</A>, <A HREF="syscalls_21.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_21.html">next</A> section.<P>