function.posix-mkfifo.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 101 行

HTML
101
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Create a fifo special file (a named pipe)</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.posix-kill.html">posix_kill</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.posix-mknod.html">posix_mknod</a></div> <div class="up"><a href="ref.posix.html">POSIX Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.posix-mkfifo" class="refentry"> <div class="refnamediv">  <h1 class="refname">posix_mkfifo</h1>  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">posix_mkfifo</span> &mdash; <span class="dc-title">Create a fifo special file (a named pipe)</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>posix_mkfifo</b></b></span>    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$pathname</tt></span>   , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$mode</tt></span>   )</div>  <p class="para rdfs-comment">   <b>posix_mkfifo()</b> creates a special   <i>FIFO</i> file which exists in the file system and acts as   a bidirectional communication endpoint for processes.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">pathname</tt></i></span>     <dd>      <p class="para">       Path to the <i>FIFO</i> file.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">mode</tt></i></span>     <dd>      <p class="para">       The second parameter <i><tt class="parameter">mode</tt></i> has to be given in       octal notation (e.g. 0644). The permission of the newly created       <i>FIFO</i> also depends on the setting of the current       <a href="function.umask.html" class="function">umask()</a>. The permissions of the created file are       (mode &amp; ~umask).      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 notes">  <h3 class="title">Notes</h3>  <blockquote><p><b class="note">Note</b>: <span class="simpara">When <a href="features.safe-mode.html" class="link">safe mode</a> is enabled, PHP checks whether the files or directories being operated upon have the same UID (owner) as the script that is being executed.</span></p></blockquote> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.posix-kill.html">posix_kill</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.posix-mknod.html">posix_mknod</a></div> <div class="up"><a href="ref.posix.html">POSIX Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

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