Debian Codegraph @

po/ru/man3/readdir.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 # aereiae <[email protected]>, 2014.
5 # Azamat Hackimov <[email protected]>, 2013-2014, 2016.
6 # Dmitriy S. Seregin <[email protected]>, 2013.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Lockal <[email protected]>, 2013.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Баринов Владимир, 2016.
11 # Иван Павлов <[email protected]>, 2017,2019.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:39+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 #, no-wrap
32 msgid "readdir"
33 msgstr "readdir"
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2026-02-08"
40 msgstr "8 февраля 2026 г."
41
42 #. type: TH
43 #: archlinux debian-unstable
44 #, fuzzy, no-wrap
45 #| msgid "Linux man-pages 6.17"
46 msgid "Linux man-pages 6.18"
47 msgstr "Справочные страницы Linux 6.17"
48
49 #. type: SH
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, no-wrap
53 msgid "NAME"
54 msgstr "НАИМЕНОВАНИЕ"
55
56 #. type: Plain text
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 msgid "readdir - read a directory"
60 msgstr "readdir - чтение содержимого каталога"
61
62 #. type: SH
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid "LIBRARY"
67 msgstr "БИБЛИОТЕКА"
68
69 #. type: Plain text
70 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
71 #: opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "Standard C library (I<libc>,\\ I<-lc>)"
73 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "SYNOPSIS"
80 msgstr "СИНТАКСИС"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "B<#include E<lt>dirent.hE<gt>>\n"
87 msgstr "B<#include E<lt>dirent.hE<gt>>\n"
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "B<struct dirent *readdir(DIR *>I<dirp>B<);>\n"
94 msgstr "B<struct dirent *readdir(DIR *>I<dirp>B<);>\n"
95
96 #. type: SH
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "DESCRIPTION"
101 msgstr "ОПИСАНИЕ"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid ""
107 "The B<readdir>() function returns a pointer to a I<dirent> structure "
108 "representing the next directory entry in the directory stream pointed to by "
109 "I<dirp>. It returns NULL on reaching the end of the directory stream or if "
110 "an error occurred."
111 msgstr ""
112 "Функция B<readdir>() возвращает указатель на структуру I<dirent>, "
113 "представляющую следующую запись каталога в потоке каталога, указанного в "
114 "I<dirp>. Функция возвращает NULL по достижении последней записи в потоке "
115 "каталога или если произошла ошибка."
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "In the glibc implementation, the I<dirent> structure is defined as follows:"
122 msgstr "В реализации glibc структура I<dirent> определена следующим образом:"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 "struct dirent {\n"
130 " ino_t d_ino; /* Inode number */\n"
131 " off_t d_off; /* Not an offset; see below */\n"
132 " unsigned short d_reclen; /* Length of this record */\n"
133 " unsigned char d_type; /* Type of file; not supported\n"
134 " by all filesystem types */\n"
135 " char d_name[256]; /* Null-terminated filename */\n"
136 "};\n"
137 msgstr ""
138 "struct dirent {\n"
139 " ino_t d_ino; /* номер иноды */\n"
140 " off_t d_off; /* не смещение, смотрите ниже */\n"
141 " unsigned short d_reclen; /* длина этой записи */\n"
142 " unsigned char d_type; /* тип файла; поддерживается\n"
143 " не во всех файловых системах */\n"
144 " char d_name[256]; /* имя файла с null в конце */\n"
145 "};\n"
146
147 #. type: Plain text
148 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
149 #: opensuse-tumbleweed
150 #, fuzzy
151 #| msgid ""
152 #| "The only fields in the I<dirent> structure that are mandated by POSIX.1 "
153 #| "are I<d_name> and I<d_ino>. The other fields are unstandardized, and not "
154 #| "present on all systems; see NOTES below for some further details."
155 msgid ""
156 "The only fields in the I<dirent> structure that are mandated by POSIX.1 are "
157 "I<.d_name> and I<.d_ino>. The other fields are unstandardized, and not "
158 "present on all systems; see VERSIONS."
159 msgstr ""
160 "В соответствие с POSIX.1, структура I<dirent> обязательно должна содержать "
161 "поле I<d_name>[] и I<d_ino>. Другие поля не стандартизованы и имеются не во "
162 "всех системах; подробней смотрите ЗАМЕЧАНИЯ далее."
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid "The fields of the I<dirent> structure are as follows:"
168 msgstr "Поля структуры I<dirent>:"
169
170 #. type: TP
171 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
172 #: opensuse-tumbleweed
173 #, fuzzy, no-wrap
174 #| msgid "I<d_ino>"
175 msgid "I<.d_ino>"
176 msgstr "I<d_ino>"
177
178 #. type: Plain text
179 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
180 #: opensuse-tumbleweed
181 msgid ""
182 "This is the inode number of the file in the filesystem containing the "
183 "directory on which B<readdir>() was called. If the directory entry is a "
184 "mount point, then I<.d_ino> differs from I<.st_ino> returned by B<stat>(2) "
185 "on this file: I<.d_ino> is the inode number of the mount point, while "
186 "I<.st_ino> is the inode number of the root directory of the mounted "
187 "filesystem."
188 msgstr ""
189
190 #. type: TP
191 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
192 #: opensuse-tumbleweed
193 #, fuzzy, no-wrap
194 #| msgid "I<d_off>"
195 msgid "I<.d_off>"
196 msgstr "I<d_off>"
197
198 #. https://lwn.net/Articles/544298/
199 #. type: Plain text
200 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
201 #: opensuse-tumbleweed
202 #, fuzzy
203 #| msgid ""
204 #| "The value returned in I<d_off> is the same as would be returned by "
205 #| "calling B<telldir>(3) at the current position in the directory stream. "
206 #| "Be aware that despite its type and name, the I<d_off> field is seldom any "
207 #| "kind of directory offset on modern filesystems. Applications should "
208 #| "treat this field as an opaque value, making no assumptions about its "
209 #| "contents; see also B<telldir>(3)."
210 msgid ""
211 "The value returned in I<.d_off> is the same as would be returned by calling "
212 "B<telldir>(3) at the current position in the directory stream. Be aware "
213 "that despite its type and name, the I<.d_off> field is seldom any kind of "
214 "directory offset on modern filesystems. Applications should treat this "
215 "field as an opaque value, making no assumptions about its contents; see also "
216 "B<telldir>(3)."
217 msgstr ""
218 "Значение, возвращаемое в I<d_off>, тоже самое что и после вызова "
219 "B<telldir>(3) в текущем положении курсора в потоке каталога. Учтите, что не "
220 "смотря на тип и имя, в современных файловых системах поле I<d_off> мало "
221 "похоже на смещение в каталоге. Приложения должны считать, что это поле "
222 "неизвестного типа(чёрным ящиком) и не делать предположений о его содержимом; "
223 "смотрите также B<telldir>(3)."
224
225 #. type: TP
226 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
227 #: opensuse-tumbleweed
228 #, fuzzy, no-wrap
229 #| msgid "I<d_reclen>"
230 msgid "I<.d_reclen>"
231 msgstr "I<d_reclen>"
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 #, fuzzy
237 #| msgid ""
238 #| "This is the size (in bytes) of the returned record. This may not match "
239 #| "the size of the structure definition shown above; see NOTES."
240 msgid ""
241 "This is the size (in bytes) of the returned record. This may not match the "
242 "size of the structure definition shown above; see VERSIONS."
243 msgstr ""
244 "Размер (в байтах) возвращаемой записи. Может не совпадать с размером "
245 "структуры, показанной выше; смотрите ЗАМЕЧАНИЯ."
246
247 #. type: TP
248 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
249 #: opensuse-tumbleweed
250 #, fuzzy, no-wrap
251 #| msgid "I<d_type>"
252 msgid "I<.d_type>"
253 msgstr "I<d_type>"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "This field contains a value indicating the file type, making it possible to "
260 "avoid the expense of calling B<lstat>(2) if further actions depend on the "
261 "type of the file."
262 msgstr ""
263 "Это поле содержит значение типа файла, что позволяет не делать "
264 "дополнительный вызов B<lstat>(2), если дальнейшие действия зависят от типа "
265 "файла."
266
267 #. type: Plain text
268 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
269 #: opensuse-tumbleweed
270 #, fuzzy
271 #| msgid ""
272 #| "When a suitable feature test macro is defined (B<_DEFAULT_SOURCE> on "
273 #| "glibc versions since 2.19, or B<_BSD_SOURCE> on glibc versions 2.19 and "
274 #| "earlier), glibc defines the following macro constants for the value "
275 #| "returned in I<d_type>:"
276 msgid ""
277 "When a suitable feature test macro is defined (B<_DEFAULT_SOURCE> since "
278 "glibc 2.19, or B<_BSD_SOURCE> on glibc 2.19 and earlier), glibc defines the "
279 "following macro constants for the value returned in I<.d_type>:"
280 msgstr ""
281 "Если определён подходящий макрос тестирования свойств (B<_DEFAULT_SOURCE> в "
282 "версиях glibc начиная с 2.19 или B<_BSD_SOURCE> в версиях glibc 2.19 и "
283 "старее), то для значения, возвращаемого в I<d_type>, glibc определяет "
284 "следующие макросы-константы:"
285
286 #. type: TP
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "B<DT_BLK>"
291 msgstr "B<DT_BLK>"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid "This is a block device."
297 msgstr "блочное устройство"
298
299 #. type: TP
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "B<DT_CHR>"
304 msgstr "B<DT_CHR>"
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid "This is a character device."
310 msgstr "символьное устройство"
311
312 #. type: TP
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "B<DT_DIR>"
317 msgstr "B<DT_DIR>"
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 msgid "This is a directory."
323 msgstr "каталог"
324
325 #. type: TP
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "B<DT_FIFO>"
330 msgstr "B<DT_FIFO>"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid "This is a named pipe (FIFO)."
336 msgstr "именованный канал (FIFO)"
337
338 #. type: TP
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "B<DT_LNK>"
343 msgstr "B<DT_LNK>"
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid "This is a symbolic link."
349 msgstr "символическая ссылка"
350
351 #. type: TP
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid "B<DT_REG>"
356 msgstr "B<DT_REG>"
357
358 #. type: Plain text
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 msgid "This is a regular file."
362 msgstr "обычный файл"
363
364 #. type: TP
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "B<DT_SOCK>"
369 msgstr "B<DT_SOCK>"
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 "This is a UNIX domain socket."
375 msgstr "доменный сокет UNIX"
376
377 #. type: TP
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "B<DT_UNKNOWN>"
382 msgstr "B<DT_UNKNOWN>"
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid "The file type could not be determined."
388 msgstr "Тип файла невозможно определить."
389
390 #. kernel 2.6.27
391 #. The same sentence is in getdents.2
392 #. type: Plain text
393 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
394 #: opensuse-tumbleweed
395 #, fuzzy
396 #| msgid ""
397 #| "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and "
398 #| "ext4) have full support for returning the file type in I<d_type>. All "
399 #| "applications must properly handle a return of B<DT_UNKNOWN>."
400 msgid ""
401 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
402 "have full support for returning the file type in I<.d_type>. All "
403 "applications must properly handle a return of B<DT_UNKNOWN>."
404 msgstr ""
405 "В настоящее время, только файловые системы (среди которых: Btrfs, ext2, ext3 "
406 "и ext4) поддерживают возврат типа файла в I<d_type>. Все приложения должны "
407 "правильно обрабатывать возвращаемое значение B<DT_UNKNOWN>."
408
409 #. type: TP
410 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
411 #: opensuse-tumbleweed
412 #, fuzzy, no-wrap
413 #| msgid "I<d_name>"
414 msgid "I<.d_name>"
415 msgstr "I<d_name>"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 #, fuzzy
421 #| msgid "This field contains the null terminated filename. I<See NOTES>."
422 msgid "This field contains the null terminated filename; see VERSIONS."
423 msgstr "Это поле содержит имя файла с завершающим null. I<Смотрите ЗАМЕЧАНИЯ>."
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid ""
429 "The data returned by B<readdir>() may be overwritten by subsequent calls to "
430 "B<readdir>() for the same directory stream."
431 msgstr ""
432 "Данные, возвращаемые B<readdir>(), могут быть переписаны последующими "
433 "вызовами B<readdir>() для того же потока каталога."
434
435 #. type: SH
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "RETURN VALUE"
440 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
441
442 #. type: Plain text
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 msgid ""
446 "On success, B<readdir>() returns a pointer to a I<dirent> structure. (This "
447 "structure may be statically allocated; do not attempt to B<free>(3) it.)"
448 msgstr ""
449 "При успешном выполнении B<readdir>() возвращает указатель на структуру "
450 "I<dirent> (эта структура может выделяться статически; не пытайтесь "
451 "освободить её с помощью B<free>(3))."
452
453 #. type: Plain text
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, fuzzy
457 #| msgid ""
458 #| "If the end of the directory stream is reached, NULL is returned and "
459 #| "I<errno> is not changed. If an error occurs, NULL is returned and "
460 #| "I<errno> is set appropriately. To distinguish end of stream and from an "
461 #| "error, set I<errno> to zero before calling B<readdir>() and then check "
462 #| "the value of I<errno> if NULL is returned."
463 msgid ""
464 "If the end of the directory stream is reached, NULL is returned and I<errno> "
465 "is not changed. If an error occurs, NULL is returned and I<errno> is set to "
466 "indicate the error. To distinguish end of stream from an error, set "
467 "I<errno> to zero before calling B<readdir>() and then check the value of "
468 "I<errno> if NULL is returned."
469 msgstr ""
470 "При достижении конца потока каталога возвращается NULL и I<errno> не "
471 "изменяется. При возникновении ошибки возвращается NULL, а I<errno> "
472 "изменяется соответствующим образом. Чтобы отличить конец потока от ошибки "
473 "присваивайте I<errno> значение нуля перед вызовом B<readdir>(), а после "
474 "проверяйте значение I<errno>, если возвращается NULL."
475
476 #. type: SH
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, no-wrap
480 msgid "ERRORS"
481 msgstr "ОШИБКИ"
482
483 #. type: TP
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, no-wrap
487 msgid "B<EBADF>"
488 msgstr "B<EBADF>"
489
490 #. type: Plain text
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 msgid "Invalid directory stream descriptor I<dirp>."
494 msgstr "Неверный дескриптор потока каталога I<dirp>."
495
496 #. type: SH
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 #, no-wrap
500 msgid "ATTRIBUTES"
501 msgstr "АТРИБУТЫ"
502
503 #. type: Plain text
504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
506 msgid ""
507 "For an explanation of the terms used in this section, see B<attributes>(7)."
508 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
509
510 #. type: tbl table
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid "Interface"
515 msgstr "Интерфейс"
516
517 #. type: tbl table
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 #, no-wrap
521 msgid "Attribute"
522 msgstr "Атрибут"
523
524 #. type: tbl table
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 #, no-wrap
528 msgid "Value"
529 msgstr "Значение"
530
531 #. type: tbl table
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 #, no-wrap
535 msgid ".na\n"
536 msgstr ".na\n"
537
538 #. type: tbl table
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 #, no-wrap
542 msgid ".nh\n"
543 msgstr ".nh\n"
544
545 #. type: tbl table
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 #, no-wrap
549 msgid "B<readdir>()"
550 msgstr "B<readdir>()"
551
552 #. type: tbl table
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 #, no-wrap
556 msgid "Thread safety"
557 msgstr "Безвредность в нитях"
558
559 #. type: tbl table
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 #, no-wrap
563 msgid "MT-Unsafe race:dirstream"
564 msgstr "MT-Unsafe race:dirstream"
565
566 #. FIXME .
567 #. http://www.austingroupbugs.net/view.php?id=696
568 #. type: Plain text
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 msgid ""
572 "In the current POSIX.1 specification (POSIX.1-2008), B<readdir>() is not "
573 "required to be thread-safe. However, in modern implementations (including "
574 "the glibc implementation), concurrent calls to B<readdir>() that specify "
575 "different directory streams are thread-safe. In cases where multiple "
576 "threads must read from the same directory stream, using B<readdir>() with "
577 "external synchronization is still preferable to the use of the deprecated "
578 "B<readdir_r>(3) function. It is expected that a future version of POSIX.1 "
579 "will require that B<readdir>() be thread-safe when concurrently employed on "
580 "different directory streams."
581 msgstr ""
582 "В текущей спецификации POSIX.1 (POSIX.1-2008), от B<readdir>() не требуется "
583 "быть нитебезопасной. Однако в современных реализациях (включая glibc) "
584 "параллельные вызовы B<readdir>() для различных потоков каталога являются "
585 "нитебезопасными. В случаях, когда несколько нитей должны читать один поток "
586 "каталога, всё равно предпочтительней использовать B<readdir>() с внешней "
587 "синхронизацией, а не устаревшей B<readdir_r>(3). Ожидается, что в будущей "
588 "версии POSIX.1 для B<readdir>() будет требоваться нитебезопасность при "
589 "одновременной работе с разными потоками каталога."
590
591 #. type: SH
592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
594 #, no-wrap
595 msgid "VERSIONS"
596 msgstr "ВЕРСИИ"
597
598 #. POSIX.1-2001, POSIX.1-2008
599 #. type: Plain text
600 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
601 #: opensuse-tumbleweed
602 #, fuzzy
603 #| msgid ""
604 #| "Only the fields I<d_name> and (as an XSI extension) I<d_ino> are "
605 #| "specified in POSIX.1. Other than Linux, the I<d_type> field is available "
606 #| "mainly only on BSD systems. The remaining fields are available on many, "
607 #| "but not all systems. Under glibc, programs can check for the "
608 #| "availability of the fields not defined in POSIX.1 by testing whether the "
609 #| "macros B<_DIRENT_HAVE_D_NAMLEN>, B<_DIRENT_HAVE_D_RECLEN>, "
610 #| "B<_DIRENT_HAVE_D_OFF>, or B<_DIRENT_HAVE_D_TYPE> are defined."
611 msgid ""
612 "Only the fields I<.d_name> and (as an XSI extension) I<.d_ino> are "
613 "specified in POSIX.1. Other than Linux, the I<.d_type> field is available "
614 "mainly only on BSD systems. The remaining fields are available on many, but "
615 "not all systems. Under glibc, programs can check for the availability of "
616 "the fields not defined in POSIX.1 by testing whether the macros "
617 "B<_DIRENT_HAVE_D_NAMLEN>, B<_DIRENT_HAVE_D_RECLEN>, B<_DIRENT_HAVE_D_OFF>, "
618 "or B<_DIRENT_HAVE_D_TYPE> are defined."
619 msgstr ""
620 "В POSIX.1 определены только поля I<d_name> и I<d_ino> (расширение XSI). "
621 "Кроме Linux, поле I<d_type> доступно, преимущественно только в системах BSD. "
622 "Остальные поля доступны во многих, но не во всех системах. В glibc программы "
623 "могут определить доступность полей, не определённых в POSIX.1, по наличию "
624 "макросов B<_DIRENT_HAVE_D_NAMLEN>, B<_DIRENT_HAVE_D_RECLEN>, "
625 "B<_DIRENT_HAVE_D_OFF> или B<_DIRENT_HAVE_D_TYPE>."
626
627 #. type: SS
628 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
629 #: opensuse-tumbleweed
630 #, fuzzy, no-wrap
631 #| msgid "The d_name field"
632 msgid "The \\f[I].d_name\\fB field"
633 msgstr "Поле d_name"
634
635 #. type: Plain text
636 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
637 #: opensuse-tumbleweed
638 #, fuzzy
639 #| msgid ""
640 #| "The I<dirent> structure definition shown above is taken from the glibc "
641 #| "headers, and shows the I<d_name> field with a fixed size."
642 msgid ""
643 "The I<dirent> structure definition shown above is taken from the glibc "
644 "headers, and shows the I<.d_name> field with a fixed size."
645 msgstr ""
646 "Определение структуры I<dirent>, показанное выше, взято из заголовочных "
647 "файлов glibc и отражает поле I<d_name> с постоянным размером."
648
649 #. type: Plain text
650 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
651 #: opensuse-tumbleweed
652 #, fuzzy
653 #| msgid ""
654 #| "I<Warning>: applications should avoid any dependence on the size of the "
655 #| "I<d_name> field. POSIX defines it as I<char\\ d_name[]>, a character "
656 #| "array of unspecified size, with at most B<NAME_MAX> characters preceding "
657 #| "the terminating null byte (\\(aq\\e0\\(aq)."
658 msgid ""
659 "I<Warning>: applications should avoid any dependence on the size of the "
660 "I<.d_name> field. POSIX defines it as I<char\\ d_name[]>, a character array "
661 "of unspecified size, with at most B<NAME_MAX> characters preceding the "
662 "terminating null byte (\\[aq]\\[rs]0\\[aq])."
663 msgstr ""
664 "I<Предупреждение>: приложения не должны зависеть от размера поля I<d_name>. "
665 "В POSIX оно определено как I<char\\ d_name[]>, массив символов "
666 "неопределённого размера, не более B<NAME_MAX> символов с конечным байтом "
667 "null (\\(aq\\e0\\(aq)."
668
669 #. type: Plain text
670 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
671 #: opensuse-tumbleweed
672 #, fuzzy
673 #| msgid ""
674 #| "POSIX.1 explicitly notes that this field should not be used as an "
675 #| "lvalue. The standard also notes that the use of I<sizeof(d_name)> is "
676 #| "incorrect; use I<strlen(d_name)> instead. (On some systems, this field "
677 #| "is defined as I<char\\ d_name[1]>!) By implication, the use "
678 #| "I<sizeof(struct dirent)> to capture the size of the record including the "
679 #| "size of I<d_name> is also incorrect."
680 msgid ""
681 "POSIX.1 explicitly notes that this field should not be used as an lvalue. "
682 "The standard also notes that the use of I<sizeof(.d_name)> is incorrect; use "
683 "I<strlen(.d_name)> instead. (On some systems, this field is defined as "
684 "I<char\\ d_name[1]>!) By implication, the use I<sizeof(struct dirent)> to "
685 "capture the size of the record including the size of I<.d_name> is also "
686 "incorrect."
687 msgstr ""
688 "В POSIX.1 явно сказано, что это поле не должно использоваться как lvalue. В "
689 "стандарте также отмечено, что использование I<sizeof(d_name)> некорректно; "
690 "вместо него используйте I<strlen(d_name)> (в некоторых системах это поле "
691 "определено как I<char\\ d_name[1]>!). Как следствие, использовать "
692 "I<sizeof(struct dirent)> для получения размера записи, включающей размер "
693 "I<d_name> также неправильно."
694
695 #. type: Plain text
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 msgid "Note that while the call"
699 msgstr "Заметим, что хотя вызов"
700
701 #. type: Plain text
702 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
703 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
704 #, fuzzy, no-wrap
705 #| msgid " fpathconf(fd, _PC_NAME_MAX)\n"
706 msgid "fpathconf(fd, _PC_NAME_MAX)\n"
707 msgstr " fpathconf(fd, _PC_NAME_MAX)\n"
708
709 #. type: Plain text
710 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
711 #: opensuse-tumbleweed
712 #, fuzzy
713 #| msgid ""
714 #| "returns the value 255 for most filesystems, on some filesystems (e.g., "
715 #| "CIFS, Windows SMB servers), the null-terminated filename that is "
716 #| "(correctly) returned in I<d_name> can actually exceed this size. In such "
717 #| "cases, the I<d_reclen> field will contain a value that exceeds the size "
718 #| "of the glibc I<dirent> structure shown above."
719 msgid ""
720 "returns the value 255 for most filesystems, on some filesystems (e.g., CIFS, "
721 "Windows SMB servers), the null-terminated filename that is (correctly) "
722 "returned in I<.d_name> can actually exceed this size. In such cases, the "
723 "I<.d_reclen> field will contain a value that exceeds the size of the glibc "
724 "I<dirent> structure shown above."
725 msgstr ""
726 "и возвращает значение 255 в большинстве файловых систем, но в некоторых "
727 "файловых системах (например, CIFS, серверы Windows SMB) имя файла с null "
728 "конце, возвращаемое (правильно) в I<d_name>, может превышать этот размер. В "
729 "таких случаях поле I<d_reclen> будет содержать значение, превышающее размер "
730 "структуры glibc I<dirent>, показанной выше."
731
732 #. type: SH
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 #, no-wrap
736 msgid "STANDARDS"
737 msgstr "СТАНДАРТЫ"
738
739 #. type: Plain text
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 msgid "POSIX.1-2008."
743 msgstr "POSIX.1-2008."
744
745 #. type: SH
746 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
747 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
748 #, no-wrap
749 msgid "HISTORY"
750 msgstr "ИСТОРИЯ"
751
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 msgid "POSIX.1-2001, SVr4, 4.3BSD."
756 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
757
758 #. type: SH
759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
761 #, no-wrap
762 msgid "NOTES"
763 msgstr "ПРИМЕЧАНИЯ"
764
765 #. type: Plain text
766 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
767 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
768 msgid "A directory stream is opened using B<opendir>(3)."
769 msgstr "Поток каталога открывается с помощью B<opendir>(3)."
770
771 #. type: Plain text
772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
774 msgid ""
775 "The order in which filenames are read by successive calls to B<readdir>() "
776 "depends on the filesystem implementation; it is unlikely that the names will "
777 "be sorted in any fashion."
778 msgstr ""
779 "Порядок последовательно читаемых имён файлов вызовом B<readdir>() зависит от "
780 "реализации файловой системы; не очень здорово, что имена будут отсортированы "
781 "в непредсказуемом порядке."
782
783 #. type: SH
784 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
785 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
786 #, no-wrap
787 msgid "SEE ALSO"
788 msgstr "СМОТРИТЕ ТАКЖЕ"
789
790 #. type: Plain text
791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
793 msgid ""
794 "B<getdents>(2), B<read>(2), B<closedir>(3), B<dirfd>(3), B<ftw>(3), "
795 "B<offsetof>(3), B<opendir>(3), B<readdir_r>(3), B<rewinddir>(3), "
796 "B<scandir>(3), B<seekdir>(3), B<telldir>(3)"
797 msgstr ""
798 "B<getdents>(2), B<read>(2), B<closedir>(3), B<dirfd>(3), B<ftw>(3), "
799 "B<offsetof>(3), B<opendir>(3), B<readdir_r>(3), B<rewinddir>(3), "
800 "B<scandir>(3), B<seekdir>(3), B<telldir>(3)"
801
802 #. type: TH
803 #: debian-trixie
804 #, no-wrap
805 msgid "2024-06-16"
806 msgstr "16 июня 2024 г."
807
808 #. type: TH
809 #: debian-trixie
810 #, no-wrap
811 msgid "Linux man-pages 6.9.1"
812 msgstr "Страницы руководства Linux 6.9.1"
813
814 #. type: Plain text
815 #: debian-trixie
816 msgid "Standard C library (I<libc>, I<-lc>)"
817 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
818
819 #. type: Plain text
820 #: debian-trixie fedora-44 fedora-rawhide
821 #, fuzzy
822 #| msgid ""
823 #| "The only fields in the I<dirent> structure that are mandated by POSIX.1 "
824 #| "are I<d_name> and I<d_ino>. The other fields are unstandardized, and not "
825 #| "present on all systems; see NOTES below for some further details."
826 msgid ""
827 "The only fields in the I<dirent> structure that are mandated by POSIX.1 are "
828 "I<d_name> and I<d_ino>. The other fields are unstandardized, and not "
829 "present on all systems; see VERSIONS."
830 msgstr ""
831 "В соответствие с POSIX.1, структура I<dirent> обязательно должна содержать "
832 "поле I<d_name>[] и I<d_ino>. Другие поля не стандартизованы и имеются не во "
833 "всех системах; подробней смотрите ЗАМЕЧАНИЯ далее."
834
835 #. type: TP
836 #: debian-trixie fedora-44 fedora-rawhide
837 #, no-wrap
838 msgid "I<d_ino>"
839 msgstr "I<d_ino>"
840
841 #. type: Plain text
842 #: debian-trixie fedora-44 fedora-rawhide
843 msgid "This is the inode number of the file."
844 msgstr "Номер иноды файла."
845
846 #. type: TP
847 #: debian-trixie fedora-44 fedora-rawhide
848 #, no-wrap
849 msgid "I<d_off>"
850 msgstr "I<d_off>"
851
852 #. https://lwn.net/Articles/544298/
853 #. type: Plain text
854 #: debian-trixie fedora-44 fedora-rawhide
855 msgid ""
856 "The value returned in I<d_off> is the same as would be returned by calling "
857 "B<telldir>(3) at the current position in the directory stream. Be aware "
858 "that despite its type and name, the I<d_off> field is seldom any kind of "
859 "directory offset on modern filesystems. Applications should treat this "
860 "field as an opaque value, making no assumptions about its contents; see also "
861 "B<telldir>(3)."
862 msgstr ""
863 "Значение, возвращаемое в I<d_off>, тоже самое что и после вызова "
864 "B<telldir>(3) в текущем положении курсора в потоке каталога. Учтите, что не "
865 "смотря на тип и имя, в современных файловых системах поле I<d_off> мало "
866 "похоже на смещение в каталоге. Приложения должны считать, что это поле "
867 "неизвестного типа(чёрным ящиком) и не делать предположений о его содержимом; "
868 "смотрите также B<telldir>(3)."
869
870 #. type: TP
871 #: debian-trixie fedora-44 fedora-rawhide
872 #, no-wrap
873 msgid "I<d_reclen>"
874 msgstr "I<d_reclen>"
875
876 #. type: TP
877 #: debian-trixie fedora-44 fedora-rawhide
878 #, no-wrap
879 msgid "I<d_type>"
880 msgstr "I<d_type>"
881
882 #. type: Plain text
883 #: debian-trixie fedora-44 fedora-rawhide
884 #, fuzzy
885 #| msgid ""
886 #| "When a suitable feature test macro is defined (B<_DEFAULT_SOURCE> on "
887 #| "glibc versions since 2.19, or B<_BSD_SOURCE> on glibc versions 2.19 and "
888 #| "earlier), glibc defines the following macro constants for the value "
889 #| "returned in I<d_type>:"
890 msgid ""
891 "When a suitable feature test macro is defined (B<_DEFAULT_SOURCE> since "
892 "glibc 2.19, or B<_BSD_SOURCE> on glibc 2.19 and earlier), glibc defines the "
893 "following macro constants for the value returned in I<d_type>:"
894 msgstr ""
895 "Если определён подходящий макрос тестирования свойств (B<_DEFAULT_SOURCE> в "
896 "версиях glibc начиная с 2.19 или B<_BSD_SOURCE> в версиях glibc 2.19 и "
897 "старее), то для значения, возвращаемого в I<d_type>, glibc определяет "
898 "следующие макросы-константы:"
899
900 #. kernel 2.6.27
901 #. The same sentence is in getdents.2
902 #. type: Plain text
903 #: debian-trixie fedora-44 fedora-rawhide
904 msgid ""
905 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
906 "have full support for returning the file type in I<d_type>. All "
907 "applications must properly handle a return of B<DT_UNKNOWN>."
908 msgstr ""
909 "В настоящее время, только файловые системы (среди которых: Btrfs, ext2, ext3 "
910 "и ext4) поддерживают возврат типа файла в I<d_type>. Все приложения должны "
911 "правильно обрабатывать возвращаемое значение B<DT_UNKNOWN>."
912
913 #. type: TP
914 #: debian-trixie fedora-44 fedora-rawhide
915 #, no-wrap
916 msgid "I<d_name>"
917 msgstr "I<d_name>"
918
919 #. POSIX.1-2001, POSIX.1-2008
920 #. type: Plain text
921 #: debian-trixie fedora-44 fedora-rawhide
922 msgid ""
923 "Only the fields I<d_name> and (as an XSI extension) I<d_ino> are specified "
924 "in POSIX.1. Other than Linux, the I<d_type> field is available mainly only "
925 "on BSD systems. The remaining fields are available on many, but not all "
926 "systems. Under glibc, programs can check for the availability of the fields "
927 "not defined in POSIX.1 by testing whether the macros "
928 "B<_DIRENT_HAVE_D_NAMLEN>, B<_DIRENT_HAVE_D_RECLEN>, B<_DIRENT_HAVE_D_OFF>, "
929 "or B<_DIRENT_HAVE_D_TYPE> are defined."
930 msgstr ""
931 "В POSIX.1 определены только поля I<d_name> и I<d_ino> (расширение XSI). "
932 "Кроме Linux, поле I<d_type> доступно, преимущественно только в системах BSD. "
933 "Остальные поля доступны во многих, но не во всех системах. В glibc программы "
934 "могут определить доступность полей, не определённых в POSIX.1, по наличию "
935 "макросов B<_DIRENT_HAVE_D_NAMLEN>, B<_DIRENT_HAVE_D_RECLEN>, "
936 "B<_DIRENT_HAVE_D_OFF> или B<_DIRENT_HAVE_D_TYPE>."
937
938 #. type: SS
939 #: debian-trixie fedora-44 fedora-rawhide
940 #, no-wrap
941 msgid "The d_name field"
942 msgstr "Поле d_name"
943
944 #. type: Plain text
945 #: debian-trixie fedora-44 fedora-rawhide
946 msgid ""
947 "The I<dirent> structure definition shown above is taken from the glibc "
948 "headers, and shows the I<d_name> field with a fixed size."
949 msgstr ""
950 "Определение структуры I<dirent>, показанное выше, взято из заголовочных "
951 "файлов glibc и отражает поле I<d_name> с постоянным размером."
952
953 #. type: Plain text
954 #: debian-trixie fedora-44 fedora-rawhide
955 #, fuzzy
956 #| msgid ""
957 #| "I<Warning>: applications should avoid any dependence on the size of the "
958 #| "I<d_name> field. POSIX defines it as I<char\\ d_name[]>, a character "
959 #| "array of unspecified size, with at most B<NAME_MAX> characters preceding "
960 #| "the terminating null byte (\\(aq\\e0\\(aq)."
961 msgid ""
962 "I<Warning>: applications should avoid any dependence on the size of the "
963 "I<d_name> field. POSIX defines it as I<char\\ d_name[]>, a character array "
964 "of unspecified size, with at most B<NAME_MAX> characters preceding the "
965 "terminating null byte (\\[aq]\\[rs]0\\[aq])."
966 msgstr ""
967 "I<Предупреждение>: приложения не должны зависеть от размера поля I<d_name>. "
968 "В POSIX оно определено как I<char\\ d_name[]>, массив символов "
969 "неопределённого размера, не более B<NAME_MAX> символов с конечным байтом "
970 "null (\\(aq\\e0\\(aq)."
971
972 #. type: Plain text
973 #: debian-trixie fedora-44 fedora-rawhide
974 #, fuzzy
975 #| msgid ""
976 #| "POSIX.1 explicitly notes that this field should not be used as an "
977 #| "lvalue. The standard also notes that the use of I<sizeof(d_name)> is "
978 #| "incorrect; use I<strlen(d_name)> instead. (On some systems, this field "
979 #| "is defined as I<char\\ d_name[1]>!) By implication, the use "
980 #| "I<sizeof(struct dirent)> to capture the size of the record including the "
981 #| "size of I<d_name> is also incorrect."
982 msgid ""
983 "POSIX.1 explicitly notes that this field should not be used as an lvalue. "
984 "The standard also notes that the use of I<sizeof(d_name)> is incorrect; use "
985 "I<strlen(d_name)> instead. (On some systems, this field is defined as "
986 "I<char\\ d_name[1]>!) By implication, the use I<sizeof(struct dirent)> to "
987 "capture the size of the record including the size of I<d_name> is also "
988 "incorrect."
989 msgstr ""
990 "В POSIX.1 явно сказано, что это поле не должно использоваться как lvalue. В "
991 "стандарте также отмечено, что использование I<sizeof(d_name)> некорректно; "
992 "вместо него используйте I<strlen(d_name)> (в некоторых системах это поле "
993 "определено как I<char\\ d_name[1]>!). Как следствие, использовать "
994 "I<sizeof(struct dirent)> для получения размера записи, включающей размер "
995 "I<d_name> также неправильно."
996
997 #. type: Plain text
998 #: debian-trixie fedora-44 fedora-rawhide
999 msgid ""
1000 "returns the value 255 for most filesystems, on some filesystems (e.g., CIFS, "
1001 "Windows SMB servers), the null-terminated filename that is (correctly) "
1002 "returned in I<d_name> can actually exceed this size. In such cases, the "
1003 "I<d_reclen> field will contain a value that exceeds the size of the glibc "
1004 "I<dirent> structure shown above."
1005 msgstr ""
1006 "и возвращает значение 255 в большинстве файловых систем, но в некоторых "
1007 "файловых системах (например, CIFS, серверы Windows SMB) имя файла с null "
1008 "конце, возвращаемое (правильно) в I<d_name>, может превышать этот размер. В "
1009 "таких случаях поле I<d_reclen> будет содержать значение, превышающее размер "
1010 "структуры glibc I<dirent>, показанной выше."
1011
1012 #. type: TH
1013 #: fedora-44 fedora-rawhide
1014 #, no-wrap
1015 msgid "2024-07-23"
1016 msgstr "23 июля 2024 г."
1017
1018 #. type: TH
1019 #: fedora-44 fedora-rawhide
1020 #, no-wrap
1021 msgid "Linux man-pages 6.13"
1022 msgstr "Страницы руководства Linux 6.13"
1023
1024 #. type: TH
1025 #: mageia-cauldron
1026 #, no-wrap
1027 msgid "Linux man-pages 6.17"
1028 msgstr "Страницы руководства Linux 6.17"
1029
1030 #. type: TH
1031 #: opensuse-leap-16-1 opensuse-tumbleweed
1032 #, no-wrap
1033 msgid "Linux man-pages (unreleased)"
1034 msgstr "Страницы руководства Linux (не выпущены)"