⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syscalls_20.html

📁 Linux系统调用
💻 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://personal.xfol.com/%7erezaie/syscall/syscalls_19.html">previous</A>, <A HREF="syscalls_21.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_21.html">next</A> section.<P>
<H2><A NAME="SEC20" HREF="syscalls_toc.html#SEC20" tppabs="http://personal.xfol.com/%7erezaie/syscall/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://personal.xfol.com/%7erezaie/syscall/syscalls_19.html">previous</A>, <A HREF="syscalls_21.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_21.html">next</A> section.<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -