Debian Codegraph @

po/ru/man3/scandir.3.po

raw
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 # Alexander Golubev <[email protected]>, 2018.
5 # Azamat Hackimov <[email protected]>, 2011, 2014-2016.
6 # Hotellook, 2014.
7 # Nikita <[email protected]>, 2014.
8 # Spiros Georgaras <[email protected]>, 2016.
9 # Vladislav <[email protected]>, 2015.
10 # Yuri Kozlov <[email protected]>, 2011-2019.
11 # Иван Павлов <[email protected]>, 2017.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, fuzzy, no-wrap
32 #| msgid "scandirat()"
33 msgid "scandir"
34 msgstr "scandirat()"
35
36 #. type: TH
37 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
38 #: opensuse-tumbleweed
39 #, no-wrap
40 msgid "2026-02-08"
41 msgstr "8 февраля 2026 г."
42
43 #. type: TH
44 #: archlinux debian-unstable
45 #, fuzzy, no-wrap
46 #| msgid "Linux man-pages 6.17"
47 msgid "Linux man-pages 6.18"
48 msgstr "Справочные страницы Linux 6.17"
49
50 #. type: SH
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 #, no-wrap
54 msgid "NAME"
55 msgstr "НАИМЕНОВАНИЕ"
56
57 #. type: Plain text
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 msgid ""
61 "scandir, scandirat, alphasort, versionsort - scan a directory for matching "
62 "entries"
63 msgstr "scandir, scandirat, alphasort, versionsort - ищет записи в каталоге"
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 "LIBRARY"
70 msgstr "БИБЛИОТЕКА"
71
72 #. type: Plain text
73 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
74 #: opensuse-leap-16-1 opensuse-tumbleweed
75 msgid "Standard C library (I<libc>,\\ I<-lc>)"
76 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
77
78 #. type: SH
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "SYNOPSIS"
83 msgstr "СИНТАКСИС"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "B<#include E<lt>dirent.hE<gt>>\n"
90 msgstr "B<#include E<lt>dirent.hE<gt>>\n"
91
92 #. type: Plain text
93 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
94 #: opensuse-leap-16-1 opensuse-tumbleweed
95 #, fuzzy, no-wrap
96 #| msgid ""
97 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
98 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
99 msgid ""
100 "B<int scandir(const char *restrict >I<dirp>B<,>\n"
101 "B< struct dirent ***restrict >I<namelist>B<,>\n"
102 "B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n"
103 "B<typeof(int (const struct dirent **, const struct dirent **))>\n"
104 "B< *>I<compar>B<);>\n"
105 msgstr ""
106 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
107 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, fuzzy, no-wrap
113 #| msgid ""
114 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
115 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
116 msgid ""
117 "B<int alphasort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n"
118 "B<int versionsort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n"
119 msgstr ""
120 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
121 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid ""
128 "B<#include E<lt>fcntl.hE<gt>> /* Definition of AT_* constants */\n"
129 "B<#include E<lt>dirent.hE<gt>>\n"
130 msgstr ""
131 "B<#include E<lt>fcntl.hE<gt>> /* определения констант AT_* */\n"
132 "B<#include E<lt>dirent.hE<gt>>\n"
133
134 #. type: Plain text
135 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
136 #: opensuse-leap-16-1 opensuse-tumbleweed
137 #, fuzzy, no-wrap
138 #| msgid ""
139 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
140 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
141 msgid ""
142 "B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n"
143 "B< struct dirent ***restrict >I<namelist>B<,>\n"
144 "B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n"
145 "B<typeof(int (const struct dirent **, const struct dirent **))>\n"
146 "B< *>I<compar>B<);>\n"
147 msgstr ""
148 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
149 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
156 msgstr ""
157 "Требования макроса тестирования свойств для glibc (см. "
158 "B<feature_test_macros>(7)):"
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid "B<scandir>(), B<alphasort>():"
164 msgstr "B<scandir>(), B<alphasort>():"
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 #, no-wrap
170 msgid ""
171 " /* Since glibc 2.10: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
172 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
173 msgstr ""
174 " /* Начиная с glibc 2.10: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
175 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, fuzzy
181 #| msgid "B<versionsort>(): _GNU_SOURCE"
182 msgid "B<versionsort>():"
183 msgstr "B<versionsort>(): _GNU_SOURCE"
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid " _GNU_SOURCE\n"
190 msgstr " _GNU_SOURCE\n"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, fuzzy
196 #| msgid "scandirat()"
197 msgid "B<scandirat>():"
198 msgstr "scandirat()"
199
200 #. type: SH
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "DESCRIPTION"
205 msgstr "ОПИСАНИЕ"
206
207 #. type: Plain text
208 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
209 #: opensuse-tumbleweed
210 #, fuzzy
211 #| msgid ""
212 #| "The B<scandir>() function scans the directory I<dirp>, calling "
213 #| "I<filter>() on each directory entry. Entries for which I<filter>() "
214 #| "returns nonzero are stored in strings allocated via B<malloc>(3), sorted "
215 #| "using B<qsort>(3) with the comparison function I<compar>(), and "
216 #| "collected in array I<namelist> which is allocated via B<malloc>(3). If "
217 #| "I<filter> is NULL, all entries are selected."
218 msgid ""
219 "The B<scandir>() function scans the directory I<dirp>, calling I<filter>() "
220 "on each directory entry. Entries for which I<filter>() returns nonzero are "
221 "stored in strings allocated via B<malloc>(3), sorted using B<qsort>(3) with "
222 "the comparison function I<compar>(), and collected in array I<namelist> "
223 "which is allocated via B<malloc>(3). If I<filter> is NULL, all entries are "
224 "selected."
225 msgstr ""
226 "Функция B<scandir>() обходит каталог I<dirp>, вызывая I<filter>() для каждой "
227 "записи каталога. Записи, для которых I<filter>() возвращает не ноль, "
228 "сохраняются в строках, выделяемых с помощью B<malloc>(3), сортируются "
229 "B<qsort>(3) с помощью функции сравнения I<compar>() и собираются в массиве "
230 "I<namelist>, который выделяется с помощью B<malloc>(3). Если I<filter> равно "
231 "NULL, то выбираются все записи."
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid ""
237 "The B<alphasort>() and B<versionsort>() functions can be used as the "
238 "comparison function I<compar>(). The former sorts directory entries using "
239 "B<strcoll>(3), the latter using B<strverscmp>(3) on the strings I<(*a)-"
240 "E<gt>d_name> and I<(*b)-E<gt>d_name>."
241 msgstr ""
242 "В качестве функции сравнения I<compar>() можно использовать B<alphasort>() и "
243 "B<versionsort>(). Первая сортирует записи (строки I<(*a)-E<gt>d_name> и "
244 "I<(*b)-E<gt>d_name>) каталога с помощью B<strcoll>(3), а последняя с помощью "
245 "B<strverscmp>(3)."
246
247 #. type: SS
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "scandirat()"
252 msgstr "scandirat()"
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 msgid ""
258 "The B<scandirat>() function operates in exactly the same way as "
259 "B<scandir>(), except for the differences described here."
260 msgstr ""
261 "Системный вызов B<scandirat>() работает также как системный вызов "
262 "B<scandir>(), за исключением случаев, описанных здесь."
263
264 #. type: Plain text
265 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
266 #: opensuse-tumbleweed
267 #, fuzzy
268 #| msgid ""
269 #| "If the pathname given in I<dirp> is relative, then it is interpreted "
270 #| "relative to the directory referred to by the file descriptor I<dirfd> "
271 #| "(rather than relative to the current working directory of the calling "
272 #| "process, as is done by B<scandir>() for a relative pathname)."
273 msgid ""
274 "If I<dirp> is relative, then it is interpreted relative to the directory "
275 "referred to by the file descriptor I<dirfd> (rather than relative to the "
276 "current working directory of the calling process, as is done by "
277 "B<scandir>() for a relative pathname)."
278 msgstr ""
279 "Если в I<dirp> задан относительный путь, то он считается относительно "
280 "каталога, на который ссылается файловый дескриптор I<dirfd> (а не "
281 "относительно текущего рабочего каталога вызывающего процесса, как это "
282 "делается в B<scandir>())."
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 "If I<dirp> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
289 "I<dirp> is interpreted relative to the current working directory of the "
290 "calling process (like B<scandir>())."
291 msgstr ""
292 "Если в I<dirp> задан относительный путь и значение I<dirfd> равно "
293 "B<AT_FDCWD>, то I<dirp> рассматривается относительно текущего рабочего "
294 "каталога вызывающего процесса (как B<scandir>())."
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "If I<dirp> is absolute, then I<dirfd> is ignored."
300 msgstr "Если в I<dirp> задан абсолютный путь, то I<dirfd> игнорируется."
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid "See B<openat>(2) for an explanation of the need for B<scandirat>()."
306 msgstr "Смотрите в B<openat>(2) объяснение необходимости B<scandirat>()."
307
308 #. type: SH
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "RETURN VALUE"
313 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, fuzzy
319 #| msgid ""
320 #| "The B<scandir>() function returns the number of directory entries "
321 #| "selected. On error, -1 is returned, with I<errno> set to indicate the "
322 #| "cause of the error."
323 msgid ""
324 "The B<scandir>() function returns the number of directory entries "
325 "selected. On error, -1 is returned, with I<errno> set to indicate the error."
326 msgstr ""
327 "При успешном выполнении B<scandir>() возвращается количество выбранных "
328 "записей каталога. При ошибке возвращается -1, а в I<errno> содержится код "
329 "ошибки."
330
331 #. type: Plain text
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 msgid ""
335 "The B<alphasort>() and B<versionsort>() functions return an integer less "
336 "than, equal to, or greater than zero if the first argument is considered to "
337 "be respectively less than, equal to, or greater than the second."
338 msgstr ""
339 "Функции B<alphasort>() и B<versionsort>() возвращают целое, меньшее, равное "
340 "или большее нуля, если первый аргумент считается меньшим, равным или большим "
341 "чем второй, соответственно."
342
343 #. type: SH
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "ERRORS"
348 msgstr "ОШИБКИ"
349
350 #. type: TP
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "B<EBADF>"
355 msgstr "B<EBADF>"
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, fuzzy
361 #| msgid "(B<fstatfs>()) I<fd> is not a valid open file descriptor."
362 msgid ""
363 "(B<scandirat>()) I<dirp> is relative but I<dirfd> is neither B<AT_FDCWD> "
364 "nor a valid file descriptor."
365 msgstr ""
366 "(B<fstatfs>()) I<fd> не является корректным открытым дескриптором файла."
367
368 #. type: TP
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "B<ENOENT>"
373 msgstr "B<ENOENT>"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid "The path in I<dirp> does not exist."
379 msgstr "Путь в I<dirp> не существует."
380
381 #. type: TP
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 #, no-wrap
385 msgid "B<ENOMEM>"
386 msgstr "B<ENOMEM>"
387
388 #. type: Plain text
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 msgid "Insufficient memory to complete the operation."
392 msgstr "Недостаточно памяти для завершения операции."
393
394 #. type: TP
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "B<ENOTDIR>"
399 msgstr "B<ENOTDIR>"
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid "The path in I<dirp> is not a directory."
405 msgstr "Путь в I<dirp> не является каталогом."
406
407 #. type: Plain text
408 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
409 #: opensuse-tumbleweed
410 #, fuzzy
411 #| msgid ""
412 #| "I<dirp> is a relative path and I<dirfd> is a file descriptor referring to "
413 #| "a file other than a directory."
414 msgid ""
415 "(B<scandirat>()) I<dirp> is relative and I<dirfd> is a file descriptor "
416 "referring to a file other than a directory."
417 msgstr ""
418 "Значение I<dirp> содержит относительный путь и I<dirfd> содержит файловый "
419 "дескриптор, указывающий на файл, а не на каталог."
420
421 #. type: SH
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "ATTRIBUTES"
426 msgstr "АТРИБУТЫ"
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid ""
432 "For an explanation of the terms used in this section, see B<attributes>(7)."
433 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
434
435 #. type: tbl table
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "Interface"
440 msgstr "Интерфейс"
441
442 #. type: tbl table
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "Attribute"
447 msgstr "Атрибут"
448
449 #. type: tbl table
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "Value"
454 msgstr "Значение"
455
456 #. type: tbl table
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid ".na\n"
461 msgstr ".na\n"
462
463 #. type: tbl table
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 #, no-wrap
467 msgid ".nh\n"
468 msgstr ".nh\n"
469
470 #. type: tbl table
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, no-wrap
474 msgid ""
475 "B<scandir>(),\n"
476 "B<scandirat>()"
477 msgstr ""
478 "B<scandir>(),\n"
479 "B<scandirat>()"
480
481 #. type: tbl table
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid "Thread safety"
486 msgstr "Безвредность в нитях"
487
488 #. type: tbl table
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "MT-Safe"
493 msgstr "MT-Safe"
494
495 #. type: tbl table
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 #, no-wrap
499 msgid ""
500 "B<alphasort>(),\n"
501 "B<versionsort>()"
502 msgstr ""
503 "B<alphasort>(),\n"
504 "B<versionsort>()"
505
506 #. type: tbl table
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 #, no-wrap
510 msgid "MT-Safe locale"
511 msgstr "MT-Safe locale"
512
513 #. type: SH
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "STANDARDS"
518 msgstr "СТАНДАРТЫ"
519
520 #. type: TP
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 #, fuzzy, no-wrap
524 #| msgid "B<alarm>(2)"
525 msgid "B<alphasort>()"
526 msgstr "B<alarm>(2)"
527
528 #. type: TQ
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 #, fuzzy, no-wrap
532 #| msgid "scandirat()"
533 msgid "B<scandir>()"
534 msgstr "scandirat()"
535
536 #. type: Plain text
537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
539 msgid "POSIX.1-2008."
540 msgstr "POSIX.1-2008."
541
542 #. type: TP
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 #, fuzzy, no-wrap
546 #| msgid "B<versionsort>(): _GNU_SOURCE"
547 msgid "B<versionsort>()"
548 msgstr "B<versionsort>(): _GNU_SOURCE"
549
550 #. type: TP
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 #, fuzzy, no-wrap
554 #| msgid "scandirat()"
555 msgid "B<scandirat>()"
556 msgstr "scandirat()"
557
558 #. type: Plain text
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 msgid "GNU."
562 msgstr "GNU."
563
564 #. type: SH
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 #, no-wrap
568 msgid "HISTORY"
569 msgstr "ИСТОРИЯ"
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 #, fuzzy
575 #| msgid "SVr4, 4.3BSD, POSIX.1-2001."
576 msgid "4.3BSD, POSIX.1-2008."
577 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
578
579 #. type: Plain text
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 msgid "glibc 2.1."
583 msgstr "glibc 2.1."
584
585 #. .P
586 #. The functions
587 #. .BR scandir ()
588 #. and
589 #. .BR alphasort ()
590 #. are from 4.3BSD, and have been available under Linux since libc4.
591 #. Libc4 and libc5 use the more precise prototype
592 #. .sp
593 #. .nf
594 #. int alphasort(const struct dirent ** a,
595 #. const struct dirent **b);
596 #. .fi
597 #. .sp
598 #. but glibc 2.0 returns to the imprecise BSD prototype.
599 #. type: Plain text
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 msgid "glibc 2.15."
603 msgstr "glibc 2.15."
604
605 #. type: SH
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 #, no-wrap
609 msgid "NOTES"
610 msgstr "ПРИМЕЧАНИЯ"
611
612 #. type: Plain text
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 msgid ""
616 "Since glibc 2.1, B<alphasort>() calls B<strcoll>(3); earlier it used "
617 "B<strcmp>(3)."
618 msgstr ""
619 "Начиная с glibc 2.1, B<alphasort>() вызывает B<strcoll>(3); раньше в ней "
620 "использовалась B<strcmp>(3)."
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "Before glibc 2.10, the two arguments of B<alphasort>() and "
627 "B<versionsort>() were typed as I<const void\\ *>. When B<alphasort>() was "
628 "standardized in POSIX.1-2008, the argument type was specified as the type-"
629 "safe I<const struct dirent\\ **>, and glibc 2.10 changed the definition of "
630 "B<alphasort>() (and the nonstandard B<versionsort>()) to match the "
631 "standard."
632 msgstr ""
633 "До glibc 2.10, два аргумента B<alphasort>() и B<versionsort>() имели тип "
634 "I<const void\\ *>. После стандартизации B<alphasort>() в POSIX.1-2008, тип "
635 "аргумента argument стал типобезопасным I<const struct dirent\\ **>, и в "
636 "glibc 2.10 функция B<alphasort>() (и нестандартная B<versionsort>()) была "
637 "приведена в соответствие со стандартом."
638
639 #. type: SH
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 #, no-wrap
643 msgid "EXAMPLES"
644 msgstr "ПРИМЕРЫ"
645
646 #. type: Plain text
647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
649 msgid ""
650 "The program below prints a list of the files in the current directory in "
651 "reverse order."
652 msgstr ""
653 "Программа, показанная ниже, печатает список файлов в текущем каталоге в "
654 "обратном порядке."
655
656 #. type: SS
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "Program source"
661 msgstr "Исходный код программы"
662
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 #, no-wrap
667 msgid ""
668 "#define _DEFAULT_SOURCE\n"
669 "#include E<lt>dirent.hE<gt>\n"
670 "#include E<lt>stdio.hE<gt>\n"
671 "#include E<lt>stdlib.hE<gt>\n"
672 "\\&\n"
673 "int\n"
674 "main(void)\n"
675 "{\n"
676 " struct dirent **namelist;\n"
677 " int n;\n"
678 "\\&\n"
679 " n = scandir(\".\", &namelist, NULL, alphasort);\n"
680 " if (n == -1) {\n"
681 " perror(\"scandir\");\n"
682 " exit(EXIT_FAILURE);\n"
683 " }\n"
684 "\\&\n"
685 " while (n--) {\n"
686 " printf(\"%s\\[rs]n\", namelist[n]-E<gt>d_name);\n"
687 " free(namelist[n]);\n"
688 " }\n"
689 " free(namelist);\n"
690 "\\&\n"
691 " exit(EXIT_SUCCESS);\n"
692 "}\n"
693 msgstr ""
694
695 #. SRC END
696 #. type: SH
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 #, no-wrap
700 msgid "SEE ALSO"
701 msgstr "СМОТРИТЕ ТАКЖЕ"
702
703 #. type: Plain text
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 msgid ""
707 "B<closedir>(3), B<fnmatch>(3), B<opendir>(3), B<readdir>(3), "
708 "B<rewinddir>(3), B<seekdir>(3), B<strcmp>(3), B<strcoll>(3), "
709 "B<strverscmp>(3), B<telldir>(3)"
710 msgstr ""
711 "B<closedir>(3), B<fnmatch>(3), B<opendir>(3), B<readdir>(3), "
712 "B<rewinddir>(3), B<seekdir>(3), B<strcmp>(3), B<strcoll>(3), "
713 "B<strverscmp>(3), B<telldir>(3)"
714
715 #. type: TH
716 #: debian-trixie
717 #, no-wrap
718 msgid "2024-06-15"
719 msgstr "15 июня 2024 г."
720
721 #. type: TH
722 #: debian-trixie
723 #, no-wrap
724 msgid "Linux man-pages 6.9.1"
725 msgstr "Страницы руководства Linux 6.9.1"
726
727 #. type: Plain text
728 #: debian-trixie
729 msgid "Standard C library (I<libc>, I<-lc>)"
730 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
731
732 #. type: Plain text
733 #: debian-trixie
734 #, fuzzy, no-wrap
735 #| msgid ""
736 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
737 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
738 msgid ""
739 "B<int scandir(const char *restrict >I<dirp>B<,>\n"
740 "B< struct dirent ***restrict >I<namelist>B<,>\n"
741 "B< int (*>I<filter>B<)(const struct dirent *),>\n"
742 "B< int (*>I<compar>B<)(const struct dirent **,>\n"
743 "B<const struct dirent **));>\n"
744 msgstr ""
745 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
746 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
747
748 #. type: Plain text
749 #: debian-trixie
750 #, fuzzy, no-wrap
751 #| msgid ""
752 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
753 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
754 msgid ""
755 "B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n"
756 "B< struct dirent ***restrict >I<namelist>B<,>\n"
757 "B< int (*>I<filter>B<)(const struct dirent *),>\n"
758 "B< int (*>I<compar>B<)(const struct dirent **,>\n"
759 "B<const struct dirent **));>\n"
760 msgstr ""
761 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
762 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
763
764 #. type: Plain text
765 #: debian-trixie fedora-44 fedora-rawhide
766 msgid ""
767 "The B<scandir>() function scans the directory I<dirp>, calling I<filter>() "
768 "on each directory entry. Entries for which I<filter>() returns nonzero are "
769 "stored in strings allocated via B<malloc>(3), sorted using B<qsort>(3) with "
770 "the comparison function I<compar>(), and collected in array I<namelist> "
771 "which is allocated via B<malloc>(3). If I<filter> is NULL, all entries are "
772 "selected."
773 msgstr ""
774 "Функция B<scandir>() обходит каталог I<dirp>, вызывая I<filter>() для каждой "
775 "записи каталога. Записи, для которых I<filter>() возвращает не ноль, "
776 "сохраняются в строках, выделяемых с помощью B<malloc>(3), сортируются "
777 "B<qsort>(3) с помощью функции сравнения I<compar>() и собираются в массиве "
778 "I<namelist>, который выделяется с помощью B<malloc>(3). Если I<filter> равно "
779 "NULL, то выбираются все записи."
780
781 #. type: Plain text
782 #: debian-trixie fedora-44 fedora-rawhide
783 msgid ""
784 "If the pathname given in I<dirp> is relative, then it is interpreted "
785 "relative to the directory referred to by the file descriptor I<dirfd> "
786 "(rather than relative to the current working directory of the calling "
787 "process, as is done by B<scandir>() for a relative pathname)."
788 msgstr ""
789 "Если в I<dirp> задан относительный путь, то он считается относительно "
790 "каталога, на который ссылается файловый дескриптор I<dirfd> (а не "
791 "относительно текущего рабочего каталога вызывающего процесса, как это "
792 "делается в B<scandir>())."
793
794 #. type: Plain text
795 #: debian-trixie fedora-44 fedora-rawhide
796 #, fuzzy
797 #| msgid ""
798 #| "I<dirp> is a relative path and I<dirfd> is a file descriptor referring to "
799 #| "a file other than a directory."
800 msgid ""
801 "(B<scandirat>()) I<dirp> is a relative pathname and I<dirfd> is a file "
802 "descriptor referring to a file other than a directory."
803 msgstr ""
804 "Значение I<dirp> содержит относительный путь и I<dirfd> содержит файловый "
805 "дескриптор, указывающий на файл, а не на каталог."
806
807 #. type: TH
808 #: fedora-44 fedora-rawhide
809 #, no-wrap
810 msgid "2024-12-13"
811 msgstr "13 декабря 2024 г."
812
813 #. type: TH
814 #: fedora-44 fedora-rawhide
815 #, no-wrap
816 msgid "Linux man-pages 6.13"
817 msgstr "Страницы руководства Linux 6.13"
818
819 #. type: TH
820 #: mageia-cauldron
821 #, no-wrap
822 msgid "Linux man-pages 6.17"
823 msgstr "Страницы руководства Linux 6.17"
824
825 #. type: TH
826 #: opensuse-leap-16-1 opensuse-tumbleweed
827 #, no-wrap
828 msgid "Linux man-pages (unreleased)"
829 msgstr "Страницы руководства Linux (не выпущены)"