|
83 | 83 | </varlistentry>
|
84 | 84 | </variablelist>
|
85 | 85 | <variablelist role="constant_list">
|
| 86 | + <varlistentry xml:id="constant.glob-available-flags"> |
| 87 | + <term> |
| 88 | + <constant>GLOB_AVAILABLE_FLAGS</constant> |
| 89 | + (<type>int</type>) |
| 90 | + </term> |
| 91 | + <listitem> |
| 92 | + <simpara> |
| 93 | + All <constant>GLOB_<replaceable>*</replaceable></constant> flags combined. |
| 94 | + Equivalent to <literal>0</literal> | <constant>GLOB_BRACE</constant> | |
| 95 | + <constant>GLOB_MARK</constant> | <constant>GLOB_NOSORT</constant> | |
| 96 | + <constant>GLOB_NOCHECK</constant> | <constant>GLOB_NOESCAPE</constant> | |
| 97 | + <constant>GLOB_ERR</constant> | <constant>GLOB_ONLYDIR</constant> |
| 98 | + </simpara> |
| 99 | + </listitem> |
| 100 | + </varlistentry> |
86 | 101 | <varlistentry xml:id="constant.glob-brace">
|
87 | 102 | <term>
|
88 | 103 | <constant>GLOB_BRACE</constant>
|
|
112 | 127 | </simpara>
|
113 | 128 | </listitem>
|
114 | 129 | </varlistentry>
|
115 |
| - <varlistentry xml:id="constant.glob-onlydir"> |
116 |
| - <term> |
117 |
| - <constant>GLOB_ONLYDIR</constant> |
118 |
| - (<type>int</type>) |
119 |
| - </term> |
120 |
| - <listitem> |
121 |
| - <simpara> |
122 |
| - Return only directory entries which match the pattern |
123 |
| - </simpara> |
124 |
| - </listitem> |
125 |
| - </varlistentry> |
126 | 130 | <varlistentry xml:id="constant.glob-mark">
|
127 | 131 | <term>
|
128 | 132 | <constant>GLOB_MARK</constant>
|
|
134 | 138 | </simpara>
|
135 | 139 | </listitem>
|
136 | 140 | </varlistentry>
|
137 |
| - <varlistentry xml:id="constant.glob-nosort"> |
| 141 | + <varlistentry xml:id="constant.glob-nocheck"> |
138 | 142 | <term>
|
139 |
| - <constant>GLOB_NOSORT</constant> |
| 143 | + <constant>GLOB_NOCHECK</constant> |
140 | 144 | (<type>int</type>)
|
141 | 145 | </term>
|
142 | 146 | <listitem>
|
143 | 147 | <simpara>
|
144 |
| - Return files as they appear in the directory (no sorting). |
145 |
| - When this flag is not used, the pathnames are sorted alphabetically |
| 148 | + Return the search pattern if no files matching it were found |
146 | 149 | </simpara>
|
147 | 150 | </listitem>
|
148 | 151 | </varlistentry>
|
149 |
| - <varlistentry xml:id="constant.glob-nocheck"> |
| 152 | + <varlistentry xml:id="constant.glob-noescape"> |
150 | 153 | <term>
|
151 |
| - <constant>GLOB_NOCHECK</constant> |
| 154 | + <constant>GLOB_NOESCAPE</constant> |
152 | 155 | (<type>int</type>)
|
153 | 156 | </term>
|
154 | 157 | <listitem>
|
155 | 158 | <simpara>
|
156 |
| - Return the search pattern if no files matching it were found |
| 159 | + Backslashes do not quote metacharacters |
157 | 160 | </simpara>
|
158 | 161 | </listitem>
|
159 | 162 | </varlistentry>
|
160 |
| - <varlistentry xml:id="constant.glob-noescape"> |
| 163 | + <varlistentry xml:id="constant.glob-nosort"> |
161 | 164 | <term>
|
162 |
| - <constant>GLOB_NOESCAPE</constant> |
| 165 | + <constant>GLOB_NOSORT</constant> |
163 | 166 | (<type>int</type>)
|
164 | 167 | </term>
|
165 | 168 | <listitem>
|
166 | 169 | <simpara>
|
167 |
| - Backslashes do not quote metacharacters |
| 170 | + Return files as they appear in the directory (no sorting). |
| 171 | + When this flag is not used, the pathnames are sorted alphabetically |
168 | 172 | </simpara>
|
169 | 173 | </listitem>
|
170 | 174 | </varlistentry>
|
171 |
| - <varlistentry xml:id="constant.glob-available-flags"> |
| 175 | + <varlistentry xml:id="constant.glob-onlydir"> |
172 | 176 | <term>
|
173 |
| - <constant>GLOB_AVAILABLE_FLAGS</constant> |
| 177 | + <constant>GLOB_ONLYDIR</constant> |
174 | 178 | (<type>int</type>)
|
175 | 179 | </term>
|
176 | 180 | <listitem>
|
177 | 181 | <simpara>
|
178 |
| - All <constant>GLOB_<replaceable>*</replaceable></constant> flags combined. |
179 |
| - Equivalent to <literal>0</literal> | <constant>GLOB_BRACE</constant> | |
180 |
| - <constant>GLOB_MARK</constant> | <constant>GLOB_NOSORT</constant> | |
181 |
| - <constant>GLOB_NOCHECK</constant> | <constant>GLOB_NOESCAPE</constant> | |
182 |
| - <constant>GLOB_ERR</constant> | <constant>GLOB_ONLYDIR</constant> |
| 182 | + Return only directory entries which match the pattern |
183 | 183 | </simpara>
|
184 | 184 | </listitem>
|
185 | 185 | </varlistentry>
|
|
0 commit comments