pathconf.html
来自「IEEE 1003.1-2003, Single Unix Specificat」· HTML 代码 · 共 585 行 · 第 1/2 页
HTML
585 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2003 The Open Group, All Rights Reserved --><title>fpathconf</title></head><body bgcolor="white"><basefont size="3"> <a name="fpathconf"></a> <a name="tag_03_178"></a><!-- fpathconf --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright © 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_03_178_01"></a>NAME</h4><blockquote>fpathconf, pathconf - get configurable pathname variables</blockquote><h4><a name="tag_03_178_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><p><code><tt>#include <<a href="../basedefs/unistd.h.html">unistd.h</a>><br><br> long fpathconf(int</tt> <i>fildes</i><tt>, int</tt> <i>name</i><tt>);<br> long pathconf(const char *</tt><i>path</i><tt>, int</tt> <i>name</i><tt>);<br></tt></code></p></blockquote><h4><a name="tag_03_178_03"></a>DESCRIPTION</h4><blockquote><p>The <i>fpathconf</i>() and <i>pathconf</i>() functions shall determine the current value of a configurable limit or option(<i>variable</i>) that is associated with a file or directory.</p><p>For <i>pathconf</i>(), the <i>path</i> argument points to the pathname of a file or directory.</p><p>For <i>fpathconf</i>(), the <i>fildes</i> argument is an open file descriptor.</p><p>The <i>name</i> argument represents the variable to be queried relative to that file or directory. Implementations shall supportall of the variables listed in the following table and may support others. The variables in the following table come from <a href="../basedefs/limits.h.html"><i><limits.h></i></a> or <a href="../basedefs/unistd.h.html"><i><unistd.h></i></a> and thesymbolic constants, defined in <a href="../basedefs/unistd.h.html"><i><unistd.h></i></a>, are the corresponding values usedfor <i>name</i>.</p><center><table border="1" cellpadding="3" align="center"><tr valign="top"><th align="center"><p class="tent"><b>Variable</b></p></th><th align="center"><p class="tent"><b>Value of <i>name</i></b></p></th><th align="center"><p class="tent"><b>Requirements</b></p></th></tr><tr valign="top"><td align="left"><p class="tent">{FILESIZEBITS}</p></td><td align="left"><p class="tent">_PC_FILESIZEBITS</p></td><td align="left"><p class="tent">3,4</p></td></tr><tr valign="top"><td align="left"><p class="tent">{LINK_MAX}</p></td><td align="left"><p class="tent">_PC_LINK_MAX</p></td><td align="left"><p class="tent">1</p></td></tr><tr valign="top"><td align="left"><p class="tent">{MAX_CANON}</p></td><td align="left"><p class="tent">_PC_MAX_CANON</p></td><td align="left"><p class="tent">2</p></td></tr><tr valign="top"><td align="left"><p class="tent">{MAX_INPUT}</p></td><td align="left"><p class="tent">_PC_MAX_INPUT</p></td><td align="left"><p class="tent">2</p></td></tr><tr valign="top"><td align="left"><p class="tent">{NAME_MAX}</p></td><td align="left"><p class="tent">_PC_NAME_MAX</p></td><td align="left"><p class="tent">3,4</p></td></tr><tr valign="top"><td align="left"><p class="tent">{PATH_MAX}</p></td><td align="left"><p class="tent">_PC_PATH_MAX</p></td><td align="left"><p class="tent">4,5</p></td></tr><tr valign="top"><td align="left"><p class="tent">{PIPE_BUF}</p></td><td align="left"><p class="tent">_PC_PIPE_BUF</p></td><td align="left"><p class="tent">6</p></td></tr><tr valign="top"><td align="left"><p class="tent">{POSIX_ALLOC_SIZE_MIN}</p></td><td align="left"><p class="tent">_PC_ALLOC_SIZE_MIN</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">{POSIX_REC_INCR_XFER_SIZE}</p></td><td align="left"><p class="tent">_PC_REC_INCR_XFER_SIZE</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">{POSIX_REC_MAX_XFER_SIZE}</p></td><td align="left"><p class="tent">_PC_REC_MAX_XFER_SIZE</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">{POSIX_REC_MIN_XFER_SIZE}</p></td><td align="left"><p class="tent">_PC_REC_MIN_XFER_SIZE</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">{POSIX_REC_XFER_ALIGN}</p></td><td align="left"><p class="tent">_PC_REC_XFER_ALIGN</p></td><td align="left"><p class="tent"> </p></td></tr><tr valign="top"><td align="left"><p class="tent">{SYMLINK_MAX}</p></td><td align="left"><p class="tent">_PC_SYMLINK_MAX</p></td><td align="left"><p class="tent">4,9</p></td></tr><tr valign="top"><td align="left"><p class="tent">_POSIX_CHOWN_RESTRICTED</p></td><td align="left"><p class="tent">_PC_CHOWN_RESTRICTED</p></td><td align="left"><p class="tent">7</p></td></tr><tr valign="top"><td align="left"><p class="tent">_POSIX_NO_TRUNC</p></td><td align="left"><p class="tent">_PC_NO_TRUNC</p></td><td align="left"><p class="tent">3,4</p></td></tr><tr valign="top"><td align="left"><p class="tent">_POSIX_VDISABLE</p></td><td align="left"><p class="tent">_PC_VDISABLE</p></td><td align="left"><p class="tent">2</p></td></tr><tr valign="top"><td align="left"><p class="tent">_POSIX_ASYNC_IO</p></td><td align="left"><p class="tent">_PC_ASYNC_IO</p></td><td align="left"><p class="tent">8</p></td></tr><tr valign="top"><td align="left"><p class="tent">_POSIX_PRIO_IO</p></td><td align="left"><p class="tent">_PC_PRIO_IO</p></td><td align="left"><p class="tent">8</p></td></tr><tr valign="top"><td align="left"><p class="tent">_POSIX_SYNC_IO</p></td><td align="left"><p class="tent">_PC_SYNC_IO</p></td><td align="left"><p class="tent">8</p></td></tr></table></center>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?