add directory Ref-docs
This commit is contained in:
42
Ref-docs/syscalls/syscalls_21.html
Normal file
42
Ref-docs/syscalls/syscalls_21.html
Normal file
@@ -0,0 +1,42 @@
|
||||
<html><!-- This HTML file has been created by texi2html 1.29
|
||||
from syscalls.texi on 4 June 1994 -->
|
||||
|
||||
<TITLE>Syscall specifications of Linux - mknod</TITLE>
|
||||
<P>Go to the <A HREF="syscalls_20.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_20.html">previous</A>, <A HREF="syscalls_22.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_22.html">next</A> section.<P>
|
||||
<H2><A NAME="SEC21" HREF="syscalls_toc.html#SEC21" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC21">mknod</A></H2>
|
||||
<P>
|
||||
<H3>SYNOPSIS</H3>
|
||||
<P>
|
||||
<CODE>int mknod(const char *<VAR>path</VAR>, mode_t <VAR>mode</VAR>, dev_t <VAR>dev</VAR>);</CODE>
|
||||
<P>
|
||||
<H3>PARAMETERS</H3>
|
||||
<P>
|
||||
<VAR>path</VAR>: [in] points to the path of the new file.
|
||||
<P>
|
||||
<VAR>mode</VAR>: [in] specifies the kind of special file to create. (Do not
|
||||
use it to specify the access bits of the file.)
|
||||
<P>
|
||||
<VAR>dev</VAR>: [in] the major and minor numbers of the new device.
|
||||
<P>
|
||||
<H3>DESCRIPTION</H3>
|
||||
<P>
|
||||
Creates a special device file node. Only tasks with superuser privileges
|
||||
may use this call. The access bits of the new file are the same as those
|
||||
of the <CODE>umask</CODE> of the current task. If <VAR>mode</VAR> does not specify
|
||||
a special device file, then <VAR>dev</VAR> is ignored.
|
||||
<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 caracter that is outside the
|
||||
range [0,127].
|
||||
<LI><CODE>EPERM</CODE>: the calling process does not have superuser privileges.
|
||||
<LI><CODE>ENOTDIR</CODE>, <CODE>ENAMETOOLONG</CODE>, <CODE>ENOENT</CODE>,
|
||||
<CODE>EACCESS</CODE>, <CODE>ELOOP</CODE>, <CODE>EIO</CODE>, <CODE>ENOSPC</CODE>, <CODE>EDQUOT</CODE>,
|
||||
<CODE>EROFS</CODE>, <CODE>EEXIST</CODE> and <CODE>EFAULT</CODE>.
|
||||
</UL>
|
||||
<P>
|
||||
<P>Go to the <A HREF="syscalls_20.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_20.html">previous</A>, <A HREF="syscalls_22.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_22.html">next</A> section.<P>
|
||||
Reference in New Issue
Block a user