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

📄 ftw.h.html

📁 unix 下的C开发手册,还用详细的例程。
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>&lt;ftw.h&gt;</title></head><body bgcolor=white><center><font size=2>The Single UNIX &reg; Specification, Version 2<br>Copyright &copy; 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_005_377">&nbsp;</a>NAME</h4><blockquote>ftw.h - file tree traversal</blockquote><h4><a name = "tag_000_005_378">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;ftw.h&gt;</code></pre></blockquote><h4><a name = "tag_000_005_379">&nbsp;</a>DESCRIPTION</h4><blockquote>The<i>&lt;ftw.h&gt;</i>header defines the<b>FTW</b>structure that includes at least the following members:<pre><code>int  baseint  level</code></pre><p>The<i>&lt;ftw.h&gt;</i>header defines macros for use as values of the third argument to theapplication-supplied function that is passed as the second argument to<i><a href="ftw.html">ftw()</a></i>and<i><a href="nftw.html">nftw</i>()</a>:<dl compact><dt>FTW_F<dd>File.<dt>FTW_D<dd>Directory.<dt>FTW_DNR<dd>Directory without read permission.<dt>FTW_DP<dd>Directory with subdirectories visited.<dt>FTW_NS<dd>Unknown type, <i>stat</i>() failed.<dt>FTW_SL<dd>Symbolic link.<dt>FTW_SLN<dd>Symbolic link that names a non-existent file.</dl><p>The<i>&lt;ftw.h&gt;</i>header defines macros for use as values of the fourth argument to<i><a href="nftw.html">nftw()</a></i>:<dl compact><dt>FTW_PHYS<dd>Physical walk, does not follow symbolic links.  Otherwise,<i><a href="nftw.html">nftw()</a></i>will follow links but will not walk down any path that crosses itself.<dt>FTW_MOUNT<dd>The walk will not cross a mount point.<dt>FTW_DEPTH<dd>All subdirectories will be visited before the directory itself.<dt>FTW_CHDIR<dd>The walk will change to each directory before reading it.</dl><p>The following are declared as functions and may also be defined as macros.Function prototypes must be provided for use with an ISO Ccompiler.<pre><code>int <a href="ftw.html">ftw</a>(const char *,    int (*)(const char *, const struct stat *, int), int);int <a href="nftw.html">nftw</a>(const char *, int (*)    (const char *, const struct stat *, int, struct FTW*),    int, int);</code></pre><p>The<i>&lt;ftw.h&gt;</i>header defines the<b>stat</b>structure and the symbolic names for<b>st_mode</b>and the file type test macros as described in<i><a href="sysstat.h.html">&lt;sys/stat.h&gt;</a></i>.<p>Inclusion of the<i>&lt;ftw.h&gt;</i>header may also make visible all symbols from<i><a href="sysstat.h.html">&lt;sys/stat.h&gt;</a></i>.</blockquote><h4><a name = "tag_000_005_380">&nbsp;</a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_005_381">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_005_382">&nbsp;</a>SEE ALSO</h4><blockquote><i><a href="ftw.html">ftw()</a></i>,<i><a href="nftw.html">nftw()</a></i>,<i><a href="sysstat.h.html">&lt;sys/stat.h&gt;</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX &reg; is a registered Trademark of The Open Group.<br>Copyright &copy; 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>

⌨️ 快捷键说明

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