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