| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "ftw" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "ftw, nftw - file tree walk" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>ftw.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 81 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "" |
| 84 |
"B<int nftw(const char *>I<dirpath>B<,>\n" |
| 85 |
"B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb,>\n" |
| 86 |
"B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<))>\n" |
| 87 |
"B< *>I<fn,>\n" |
| 88 |
"B< int >I<nopenfd>B<, int >I<flags>B<);>\n" |
| 89 |
msgstr "" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 93 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 94 |
#, no-wrap |
| 95 |
msgid "" |
| 96 |
"B<[[deprecated]]>\n" |
| 97 |
"B<int ftw(const char *>I<dirpath>B<,>\n" |
| 98 |
"B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n" |
| 99 |
"B< int >I<typeflag>B<))>\n" |
| 100 |
"B< *>I<fn,>\n" |
| 101 |
"B< int >I<nopenfd>B<);>\n" |
| 102 |
msgstr "" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
msgid "" |
| 108 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 109 |
msgstr "" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
msgid "B<nftw>():" |
| 115 |
msgstr "" |
| 116 |
|
| 117 |
#. type: Plain text |
| 118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 120 |
#, no-wrap |
| 121 |
msgid " _XOPEN_SOURCE E<gt>= 500\n" |
| 122 |
msgstr "" |
| 123 |
|
| 124 |
#. type: SH |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "DESCRIPTION" |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 133 |
#: opensuse-tumbleweed |
| 134 |
msgid "" |
| 135 |
"B<nftw>() walks through the directory tree that is located under the " |
| 136 |
"directory I<dirpath>, and calls I<fn>() once for each entry in the tree. " |
| 137 |
"By default, directories are handled before the files and subdirectories they " |
| 138 |
"contain (preorder traversal)." |
| 139 |
msgstr "" |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 144 |
msgid "" |
| 145 |
"To avoid using up all of the calling process's file descriptors, I<nopenfd> " |
| 146 |
"specifies the maximum number of directories that B<nftw>() will hold open " |
| 147 |
"simultaneously. When the search depth exceeds this, B<nftw>() will become " |
| 148 |
"slower because directories have to be closed and reopened. B<nftw>() uses " |
| 149 |
"at most one file descriptor for each level in the directory tree." |
| 150 |
msgstr "" |
| 151 |
|
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 154 |
#: opensuse-tumbleweed |
| 155 |
msgid "" |
| 156 |
"For each entry found in the tree, B<nftw>() calls I<fn>() with four " |
| 157 |
"arguments: I<fpath>, I<sb>, I<typeflag>, and I<ftwbuf>. I<fpath> is the " |
| 158 |
"pathname of the entry, and is expressed either as a pathname relative to the " |
| 159 |
"calling process's current working directory at the time of the call to " |
| 160 |
"B<nftw>(), if I<dirpath> was expressed as a relative pathname, or as an " |
| 161 |
"absolute pathname, if I<dirpath> was expressed as an absolute pathname. " |
| 162 |
"I<sb> is a pointer to the I<stat> structure returned by a call to " |
| 163 |
"B<stat>(2) for I<fpath>." |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
msgid "" |
| 170 |
"The I<typeflag> argument passed to I<fn>() is an integer that has one of " |
| 171 |
"the following values:" |
| 172 |
msgstr "" |
| 173 |
|
| 174 |
#. type: TP |
| 175 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 176 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 177 |
#, no-wrap |
| 178 |
msgid "B<FTW_F>" |
| 179 |
msgstr "" |
| 180 |
|
| 181 |
#. type: Plain text |
| 182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 184 |
msgid "I<fpath> is a regular file." |
| 185 |
msgstr "" |
| 186 |
|
| 187 |
#. type: TP |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
#, no-wrap |
| 191 |
msgid "B<FTW_D>" |
| 192 |
msgstr "" |
| 193 |
|
| 194 |
#. type: Plain text |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "I<fpath> is a directory." |
| 198 |
msgstr "" |
| 199 |
|
| 200 |
#. type: TP |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
#, no-wrap |
| 204 |
msgid "B<FTW_DNR>" |
| 205 |
msgstr "" |
| 206 |
|
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
msgid "I<fpath> is a directory which can't be read." |
| 211 |
msgstr "" |
| 212 |
|
| 213 |
#. type: TP |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
#, no-wrap |
| 217 |
msgid "B<FTW_DP>" |
| 218 |
msgstr "" |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 222 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
msgid "" |
| 224 |
"I<fpath> is a directory, and B<FTW_DEPTH> was specified in I<flags>. (If " |
| 225 |
"B<FTW_DEPTH> was not specified in I<flags>, then directories will always be " |
| 226 |
"visited with I<typeflag> set to B<FTW_D>.) All of the files and " |
| 227 |
"subdirectories within I<fpath> have been processed." |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#. type: TP |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, no-wrap |
| 234 |
msgid "B<FTW_NS>" |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
msgid "" |
| 241 |
"The B<stat>(2) call failed on I<fpath>, which is not a symbolic link. The " |
| 242 |
"probable cause for this is that the caller had read permission on the parent " |
| 243 |
"directory, so that the filename I<fpath> could be seen, but did not have " |
| 244 |
"execute permission, so that the file could not be reached for B<stat>(2). " |
| 245 |
"The contents of the buffer pointed to by I<sb> are undefined." |
| 246 |
msgstr "" |
| 247 |
|
| 248 |
#. type: TP |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
#, no-wrap |
| 252 |
msgid "B<FTW_SL>" |
| 253 |
msgstr "" |
| 254 |
|
| 255 |
#. To obtain the definition of this constant from |
| 256 |
#. .IR <ftw.h> , |
| 257 |
#. either |
| 258 |
#. .B _BSD_SOURCE |
| 259 |
#. must be defined, or |
| 260 |
#. .BR _XOPEN_SOURCE |
| 261 |
#. must be defined with a value of 500 or more. |
| 262 |
#. type: Plain text |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
msgid "I<fpath> is a symbolic link, and B<FTW_PHYS> was set in I<flags>." |
| 266 |
msgstr "" |
| 267 |
|
| 268 |
#. type: TP |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
#, no-wrap |
| 272 |
msgid "B<FTW_SLN>" |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#. type: Plain text |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
msgid "" |
| 279 |
"I<fpath> is a symbolic link pointing to a nonexistent file. (This occurs " |
| 280 |
"only if B<FTW_PHYS> is not set.) In this case the I<sb> argument passed to " |
| 281 |
"I<fn>() contains information returned by performing B<lstat>(2) on the " |
| 282 |
"\"dangling\" symbolic link. (But see BUGS.)" |
| 283 |
msgstr "" |
| 284 |
|
| 285 |
#. type: Plain text |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
msgid "" |
| 289 |
"The fourth argument (I<ftwbuf>) that B<nftw>() supplies when calling " |
| 290 |
"I<fn>() is a pointer to a structure of type I<FTW>:" |
| 291 |
msgstr "" |
| 292 |
|
| 293 |
#. type: Plain text |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
#, no-wrap |
| 297 |
msgid "" |
| 298 |
"struct FTW {\n" |
| 299 |
" int base;\n" |
| 300 |
" int level;\n" |
| 301 |
"};\n" |
| 302 |
msgstr "" |
| 303 |
|
| 304 |
#. type: Plain text |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
msgid "" |
| 308 |
"I<base> is the offset of the filename (i.e., basename component) in the " |
| 309 |
"pathname given in I<fpath>. I<level> is the depth of I<fpath> in the " |
| 310 |
"directory tree, relative to the root of the tree (I<dirpath>, which has " |
| 311 |
"depth 0)." |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 316 |
#: opensuse-tumbleweed |
| 317 |
msgid "" |
| 318 |
"To stop the tree walk, I<fn>() returns a nonzero value; this value will " |
| 319 |
"become the return value of B<nftw>(). As long as I<fn>() returns 0, " |
| 320 |
"B<nftw>() will continue either until it has traversed the entire tree, in " |
| 321 |
"which case it will return zero, or until it encounters an error (such as a " |
| 322 |
"B<malloc>(3) failure), in which case it will return -1." |
| 323 |
msgstr "" |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
msgid "" |
| 329 |
"Because B<nftw>() uses dynamic data structures, the only safe way to exit " |
| 330 |
"out of a tree walk is to return a nonzero value from I<fn>(). To allow a " |
| 331 |
"signal to terminate the walk without causing a memory leak, have the handler " |
| 332 |
"set a global flag that is checked by I<fn>(). I<Don't> use B<longjmp>(3) " |
| 333 |
"unless the program is going to terminate." |
| 334 |
msgstr "" |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "" |
| 340 |
"The I<flags> argument of B<nftw>() is formed by ORing zero or more of the " |
| 341 |
"following flags:" |
| 342 |
msgstr "" |
| 343 |
|
| 344 |
#. type: TP |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
#, no-wrap |
| 348 |
msgid "B<FTW_ACTIONRETVAL> (since glibc 2.3.3)" |
| 349 |
msgstr "" |
| 350 |
|
| 351 |
#. type: Plain text |
| 352 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 353 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 354 |
msgid "" |
| 355 |
"If this glibc-specific flag is set, then B<nftw>() handles the return value " |
| 356 |
"from I<fn>() differently. I<fn>() should return one of the following " |
| 357 |
"values:" |
| 358 |
msgstr "" |
| 359 |
|
| 360 |
#. type: TP |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid "B<FTW_CONTINUE>" |
| 365 |
msgstr "" |
| 366 |
|
| 367 |
#. type: Plain text |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
msgid "Instructs B<nftw>() to continue normally." |
| 371 |
msgstr "" |
| 372 |
|
| 373 |
#. type: TP |
| 374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 375 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
#, no-wrap |
| 377 |
msgid "B<FTW_SKIP_SIBLINGS>" |
| 378 |
msgstr "" |
| 379 |
|
| 380 |
#. If \f[B]FTW_DEPTH\f[] |
| 381 |
#. is set, the entry's parent directory is processed next (with |
| 382 |
#. \f[I]flag\f[] set to \f[B]FTW_DP\f[]). |
| 383 |
#. type: Plain text |
| 384 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 385 |
#: opensuse-tumbleweed |
| 386 |
msgid "" |
| 387 |
"If I<fn>() returns this value, then siblings of the current entry will be " |
| 388 |
"skipped, and processing continues in the parent." |
| 389 |
msgstr "" |
| 390 |
|
| 391 |
#. type: TP |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
#, no-wrap |
| 395 |
msgid "B<FTW_SKIP_SUBTREE>" |
| 396 |
msgstr "" |
| 397 |
|
| 398 |
#. type: Plain text |
| 399 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 400 |
#: opensuse-tumbleweed |
| 401 |
msgid "" |
| 402 |
"If I<fn>() is called with an entry that is a directory (I<typeflag> is " |
| 403 |
"B<FTW_D>), this return value will prevent objects within that directory from " |
| 404 |
"being passed as arguments to I<fn>(). B<nftw>() continues processing with " |
| 405 |
"the next sibling of the directory." |
| 406 |
msgstr "" |
| 407 |
|
| 408 |
#. type: TP |
| 409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 411 |
#, no-wrap |
| 412 |
msgid "B<FTW_STOP>" |
| 413 |
msgstr "" |
| 414 |
|
| 415 |
#. type: Plain text |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
msgid "" |
| 419 |
"Causes B<nftw>() to return immediately with the return value B<FTW_STOP>." |
| 420 |
msgstr "" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 424 |
#: opensuse-tumbleweed |
| 425 |
msgid "" |
| 426 |
"Other return values could be associated with new actions in the future; " |
| 427 |
"I<fn>() should not return values other than those listed above." |
| 428 |
msgstr "" |
| 429 |
|
| 430 |
#. type: Plain text |
| 431 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 432 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 433 |
msgid "" |
| 434 |
"The feature test macro B<_GNU_SOURCE> must be defined (before including " |
| 435 |
"I<any> header files) in order to obtain the definition of " |
| 436 |
"B<FTW_ACTIONRETVAL> from I<E<lt>ftw.hE<gt>>." |
| 437 |
msgstr "" |
| 438 |
|
| 439 |
#. type: TP |
| 440 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 441 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 442 |
#, no-wrap |
| 443 |
msgid "B<FTW_CHDIR>" |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#. type: Plain text |
| 447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 448 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 449 |
msgid "" |
| 450 |
"If set, do a B<chdir>(2) to each directory before handling its contents. " |
| 451 |
"This is useful if the program needs to perform some action in the directory " |
| 452 |
"in which I<fpath> resides. (Specifying this flag has no effect on the " |
| 453 |
"pathname that is passed in the I<fpath> argument of I<fn>.)" |
| 454 |
msgstr "" |
| 455 |
|
| 456 |
#. type: TP |
| 457 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 458 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 459 |
#, no-wrap |
| 460 |
msgid "B<FTW_DEPTH>" |
| 461 |
msgstr "" |
| 462 |
|
| 463 |
#. type: Plain text |
| 464 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 465 |
#: opensuse-tumbleweed |
| 466 |
msgid "" |
| 467 |
"If set, do a post-order traversal, that is, call I<fn>() for the directory " |
| 468 |
"itself I<after> handling the contents of the directory and its " |
| 469 |
"subdirectories. (By default, each directory is handled I<before> its " |
| 470 |
"contents.)" |
| 471 |
msgstr "" |
| 472 |
|
| 473 |
#. type: TP |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
#, no-wrap |
| 477 |
msgid "B<FTW_MOUNT>" |
| 478 |
msgstr "" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"If set, stay within the same filesystem (i.e., do not cross mount points)." |
| 485 |
msgstr "" |
| 486 |
|
| 487 |
#. type: TP |
| 488 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 489 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 490 |
#, no-wrap |
| 491 |
msgid "B<FTW_PHYS>" |
| 492 |
msgstr "" |
| 493 |
|
| 494 |
#. type: Plain text |
| 495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 496 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 497 |
msgid "" |
| 498 |
"If set, do not follow symbolic links. (This is what you want.) If not set, " |
| 499 |
"symbolic links are followed, but no file is reported twice." |
| 500 |
msgstr "" |
| 501 |
|
| 502 |
#. type: Plain text |
| 503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 505 |
msgid "" |
| 506 |
"If B<FTW_PHYS> is not set, but B<FTW_DEPTH> is set, then the function " |
| 507 |
"I<fn>() is never called for a directory that would be a descendant of " |
| 508 |
"itself." |
| 509 |
msgstr "" |
| 510 |
|
| 511 |
#. type: SS |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
#, no-wrap |
| 515 |
msgid "ftw()" |
| 516 |
msgstr "" |
| 517 |
|
| 518 |
#. type: Plain text |
| 519 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 520 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 521 |
msgid "" |
| 522 |
"B<ftw>() is an older function that offers a subset of the functionality of " |
| 523 |
"B<nftw>(). The notable differences are as follows:" |
| 524 |
msgstr "" |
| 525 |
|
| 526 |
#. type: IP |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
#, no-wrap |
| 530 |
msgid "\\[bu]" |
| 531 |
msgstr "" |
| 532 |
|
| 533 |
#. type: Plain text |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
msgid "" |
| 537 |
"B<ftw>() has no I<flags> argument. It behaves the same as when B<nftw>() " |
| 538 |
"is called with I<flags> specified as zero." |
| 539 |
msgstr "" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 543 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 544 |
msgid "The callback function, I<fn>(), is not supplied with a fourth argument." |
| 545 |
msgstr "" |
| 546 |
|
| 547 |
#. type: Plain text |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
msgid "" |
| 551 |
"The range of values that is passed via the I<typeflag> argument supplied to " |
| 552 |
"I<fn>() is smaller: just B<FTW_F>, B<FTW_D>, B<FTW_DNR>, B<FTW_NS>, and " |
| 553 |
"(possibly) B<FTW_SL>." |
| 554 |
msgstr "" |
| 555 |
|
| 556 |
#. type: SH |
| 557 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 558 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 559 |
#, no-wrap |
| 560 |
msgid "RETURN VALUE" |
| 561 |
msgstr "" |
| 562 |
|
| 563 |
#. type: Plain text |
| 564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 565 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 566 |
msgid "These functions return 0 on success, and -1 if an error occurs." |
| 567 |
msgstr "" |
| 568 |
|
| 569 |
#. type: Plain text |
| 570 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 571 |
#: opensuse-tumbleweed |
| 572 |
msgid "" |
| 573 |
"If I<fn>() returns nonzero, then the tree walk is terminated and the value " |
| 574 |
"returned by I<fn>() is returned as the result of B<ftw>() or B<nftw>()." |
| 575 |
msgstr "" |
| 576 |
|
| 577 |
#. type: Plain text |
| 578 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 579 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 580 |
msgid "" |
| 581 |
"If B<nftw>() is called with the B<FTW_ACTIONRETVAL> flag, then the only " |
| 582 |
"nonzero value that should be used by I<fn>() to terminate the tree walk is " |
| 583 |
"B<FTW_STOP>, and that value is returned as the result of B<nftw>()." |
| 584 |
msgstr "" |
| 585 |
|
| 586 |
#. type: SH |
| 587 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 588 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 589 |
#, no-wrap |
| 590 |
msgid "ATTRIBUTES" |
| 591 |
msgstr "" |
| 592 |
|
| 593 |
#. type: Plain text |
| 594 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 595 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 596 |
msgid "" |
| 597 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 598 |
msgstr "" |
| 599 |
|
| 600 |
#. type: tbl table |
| 601 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 602 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 603 |
#, no-wrap |
| 604 |
msgid "Interface" |
| 605 |
msgstr "" |
| 606 |
|
| 607 |
#. type: tbl table |
| 608 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 609 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 610 |
#, no-wrap |
| 611 |
msgid "Attribute" |
| 612 |
msgstr "" |
| 613 |
|
| 614 |
#. type: tbl table |
| 615 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 616 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 617 |
#, no-wrap |
| 618 |
msgid "Value" |
| 619 |
msgstr "" |
| 620 |
|
| 621 |
#. type: tbl table |
| 622 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 623 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 624 |
#, no-wrap |
| 625 |
msgid ".na\n" |
| 626 |
msgstr "" |
| 627 |
|
| 628 |
#. type: tbl table |
| 629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 630 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 631 |
#, no-wrap |
| 632 |
msgid ".nh\n" |
| 633 |
msgstr "" |
| 634 |
|
| 635 |
#. type: TP |
| 636 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 637 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 638 |
#, no-wrap |
| 639 |
msgid "B<nftw>()" |
| 640 |
msgstr "" |
| 641 |
|
| 642 |
#. type: tbl table |
| 643 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 644 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 645 |
#, no-wrap |
| 646 |
msgid "Thread safety" |
| 647 |
msgstr "" |
| 648 |
|
| 649 |
#. type: tbl table |
| 650 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 651 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 652 |
#, no-wrap |
| 653 |
msgid "MT-Safe cwd" |
| 654 |
msgstr "" |
| 655 |
|
| 656 |
#. type: TP |
| 657 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 658 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 659 |
#, no-wrap |
| 660 |
msgid "B<ftw>()" |
| 661 |
msgstr "" |
| 662 |
|
| 663 |
#. type: tbl table |
| 664 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 665 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 666 |
#, no-wrap |
| 667 |
msgid "MT-Safe" |
| 668 |
msgstr "" |
| 669 |
|
| 670 |
#. type: SH |
| 671 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 672 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 673 |
#, no-wrap |
| 674 |
msgid "VERSIONS" |
| 675 |
msgstr "" |
| 676 |
|
| 677 |
#. type: Plain text |
| 678 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 679 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 680 |
msgid "" |
| 681 |
"In some implementations (e.g., glibc), B<ftw>() will never use B<FTW_SL>; " |
| 682 |
"on other systems B<FTW_SL> occurs only for symbolic links that do not point " |
| 683 |
"to an existing file; and again on other systems B<ftw>() will use B<FTW_SL> " |
| 684 |
"for each symbolic link. If I<fpath> is a symbolic link and B<stat>(2) " |
| 685 |
"failed, POSIX.1-2008 states that it is undefined whether B<FTW_NS> or " |
| 686 |
"B<FTW_SL> is passed in I<typeflag>. For predictable results, use B<nftw>()." |
| 687 |
msgstr "" |
| 688 |
|
| 689 |
#. type: SH |
| 690 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 691 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 692 |
#, no-wrap |
| 693 |
msgid "STANDARDS" |
| 694 |
msgstr "" |
| 695 |
|
| 696 |
#. type: Plain text |
| 697 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 698 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 699 |
msgid "POSIX.1-2008." |
| 700 |
msgstr "" |
| 701 |
|
| 702 |
#. type: SH |
| 703 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 704 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 705 |
#, no-wrap |
| 706 |
msgid "HISTORY" |
| 707 |
msgstr "" |
| 708 |
|
| 709 |
#. type: Plain text |
| 710 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 711 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 712 |
msgid "POSIX.1-2001, SVr4, SUSv1. POSIX.1-2008 marks it as obsolete." |
| 713 |
msgstr "" |
| 714 |
|
| 715 |
#. type: Plain text |
| 716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 717 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 718 |
msgid "glibc 2.1. POSIX.1-2001, SUSv1." |
| 719 |
msgstr "" |
| 720 |
|
| 721 |
#. type: Plain text |
| 722 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 723 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 724 |
msgid "POSIX.1-2001, SUSv1." |
| 725 |
msgstr "" |
| 726 |
|
| 727 |
#. type: SH |
| 728 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 729 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 730 |
#, no-wrap |
| 731 |
msgid "NOTES" |
| 732 |
msgstr "" |
| 733 |
|
| 734 |
#. type: Plain text |
| 735 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 736 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 737 |
msgid "" |
| 738 |
"POSIX.1-2008 notes that the results are unspecified if I<fn> does not " |
| 739 |
"preserve the current working directory." |
| 740 |
msgstr "" |
| 741 |
|
| 742 |
#. type: SH |
| 743 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 744 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 745 |
#, no-wrap |
| 746 |
msgid "BUGS" |
| 747 |
msgstr "" |
| 748 |
|
| 749 |
#. https://bugzilla.redhat.com/show_bug.cgi?id=1422736 |
| 750 |
#. http://austingroupbugs.net/view.php?id=1121 |
| 751 |
#. glibc commit 6ba205b2c35e3e024c8c12d2ee1b73363e84da87 |
| 752 |
#. https://sourceware.org/bugzilla/show_bug.cgi?id=23501 |
| 753 |
#. type: Plain text |
| 754 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 755 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 756 |
msgid "" |
| 757 |
"According to POSIX.1-2008, when the I<typeflag> argument passed to I<fn>() " |
| 758 |
"contains B<FTW_SLN>, the buffer pointed to by I<sb> should contain " |
| 759 |
"information about the dangling symbolic link (obtained by calling " |
| 760 |
"B<lstat>(2) on the link). Early glibc versions correctly followed the " |
| 761 |
"POSIX specification on this point. However, as a result of a regression " |
| 762 |
"introduced in glibc 2.4, the contents of the buffer pointed to by I<sb> were " |
| 763 |
"undefined when B<FTW_SLN> is passed in I<typeflag>. (More precisely, the " |
| 764 |
"contents of the buffer were left unchanged in this case.) This regression " |
| 765 |
"was eventually fixed in glibc 2.30, so that the glibc implementation (once " |
| 766 |
"more) follows the POSIX specification." |
| 767 |
msgstr "" |
| 768 |
|
| 769 |
#. type: SH |
| 770 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 771 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 772 |
#, no-wrap |
| 773 |
msgid "EXAMPLES" |
| 774 |
msgstr "" |
| 775 |
|
| 776 |
#. type: Plain text |
| 777 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 778 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 779 |
msgid "" |
| 780 |
"The following program traverses the directory tree under the path named in " |
| 781 |
"its first command-line argument, or under the current directory if no " |
| 782 |
"argument is supplied. It displays various information about each file. The " |
| 783 |
"second command-line argument can be used to specify characters that control " |
| 784 |
"the value assigned to the I<flags> argument when calling B<nftw>()." |
| 785 |
msgstr "" |
| 786 |
|
| 787 |
#. type: SS |
| 788 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 789 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 790 |
#, no-wrap |
| 791 |
msgid "Program source" |
| 792 |
msgstr "" |
| 793 |
|
| 794 |
#. type: Plain text |
| 795 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 796 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 797 |
#, no-wrap |
| 798 |
msgid "" |
| 799 |
"#define _XOPEN_SOURCE 500\n" |
| 800 |
"#include E<lt>ftw.hE<gt>\n" |
| 801 |
"#include E<lt>stdint.hE<gt>\n" |
| 802 |
"#include E<lt>stdio.hE<gt>\n" |
| 803 |
"#include E<lt>stdlib.hE<gt>\n" |
| 804 |
"#include E<lt>string.hE<gt>\n" |
| 805 |
"\\&\n" |
| 806 |
"static int\n" |
| 807 |
"display_info(const char *fpath, const struct stat *sb,\n" |
| 808 |
" int tflag, struct FTW *ftwbuf)\n" |
| 809 |
"{\n" |
| 810 |
" printf(\"%-3s %2d \",\n" |
| 811 |
" (tflag == FTW_D) ? \"d\" : (tflag == FTW_DNR) ? \"dnr\" :\n" |
| 812 |
" (tflag == FTW_DP) ? \"dp\" : (tflag == FTW_F) ? \"f\" :\n" |
| 813 |
" (tflag == FTW_NS) ? \"ns\" : (tflag == FTW_SL) ? \"sl\" :\n" |
| 814 |
" (tflag == FTW_SLN) ? \"sln\" : \"???\",\n" |
| 815 |
" ftwbuf-E<gt>level);\n" |
| 816 |
"\\&\n" |
| 817 |
" if (tflag == FTW_NS)\n" |
| 818 |
" printf(\"-------\");\n" |
| 819 |
" else\n" |
| 820 |
" printf(\"%7jd\", (intmax_t) sb-E<gt>st_size);\n" |
| 821 |
"\\&\n" |
| 822 |
" printf(\" %-40s %d %s\\[rs]n\",\n" |
| 823 |
" fpath, ftwbuf-E<gt>base, fpath + ftwbuf-E<gt>base);\n" |
| 824 |
"\\&\n" |
| 825 |
" return 0; /* To tell nftw() to continue */\n" |
| 826 |
"}\n" |
| 827 |
"\\&\n" |
| 828 |
"int\n" |
| 829 |
"main(int argc, char *argv[])\n" |
| 830 |
"{\n" |
| 831 |
" int flags = 0;\n" |
| 832 |
"\\&\n" |
| 833 |
" if (argc E<gt> 2 && strchr(argv[2], \\[aq]d\\[aq]) != NULL)\n" |
| 834 |
" flags |= FTW_DEPTH;\n" |
| 835 |
" if (argc E<gt> 2 && strchr(argv[2], \\[aq]p\\[aq]) != NULL)\n" |
| 836 |
" flags |= FTW_PHYS;\n" |
| 837 |
"\\&\n" |
| 838 |
" if (nftw((argc E<lt> 2) ? \".\" : argv[1], display_info, 20, flags)\n" |
| 839 |
" == -1)\n" |
| 840 |
" {\n" |
| 841 |
" perror(\"nftw\");\n" |
| 842 |
" exit(EXIT_FAILURE);\n" |
| 843 |
" }\n" |
| 844 |
"\\&\n" |
| 845 |
" exit(EXIT_SUCCESS);\n" |
| 846 |
"}\n" |
| 847 |
msgstr "" |
| 848 |
|
| 849 |
#. SRC END |
| 850 |
#. type: SH |
| 851 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 852 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 853 |
#, no-wrap |
| 854 |
msgid "SEE ALSO" |
| 855 |
msgstr "" |
| 856 |
|
| 857 |
#. type: Plain text |
| 858 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 859 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 860 |
msgid "B<stat>(2), B<fts>(3), B<readdir>(3)" |
| 861 |
msgstr "" |
| 862 |
|
| 863 |
#. type: TH |
| 864 |
#: debian-trixie |
| 865 |
#, no-wrap |
| 866 |
msgid "2024-06-15" |
| 867 |
msgstr "" |
| 868 |
|
| 869 |
#. type: TH |
| 870 |
#: debian-trixie |
| 871 |
#, no-wrap |
| 872 |
msgid "Linux man-pages 6.9.1" |
| 873 |
msgstr "" |
| 874 |
|
| 875 |
#. type: Plain text |
| 876 |
#: debian-trixie |
| 877 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 878 |
msgstr "" |
| 879 |
|
| 880 |
#. type: Plain text |
| 881 |
#: debian-trixie |
| 882 |
#, no-wrap |
| 883 |
msgid "" |
| 884 |
"B<int nftw(const char *>I<dirpath>B<,>\n" |
| 885 |
"B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n" |
| 886 |
"B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<),>\n" |
| 887 |
"B< int >I<nopenfd>B<, int >I<flags>B<);>\n" |
| 888 |
msgstr "" |
| 889 |
|
| 890 |
#. type: Plain text |
| 891 |
#: debian-trixie |
| 892 |
#, no-wrap |
| 893 |
msgid "" |
| 894 |
"B<[[deprecated]]>\n" |
| 895 |
"B<int ftw(const char *>I<dirpath>B<,>\n" |
| 896 |
"B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n" |
| 897 |
"B< int >I<typeflag>B<),>\n" |
| 898 |
"B< int >I<nopenfd>B<);>\n" |
| 899 |
msgstr "" |
| 900 |
|
| 901 |
#. type: Plain text |
| 902 |
#: debian-trixie fedora-44 fedora-rawhide |
| 903 |
msgid "" |
| 904 |
"B<nftw>() walks through the directory tree that is located under the " |
| 905 |
"directory I<dirpath>, and calls I<fn>() once for each entry in the tree. By " |
| 906 |
"default, directories are handled before the files and subdirectories they " |
| 907 |
"contain (preorder traversal)." |
| 908 |
msgstr "" |
| 909 |
|
| 910 |
#. type: Plain text |
| 911 |
#: debian-trixie fedora-44 fedora-rawhide |
| 912 |
msgid "" |
| 913 |
"For each entry found in the tree, B<nftw>() calls I<fn>() with four " |
| 914 |
"arguments: I<fpath>, I<sb>, I<typeflag>, and I<ftwbuf>. I<fpath> is the " |
| 915 |
"pathname of the entry, and is expressed either as a pathname relative to the " |
| 916 |
"calling process's current working directory at the time of the call to " |
| 917 |
"B<nftw>(), if I<dirpath> was expressed as a relative pathname, or as an " |
| 918 |
"absolute pathname, if I<dirpath> was expressed as an absolute pathname. " |
| 919 |
"I<sb> is a pointer to the I<stat> structure returned by a call to " |
| 920 |
"B<stat>(2) for I<fpath>." |
| 921 |
msgstr "" |
| 922 |
|
| 923 |
#. type: Plain text |
| 924 |
#: debian-trixie fedora-44 fedora-rawhide |
| 925 |
msgid "" |
| 926 |
"To stop the tree walk, I<fn>() returns a nonzero value; this value will " |
| 927 |
"become the return value of B<nftw>(). As long as I<fn>() returns 0, " |
| 928 |
"B<nftw>() will continue either until it has traversed the entire tree, in " |
| 929 |
"which case it will return zero, or until it encounters an error (such as a " |
| 930 |
"B<malloc>(3) failure), in which case it will return -1." |
| 931 |
msgstr "" |
| 932 |
|
| 933 |
#. If \fBFTW_DEPTH\fP |
| 934 |
#. is set, the entry's parent directory is processed next (with |
| 935 |
#. \fIflag\fP set to \fBFTW_DP\fP). |
| 936 |
#. type: Plain text |
| 937 |
#: debian-trixie fedora-44 fedora-rawhide |
| 938 |
msgid "" |
| 939 |
"If I<fn>() returns this value, then siblings of the current entry will be " |
| 940 |
"skipped, and processing continues in the parent." |
| 941 |
msgstr "" |
| 942 |
|
| 943 |
#. type: Plain text |
| 944 |
#: debian-trixie fedora-44 fedora-rawhide |
| 945 |
msgid "" |
| 946 |
"If I<fn>() is called with an entry that is a directory (I<typeflag> is " |
| 947 |
"B<FTW_D>), this return value will prevent objects within that directory from " |
| 948 |
"being passed as arguments to I<fn>(). B<nftw>() continues processing with " |
| 949 |
"the next sibling of the directory." |
| 950 |
msgstr "" |
| 951 |
|
| 952 |
#. type: Plain text |
| 953 |
#: debian-trixie fedora-44 fedora-rawhide |
| 954 |
msgid "" |
| 955 |
"Other return values could be associated with new actions in the future; " |
| 956 |
"I<fn>() should not return values other than those listed above." |
| 957 |
msgstr "" |
| 958 |
|
| 959 |
#. type: Plain text |
| 960 |
#: debian-trixie fedora-44 fedora-rawhide |
| 961 |
msgid "" |
| 962 |
"If set, do a post-order traversal, that is, call I<fn>() for the directory " |
| 963 |
"itself I<after> handling the contents of the directory and its " |
| 964 |
"subdirectories. (By default, each directory is handled I<before> its " |
| 965 |
"contents.)" |
| 966 |
msgstr "" |
| 967 |
|
| 968 |
#. type: Plain text |
| 969 |
#: debian-trixie fedora-44 fedora-rawhide |
| 970 |
msgid "" |
| 971 |
"If I<fn>() returns nonzero, then the tree walk is terminated and the value " |
| 972 |
"returned by I<fn>() is returned as the result of B<ftw>() or B<nftw>()." |
| 973 |
msgstr "" |
| 974 |
|
| 975 |
#. type: TH |
| 976 |
#: fedora-44 fedora-rawhide |
| 977 |
#, no-wrap |
| 978 |
msgid "2024-12-13" |
| 979 |
msgstr "" |
| 980 |
|
| 981 |
#. type: TH |
| 982 |
#: fedora-44 fedora-rawhide |
| 983 |
#, no-wrap |
| 984 |
msgid "Linux man-pages 6.13" |
| 985 |
msgstr "" |
| 986 |
|
| 987 |
#. type: TH |
| 988 |
#: mageia-cauldron |
| 989 |
#, no-wrap |
| 990 |
msgid "Linux man-pages 6.17" |
| 991 |
msgstr "" |
| 992 |
|
| 993 |
#. type: TH |
| 994 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 995 |
#, no-wrap |
| 996 |
msgid "Linux man-pages (unreleased)" |
| 997 |
msgstr "" |