This commit is contained in:
fofolee
2019-04-08 23:22:26 +08:00
commit 7ca94f1141
5960 changed files with 530244 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Create a fifo special file (a named pipe)</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.posix-mkfifo" class="refentry">
<div class="refnamediv">
<h1 class="refname">posix_mkfifo</h1>
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</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" id="refsect1-function.posix-mkfifo-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>posix_mkfifo</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$pathname</code></span>
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code></span>
) : <span class="type">bool</span></div>
<p class="para rdfs-comment">
<span class="function"><strong>posix_mkfifo()</strong></span> creates a special
<em>FIFO</em> file which exists in the file system and acts as
a bidirectional communication endpoint for processes.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.posix-mkfifo-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">pathname</code></dt>
<dd>
<p class="para">
Path to the <em>FIFO</em> file.
</p>
</dd>
<dt>
<code class="parameter">mode</code></dt>
<dd>
<p class="para">
The second parameter <code class="parameter">mode</code> has to be given in
octal notation (e.g. 0644). The permission of the newly created
<em>FIFO</em> also depends on the setting of the current
<span class="function"><a href="umask.html" class="function">umask()</a></span>. The permissions of the created file are
(mode &amp; ~umask).
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.posix-mkfifo-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
成功时返回 <strong><code>TRUE</code></strong> 或者在失败时返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 notes" id="refsect1-function.posix-mkfifo-notes">
<h3 class="title">注释</h3>
<blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">当启用
<a href="features.safe_mode.html" class="link">安全模式</a>时,
PHP 会检查被操作的文件或目录是否与被执行的脚本有相同的 UID所有者</span></p></blockquote>
</div>
</div></div></div></body></html>