107 lines
2.8 KiB
HTML
107 lines
2.8 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
|
<meta http-equiv="Content-Type" content=
|
|
"text/html; charset=utf-8">
|
|
<title>mkfifo - Make FIFO special files</title>
|
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</HEAD>
|
|
<body bgcolor="#FFFFFF">
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
|
|
<p></p>
|
|
|
|
<h2>mkfifo - Make FIFO special files</h2>
|
|
|
|
<p><strong>Synopsis</strong></p>
|
|
|
|
<p><strong>mkfifo [-p] [-m</strong> <em>mode</em><strong>]</strong>
|
|
<em>file ...</em></p>
|
|
|
|
<p><strong>Description</strong></p>
|
|
|
|
<p>The <strong>mkfifo</strong> utility creates the FIFO special files named
|
|
as operands, in the order specified, using a default mode that
|
|
allows read and write permission for the owner, group, and others (0666) as
|
|
modified by the current file creation mask.</p>
|
|
|
|
<p>The user must have write permission in the parent directory.</p>
|
|
|
|
<p><strong>Options</strong></p>
|
|
|
|
<dl>
|
|
<dt><strong>-m</strong> <em>mode</em></dt>
|
|
|
|
<dd>Set the file permission bits of the FIFO special file to
|
|
the specified <em>mode</em>. The mode argument can be in any of the
|
|
formats supported by the <a href="chmod.htm">chmod</a> command. If
|
|
a symbolic mode is specified, the operation characters + and - are
|
|
interpreted relative to an initial mode of "a=rw".</dd>
|
|
|
|
<dt><strong>-p</strong></dt>
|
|
|
|
<dd>Create intermediate directories as required. If this option is
|
|
not specified, the full path prefix of each <em>file</em> must already
|
|
exist. Intermediate directories are created with a default mode that allows
|
|
read, write, and search permission for the owner, group, and others (0777)
|
|
as modified by the current file creation mask.</dd>
|
|
</dl>
|
|
|
|
<p><strong>Operands</strong></p>
|
|
|
|
<p>Each <em>file</em> is the path name of FIFO special file.</p>
|
|
|
|
<p><strong>Exit Status</strong></p>
|
|
|
|
<ul>
|
|
<li>0 if successful</li>
|
|
|
|
<li>>0 if an error occurred.</li>
|
|
</ul>
|
|
|
|
<p><strong>Related information</strong></p>
|
|
|
|
<ul>
|
|
<li><a href="chmod.htm">chmod - Change file modes
|
|
(permissions)</a></li>
|
|
|
|
<li><a href="mkdir.htm">mkdir - Make directories</a></li>
|
|
|
|
<li><a href="umask.htm">umask - Get or set the file mode creation
|
|
mask</a></li>
|
|
</ul>
|
|
|
|
<strong>Examples</strong>
|
|
|
|
<ol>
|
|
<li>Create the FIFO special files "fifo1" and "fifo1":
|
|
<pre>
|
|
mkfifo fifo1 fifo2
|
|
</pre></li>
|
|
|
|
<li>Create the the FIFO special file "fifo1" and set the
|
|
permissons to read, write and execute for the owner:
|
|
|
|
<pre>
|
|
mkfifo -m 700 myfifo
|
|
</pre></li>
|
|
|
|
<li>Create the the FIFO special file "/dir1/dir2/fifo1" and each
|
|
directory in the path that does not exist:
|
|
|
|
<pre>
|
|
mkfifo -p /dir1/dir2/fifo1
|
|
</pre></li>
|
|
|
|
</ol>
|
|
|
|
<p></p>
|
|
|
|
<!-- end ibmbody========================================================= -->
|
|
</body>
|
|
</html>
|
|
|