| 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]>, 2013-2014, 2017. |
| 5 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 6 |
# Vladislav <[email protected]>, 2015. |
| 7 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 8 |
# Иван Павлов <[email protected]>, 2017, 2019. |
| 9 |
msgid "" |
| 10 |
msgstr "" |
| 11 |
"Project-Id-Version: manpages-l10n\n" |
| 12 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 13 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 14 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 15 |
"Language-Team: Russian <[email protected]>\n" |
| 16 |
"Language: ru\n" |
| 17 |
"MIME-Version: 1.0\n" |
| 18 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 19 |
"Content-Transfer-Encoding: 8bit\n" |
| 20 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 21 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 22 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 23 |
"X-Generator: Lokalize 2.0\n" |
| 24 |
|
| 25 |
#. type: TH |
| 26 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 27 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "getdents" |
| 30 |
msgstr "getdents" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 34 |
#, no-wrap |
| 35 |
msgid "2026-04-08" |
| 36 |
msgstr "8 апреля 2026 г." |
| 37 |
|
| 38 |
#. type: TH |
| 39 |
#: archlinux debian-unstable |
| 40 |
#, fuzzy, no-wrap |
| 41 |
#| msgid "Linux man-pages 6.17" |
| 42 |
msgid "Linux man-pages 6.18" |
| 43 |
msgstr "Справочные страницы Linux 6.17" |
| 44 |
|
| 45 |
#. type: SH |
| 46 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 47 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
#, no-wrap |
| 49 |
msgid "NAME" |
| 50 |
msgstr "НАИМЕНОВАНИЕ" |
| 51 |
|
| 52 |
#. type: Plain text |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
msgid "getdents, getdents64 - get directory entries" |
| 56 |
msgstr "getdents, getdents64 - возвращает записи каталога" |
| 57 |
|
| 58 |
#. type: SH |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
#, no-wrap |
| 62 |
msgid "LIBRARY" |
| 63 |
msgstr "БИБЛИОТЕКА" |
| 64 |
|
| 65 |
#. type: Plain text |
| 66 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 67 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 69 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 70 |
|
| 71 |
#. type: SH |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "SYNOPSIS" |
| 76 |
msgstr "СИНТАКСИС" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "" |
| 83 |
"B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n" |
| 84 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 85 |
msgstr "" |
| 86 |
"B<#include E<lt>sys/syscall.hE<gt>> /* определения констант B<SYS_*> */\n" |
| 87 |
"B<#include E<lt>unistd.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 "" |
| 94 |
"B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n" |
| 95 |
"B< unsigned int >I<count>B<);>\n" |
| 96 |
msgstr "" |
| 97 |
"B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n" |
| 98 |
"B< unsigned int >I<count>B<);>\n" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
#, no-wrap |
| 104 |
msgid "" |
| 105 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 106 |
"B<#include E<lt>dirent.hE<gt>>\n" |
| 107 |
msgstr "" |
| 108 |
"B<#define _GNU_SOURCE> /* Смотрите feature_test_macros(7) */\n" |
| 109 |
"B<#include E<lt>dirent.hE<gt>>\n" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 113 |
#: opensuse-tumbleweed |
| 114 |
#, fuzzy, no-wrap |
| 115 |
#| msgid "B<ssize_t getdents64(int >I<fd>B<, void *>I<dirp>B<, size_t >I<count>B<);>\n" |
| 116 |
msgid "" |
| 117 |
"B<ssize_t getdents64(>size_t count;\n" |
| 118 |
"B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n" |
| 119 |
msgstr "B<ssize_t getdents64(int >I<fd>B<, void *>I<dirp>B<, size_t >I<count>B<);>\n" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
#, fuzzy |
| 125 |
#| msgid "" |
| 126 |
#| "Glibc does not provide a wrapper for this system call; call it using " |
| 127 |
#| "B<syscall>(2)." |
| 128 |
msgid "" |
| 129 |
"I<Note>: glibc provides no wrapper for B<getdents>(), necessitating the use " |
| 130 |
"of B<syscall>(2)." |
| 131 |
msgstr "" |
| 132 |
"В glibc нет обёртки для данного системного вызова; запускайте его с помощью " |
| 133 |
"B<syscall>(2)." |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 137 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 138 |
#, fuzzy |
| 139 |
#| msgid "" |
| 140 |
#| "I<Note>: No declaration of this system call is provided in glibc headers; " |
| 141 |
#| "see NOTES." |
| 142 |
msgid "" |
| 143 |
"I<Note>: There is no definition of I<struct linux_dirent> in glibc; see " |
| 144 |
"NOTES." |
| 145 |
msgstr "" |
| 146 |
"I<Замечание>: В заголовочных файлах glibc этой системный вызов отсутствует; " |
| 147 |
"смотрите ЗАМЕЧАНИЯ." |
| 148 |
|
| 149 |
#. type: SH |
| 150 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 151 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 152 |
#, no-wrap |
| 153 |
msgid "DESCRIPTION" |
| 154 |
msgstr "ОПИСАНИЕ" |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
#, fuzzy |
| 159 |
#| msgid "" |
| 160 |
#| "These are not the interfaces you are interested in. Look at " |
| 161 |
#| "B<readdir>(3) for the POSIX-conforming C library interface. This page " |
| 162 |
#| "documents the bare kernel system call interfaces." |
| 163 |
msgid "" |
| 164 |
"These are not the interfaces you are interested in. Look at B<readdir>(3) " |
| 165 |
"for the POSIX-conforming C library interface." |
| 166 |
msgstr "" |
| 167 |
"Это не те функции, которые должны представлять для вас интерес. Смотрите " |
| 168 |
"описание функции B<readdir>(3), которая является интерфейсом библиотеки " |
| 169 |
"языка C, соответствующим стандарту POSIX. В этой странице описаны " |
| 170 |
"минимальные интерфейсы системных вызовов ядра." |
| 171 |
|
| 172 |
#. type: SS |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
#, no-wrap |
| 176 |
msgid "getdents()" |
| 177 |
msgstr "getdents()" |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "" |
| 183 |
"The system call B<getdents>() reads several I<linux_dirent> structures from " |
| 184 |
"the directory referred to by the open file descriptor I<fd> into the buffer " |
| 185 |
"pointed to by I<dirp>. The argument I<count> specifies the size of that " |
| 186 |
"buffer." |
| 187 |
msgstr "" |
| 188 |
"Системный вызов B<getdents>() читает несколько структур I<linux_dirent> из " |
| 189 |
"каталога, на который указывает открытый файловый дескриптор I<fd>, в буфер, " |
| 190 |
"указанный в I<dirp>. В аргументе I<count> задаётся размер этого буфера." |
| 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 |
msgid "The I<linux_dirent> structure is declared as follows:" |
| 196 |
msgstr "Структура I<linux_dirent> определена следующим образом:" |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 200 |
#: opensuse-tumbleweed |
| 201 |
#, fuzzy, no-wrap |
| 202 |
#| msgid "" |
| 203 |
#| "struct linux_dirent {\n" |
| 204 |
#| " unsigned long d_ino; /* Inode number */\n" |
| 205 |
#| " unsigned long d_off; /* Offset to next I<linux_dirent> */\n" |
| 206 |
#| " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n" |
| 207 |
#| " char d_name[]; /* Filename (null-terminated) */\n" |
| 208 |
#| " /* length is actually (d_reclen - 2 -\n" |
| 209 |
#| " offsetof(struct linux_dirent, d_name)) */\n" |
| 210 |
#| " /*\n" |
| 211 |
#| " char pad; // Zero padding byte\n" |
| 212 |
#| " char d_type; // File type (only since Linux\n" |
| 213 |
#| " // 2.6.4); offset is (d_reclen - 1)\n" |
| 214 |
#| " */\n" |
| 215 |
#| "}\n" |
| 216 |
msgid "" |
| 217 |
"struct linux_dirent {\n" |
| 218 |
" unsigned long d_ino; /* Inode number */\n" |
| 219 |
" unsigned long d_off; /* Not an offset; see below */\n" |
| 220 |
" unsigned short d_reclen; /* Length of this \\f[I]linux_dirent\\fR */\n" |
| 221 |
" char d_name[]; /* Filename (null-terminated) */\n" |
| 222 |
" /* length is actually (d_reclen - 2 -\n" |
| 223 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 224 |
" /*\n" |
| 225 |
" char pad; // Zero padding byte\n" |
| 226 |
" char d_type; // File type (only since Linux\n" |
| 227 |
" // 2.6.4); offset is (d_reclen - 1)\n" |
| 228 |
" */\n" |
| 229 |
"}\n" |
| 230 |
msgstr "" |
| 231 |
"struct linux_dirent {\n" |
| 232 |
" unsigned long d_ino; /* номер иноды */\n" |
| 233 |
" unsigned long d_off; /* смещение до следующей I<linux_dirent> */\n" |
| 234 |
" unsigned short d_reclen; /* длина этой I<linux_dirent> */\n" |
| 235 |
" char d_name[]; /* имя файла (в конце null) */\n" |
| 236 |
" /* реальная длина (d_reclen - 2 -\n" |
| 237 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 238 |
" /*\n" |
| 239 |
" char pad; // нулевой байт заполнения\n" |
| 240 |
" char d_type; // тип файла (только начиная с Linux\n" |
| 241 |
" // 2.6.4); смещение (d_reclen - 1)\n" |
| 242 |
" */\n" |
| 243 |
"}\n" |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 247 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
#, fuzzy |
| 249 |
#| msgid "" |
| 250 |
#| "I<d_ino> is an inode number. I<d_off> is the distance from the start of " |
| 251 |
#| "the directory to the start of the next I<linux_dirent>. I<d_reclen> is " |
| 252 |
#| "the size of this entire I<linux_dirent>. I<d_name> is a null-terminated " |
| 253 |
#| "filename." |
| 254 |
msgid "" |
| 255 |
"I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with " |
| 256 |
"no specific meaning to user space, though on older filesystems it used to be " |
| 257 |
"the distance from the start of the directory to the start of the next " |
| 258 |
"I<linux_dirent>; see B<readdir>(3). I<d_reclen> is the size of this entire " |
| 259 |
"I<linux_dirent>. I<d_name> is a null-terminated filename." |
| 260 |
msgstr "" |
| 261 |
"В I<d_ino> указан номер inode. В I<d_off> задаётся расстояние от начала " |
| 262 |
"каталога до начала следующей I<linux_dirent>. В I<d_reclen> указывается " |
| 263 |
"размер данного I<linux_dirent> целиком. В I<d_name> задаётся имя файла, " |
| 264 |
"завершающееся null." |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
msgid "" |
| 270 |
"I<d_type> is a byte at the end of the structure that indicates the file " |
| 271 |
"type. It contains one of the following values (defined in " |
| 272 |
"I<E<lt>dirent.hE<gt>>):" |
| 273 |
msgstr "" |
| 274 |
"I<d_type> \\(em байт в конце структуры, которым определяется тип файла. В " |
| 275 |
"нём содержится одно из следующих значений (определённых в " |
| 276 |
"I<E<lt>dirent.hE<gt>>):" |
| 277 |
|
| 278 |
#. type: TP |
| 279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 280 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 281 |
#, no-wrap |
| 282 |
msgid "B<DT_BLK>" |
| 283 |
msgstr "B<DT_BLK>" |
| 284 |
|
| 285 |
#. type: Plain text |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
msgid "This is a block device." |
| 289 |
msgstr "блочное устройство" |
| 290 |
|
| 291 |
#. type: TP |
| 292 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 293 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 294 |
#, no-wrap |
| 295 |
msgid "B<DT_CHR>" |
| 296 |
msgstr "B<DT_CHR>" |
| 297 |
|
| 298 |
#. type: Plain text |
| 299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 301 |
msgid "This is a character device." |
| 302 |
msgstr "символьное устройство" |
| 303 |
|
| 304 |
#. type: TP |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
#, no-wrap |
| 308 |
msgid "B<DT_DIR>" |
| 309 |
msgstr "B<DT_DIR>" |
| 310 |
|
| 311 |
#. type: Plain text |
| 312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 313 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 314 |
msgid "This is a directory." |
| 315 |
msgstr "каталог" |
| 316 |
|
| 317 |
#. type: TP |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "B<DT_FIFO>" |
| 322 |
msgstr "B<DT_FIFO>" |
| 323 |
|
| 324 |
#. type: Plain text |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
msgid "This is a named pipe (FIFO)." |
| 328 |
msgstr "именованный канал (FIFO)" |
| 329 |
|
| 330 |
#. type: TP |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
#, no-wrap |
| 334 |
msgid "B<DT_LNK>" |
| 335 |
msgstr "B<DT_LNK>" |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
msgid "This is a symbolic link." |
| 341 |
msgstr "символическая ссылка" |
| 342 |
|
| 343 |
#. type: TP |
| 344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 345 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 346 |
#, no-wrap |
| 347 |
msgid "B<DT_REG>" |
| 348 |
msgstr "B<DT_REG>" |
| 349 |
|
| 350 |
#. type: Plain text |
| 351 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 352 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 353 |
msgid "This is a regular file." |
| 354 |
msgstr "обычный файл" |
| 355 |
|
| 356 |
#. type: TP |
| 357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 358 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 359 |
#, no-wrap |
| 360 |
msgid "B<DT_SOCK>" |
| 361 |
msgstr "B<DT_SOCK>" |
| 362 |
|
| 363 |
#. type: Plain text |
| 364 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 365 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 366 |
msgid "This is a UNIX domain socket." |
| 367 |
msgstr "доменный сокет UNIX" |
| 368 |
|
| 369 |
#. type: TP |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
#, no-wrap |
| 373 |
msgid "B<DT_UNKNOWN>" |
| 374 |
msgstr "B<DT_UNKNOWN>" |
| 375 |
|
| 376 |
#. type: Plain text |
| 377 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 378 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 379 |
msgid "The file type is unknown." |
| 380 |
msgstr "Неизвестный тип." |
| 381 |
|
| 382 |
#. type: Plain text |
| 383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 385 |
#, fuzzy |
| 386 |
#| msgid "" |
| 387 |
#| "The I<d_type> field is implemented since Linux 2.6.4. It occupies a " |
| 388 |
#| "space that was previously a zero-filled padding byte in the " |
| 389 |
#| "I<linux_dirent> structure. Thus, on kernels up to and including 2.6.3, " |
| 390 |
#| "attempting to access this field always provides the value 0 " |
| 391 |
#| "(B<DT_UNKNOWN>)." |
| 392 |
msgid "" |
| 393 |
"The I<d_type> field is implemented since Linux 2.6.4. It occupies a space " |
| 394 |
"that was previously a zero-filled padding byte in the I<linux_dirent> " |
| 395 |
"structure. Thus, on kernels up to and including Linux 2.6.3, attempting to " |
| 396 |
"access this field always provides the value 0 (B<DT_UNKNOWN>)." |
| 397 |
msgstr "" |
| 398 |
"Поле I<d_type> появилось начиная с Linux 2.6.4. Оно занимает пространство, " |
| 399 |
"которое раньше в структуре I<linux_dirent> было отведено для заполняющего " |
| 400 |
"байта с нулевым значением. Поэтому при работе с ядрами до версии 2.6.3 " |
| 401 |
"включительно при чтении значения этого поля всегда возвращается 0 " |
| 402 |
"(B<DT_UNKNOWN>)." |
| 403 |
|
| 404 |
#. kernel 2.6.27 |
| 405 |
#. The same sentence is in readdir.2 |
| 406 |
#. type: Plain text |
| 407 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 408 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 409 |
msgid "" |
| 410 |
"Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) " |
| 411 |
"have full support for returning the file type in I<d_type>. All " |
| 412 |
"applications must properly handle a return of B<DT_UNKNOWN>." |
| 413 |
msgstr "" |
| 414 |
"В настоящее время, только файловые системы (среди которых: Btrfs, ext2, ext3 " |
| 415 |
"и ext4) поддерживают возврат типа файла в I<d_type>. Все приложения должны " |
| 416 |
"правильно обрабатывать возвращаемое значение B<DT_UNKNOWN>." |
| 417 |
|
| 418 |
#. type: SS |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
#, no-wrap |
| 422 |
msgid "getdents64()" |
| 423 |
msgstr "getdents64()" |
| 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 original Linux B<getdents>() system call did not handle large " |
| 430 |
"filesystems and large file offsets. Consequently, Linux 2.4 added " |
| 431 |
"B<getdents64>(), with wider types for the I<d_ino> and I<d_off> fields. In " |
| 432 |
"addition, B<getdents64>() supports an explicit I<d_type> field." |
| 433 |
msgstr "" |
| 434 |
"Первоначальный системный вызов Linux B<getdents>() не работал с файловыми " |
| 435 |
"системами большого размера и большими смещениями файлов. В связи с этим, в " |
| 436 |
"Linux 2.4 была добавлен B<getdents64>(), с более широкими типами полей " |
| 437 |
"I<d_ino> и I<d_off>. Также B<getdents64>() поддерживает явно указанное поле " |
| 438 |
"I<d_type>." |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "" |
| 444 |
"The B<getdents64>() system call is like B<getdents>(), except that its " |
| 445 |
"second argument is a pointer to a buffer containing structures of the " |
| 446 |
"following type:" |
| 447 |
msgstr "" |
| 448 |
"Системный вызов B<getdents64>() подобен B<getdents>(), за исключением того, " |
| 449 |
"что второй аргумент является указателем на буфер, содержащий структуры " |
| 450 |
"следующего типа:" |
| 451 |
|
| 452 |
#. type: Plain text |
| 453 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 454 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 455 |
#, fuzzy, no-wrap |
| 456 |
#| msgid "" |
| 457 |
#| "struct linux_dirent64 {\n" |
| 458 |
#| " ino64_t d_ino; /* 64-bit inode number */\n" |
| 459 |
#| " off64_t d_off; /* 64-bit offset to next structure */\n" |
| 460 |
#| " unsigned short d_reclen; /* Size of this dirent */\n" |
| 461 |
#| " unsigned char d_type; /* File type */\n" |
| 462 |
#| " char d_name[]; /* Filename (null-terminated) */\n" |
| 463 |
#| "};\n" |
| 464 |
msgid "" |
| 465 |
"struct linux_dirent64 {\n" |
| 466 |
" ino64_t d_ino; /* 64-bit inode number */\n" |
| 467 |
" off64_t d_off; /* Not an offset; see getdents() */\n" |
| 468 |
" unsigned short d_reclen; /* Size of this dirent */\n" |
| 469 |
" unsigned char d_type; /* File type */\n" |
| 470 |
" char d_name[]; /* Filename (null-terminated) */\n" |
| 471 |
"};\n" |
| 472 |
msgstr "" |
| 473 |
"struct linux_dirent64 {\n" |
| 474 |
" ino64_t d_ino; /* 64-битный номер иноды */\n" |
| 475 |
" off64_t d_off; /* 64-битное смещение следующей структуры */\n" |
| 476 |
" unsigned short d_reclen; /* размер этой dirent */\n" |
| 477 |
" unsigned char d_type; /* тип файла */\n" |
| 478 |
" char d_name[]; /* имя файла (в конце null) */\n" |
| 479 |
"};\n" |
| 480 |
|
| 481 |
#. type: SH |
| 482 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 483 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 484 |
#, no-wrap |
| 485 |
msgid "RETURN VALUE" |
| 486 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 487 |
|
| 488 |
#. type: Plain text |
| 489 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 490 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 491 |
#, fuzzy |
| 492 |
#| msgid "" |
| 493 |
#| "On success, the number of bytes read is returned. On end of directory, 0 " |
| 494 |
#| "is returned. On error, -1 is returned, and I<errno> is set appropriately." |
| 495 |
msgid "" |
| 496 |
"On success, the number of bytes read is returned. On end of directory, 0 is " |
| 497 |
"returned. On error, -1 is returned, and I<errno> is set to indicate the " |
| 498 |
"error." |
| 499 |
msgstr "" |
| 500 |
"При нормальном завершении работы возвращается количество прочитанных байт. " |
| 501 |
"При достижении конца каталога возвращается 0. В случае ошибки возвращается " |
| 502 |
"-1 и значение I<errno> устанавливается соответствующим образом." |
| 503 |
|
| 504 |
#. type: SH |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
#, no-wrap |
| 508 |
msgid "ERRORS" |
| 509 |
msgstr "ОШИБКИ" |
| 510 |
|
| 511 |
#. type: TP |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
#, no-wrap |
| 515 |
msgid "B<EBADF>" |
| 516 |
msgstr "B<EBADF>" |
| 517 |
|
| 518 |
#. type: Plain text |
| 519 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 520 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 521 |
msgid "Invalid file descriptor I<fd>." |
| 522 |
msgstr "Неверный файловый дескриптор I<fd>." |
| 523 |
|
| 524 |
#. type: TP |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
#, no-wrap |
| 528 |
msgid "B<EFAULT>" |
| 529 |
msgstr "B<EFAULT>" |
| 530 |
|
| 531 |
#. type: Plain text |
| 532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 534 |
msgid "Argument points outside the calling process's address space." |
| 535 |
msgstr "" |
| 536 |
"Аргумент указывает за пределы адресного пространства вызывающего процесса." |
| 537 |
|
| 538 |
#. type: TP |
| 539 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 540 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 541 |
#, no-wrap |
| 542 |
msgid "B<EINVAL>" |
| 543 |
msgstr "B<EINVAL>" |
| 544 |
|
| 545 |
#. type: Plain text |
| 546 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 547 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 548 |
msgid "Result buffer is too small." |
| 549 |
msgstr "Буфер результата слишком мал." |
| 550 |
|
| 551 |
#. type: TP |
| 552 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 553 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 554 |
#, no-wrap |
| 555 |
msgid "B<ENOENT>" |
| 556 |
msgstr "B<ENOENT>" |
| 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 "No such directory." |
| 562 |
msgstr "Заданный каталог не существует." |
| 563 |
|
| 564 |
#. type: TP |
| 565 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 566 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 567 |
#, no-wrap |
| 568 |
msgid "B<ENOTDIR>" |
| 569 |
msgstr "B<ENOTDIR>" |
| 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 |
msgid "File descriptor does not refer to a directory." |
| 575 |
msgstr "Файловый дескриптор указывает не на каталог." |
| 576 |
|
| 577 |
#. type: SH |
| 578 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 579 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 580 |
#, no-wrap |
| 581 |
msgid "STANDARDS" |
| 582 |
msgstr "СТАНДАРТЫ" |
| 583 |
|
| 584 |
#. type: Plain text |
| 585 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 586 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 587 |
msgid "None." |
| 588 |
msgstr "Отсутствуют." |
| 589 |
|
| 590 |
#. type: SH |
| 591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 592 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 593 |
#, no-wrap |
| 594 |
msgid "HISTORY" |
| 595 |
msgstr "ИСТОРИЯ" |
| 596 |
|
| 597 |
#. type: TP |
| 598 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 599 |
#, fuzzy, no-wrap |
| 600 |
#| msgid "getdents64()" |
| 601 |
msgid "B<getdents>()" |
| 602 |
msgstr "getdents64()" |
| 603 |
|
| 604 |
#. SVr4 documents additional ENOLINK, EIO error conditions. |
| 605 |
#. type: Plain text |
| 606 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 607 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 608 |
msgid "SVr4." |
| 609 |
msgstr "SVr4." |
| 610 |
|
| 611 |
#. type: TP |
| 612 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 613 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 614 |
#, fuzzy, no-wrap |
| 615 |
#| msgid "getdents64()" |
| 616 |
msgid "B<getdents64>()" |
| 617 |
msgstr "getdents64()" |
| 618 |
|
| 619 |
#. type: Plain text |
| 620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 622 |
msgid "glibc 2.30." |
| 623 |
msgstr "glibc 2.30." |
| 624 |
|
| 625 |
#. type: SH |
| 626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 627 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 628 |
#, no-wrap |
| 629 |
msgid "NOTES" |
| 630 |
msgstr "ПРИМЕЧАНИЯ" |
| 631 |
|
| 632 |
#. type: Plain text |
| 633 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 634 |
#, fuzzy |
| 635 |
#| msgid "" |
| 636 |
#| "Glibc does not provide a wrapper for these system calls; call them using " |
| 637 |
#| "B<syscall>(2). You will need to define the I<linux_dirent> or " |
| 638 |
#| "I<linux_dirent64> structure yourself. However, you probably want to use " |
| 639 |
#| "B<readdir>(3) instead." |
| 640 |
msgid "" |
| 641 |
"glibc does not provide a wrapper for B<getdents>(); call B<getdents>() " |
| 642 |
"using B<syscall>(2). In that case you will need to define the " |
| 643 |
"I<linux_dirent> structure yourself." |
| 644 |
msgstr "" |
| 645 |
"В glibc нет обёртки для данных системных вызовов; запускайте их с помощью " |
| 646 |
"B<syscall>(2). Структуру I<linux_dirent> или I<linux_dirent64> нужно " |
| 647 |
"определить самостоятельно. Однако лучше использовать B<readdir>(3)." |
| 648 |
|
| 649 |
#. type: Plain text |
| 650 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 651 |
msgid "" |
| 652 |
"The B<getdents64>() system call accepts an B<unsigned int> argument " |
| 653 |
"I<count> and assumes that I<count> does not exceed B<INT_MAX>. The glibc " |
| 654 |
"wrapper function sets I<count> to B<INT_MAX> if it exceeds B<INT_MAX>. " |
| 655 |
"glibc defines a I<dirent64> structure, which is similar to I<linux_dirent64> " |
| 656 |
"but with a 256-byte I<d_name>." |
| 657 |
msgstr "" |
| 658 |
|
| 659 |
#. type: Plain text |
| 660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 662 |
msgid "Probably, you want to use B<readdir>(3) instead of these system calls." |
| 663 |
msgstr "" |
| 664 |
|
| 665 |
#. type: Plain text |
| 666 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 667 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 668 |
msgid "These calls supersede B<readdir>(2)." |
| 669 |
msgstr "Данные системные вызовы заместил B<readdir>(2)." |
| 670 |
|
| 671 |
#. type: SH |
| 672 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 673 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 674 |
#, no-wrap |
| 675 |
msgid "EXAMPLES" |
| 676 |
msgstr "ПРИМЕРЫ" |
| 677 |
|
| 678 |
#. FIXME The example program needs to be revised, since it uses the older |
| 679 |
#. getdents() system call and the structure with smaller field widths. |
| 680 |
#. type: Plain text |
| 681 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 682 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 683 |
msgid "" |
| 684 |
"The program below demonstrates the use of B<getdents>(). The following " |
| 685 |
"output shows an example of what we see when running this program on an ext2 " |
| 686 |
"directory:" |
| 687 |
msgstr "" |
| 688 |
"В программе, показанной далее, демонстрируется использование B<getdents>(). " |
| 689 |
"В следующем выводе показан пример запуска этой программы с каталогом с ext2:" |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 693 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 694 |
#, no-wrap |
| 695 |
msgid "" |
| 696 |
"$B< ./a.out /testfs/>\n" |
| 697 |
"--------------- nread=120 ---------------\n" |
| 698 |
"inode# file type d_reclen d_off d_name\n" |
| 699 |
" 2 directory 16 12 .\n" |
| 700 |
" 2 directory 16 24 ..\n" |
| 701 |
" 11 directory 24 44 lost+found\n" |
| 702 |
" 12 regular 16 56 a\n" |
| 703 |
" 228929 directory 16 68 sub\n" |
| 704 |
" 16353 directory 16 80 sub2\n" |
| 705 |
" 130817 directory 16 4096 sub3\n" |
| 706 |
msgstr "" |
| 707 |
"$B< ./a.out /testfs/>\n" |
| 708 |
"--------------- nread=120 ---------------\n" |
| 709 |
"inode# file type d_reclen d_off d_name\n" |
| 710 |
" 2 directory 16 12 .\n" |
| 711 |
" 2 directory 16 24 ..\n" |
| 712 |
" 11 directory 24 44 lost+found\n" |
| 713 |
" 12 regular 16 56 a\n" |
| 714 |
" 228929 directory 16 68 sub\n" |
| 715 |
" 16353 directory 16 80 sub2\n" |
| 716 |
" 130817 directory 16 4096 sub3\n" |
| 717 |
|
| 718 |
#. type: SS |
| 719 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 720 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 721 |
#, no-wrap |
| 722 |
msgid "Program source" |
| 723 |
msgstr "Исходный код программы" |
| 724 |
|
| 725 |
#. type: Plain text |
| 726 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 727 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 728 |
#, fuzzy, no-wrap |
| 729 |
#| msgid "" |
| 730 |
#| " printf(\"--------------- nread=%ld ---------------\\en\", nread);\n" |
| 731 |
#| " printf(\"inode# file type d_reclen d_off d_name\\en\");\n" |
| 732 |
#| " for (size_t bpos = 0; bpos E<lt> nread;) {\n" |
| 733 |
#| " d = (struct linux_dirent *) (buf + bpos);\n" |
| 734 |
#| " printf(\"%8ld \", d-E<gt>d_ino);\n" |
| 735 |
#| " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n" |
| 736 |
#| " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n" |
| 737 |
#| " (d_type == DT_DIR) ? \"directory\" :\n" |
| 738 |
#| " (d_type == DT_FIFO) ? \"FIFO\" :\n" |
| 739 |
#| " (d_type == DT_SOCK) ? \"socket\" :\n" |
| 740 |
#| " (d_type == DT_LNK) ? \"symlink\" :\n" |
| 741 |
#| " (d_type == DT_BLK) ? \"block dev\" :\n" |
| 742 |
#| " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n" |
| 743 |
#| " printf(\"%4d %10jd %s\\en\", d-E<gt>d_reclen,\n" |
| 744 |
#| " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n" |
| 745 |
#| " bpos += d-E<gt>d_reclen;\n" |
| 746 |
#| " }\n" |
| 747 |
#| " }\n" |
| 748 |
msgid "" |
| 749 |
"#define _GNU_SOURCE\n" |
| 750 |
"#include E<lt>dirent.hE<gt> /* Defines DT_* constants */\n" |
| 751 |
"#include E<lt>err.hE<gt>\n" |
| 752 |
"#include E<lt>fcntl.hE<gt>\n" |
| 753 |
"#include E<lt>stdint.hE<gt>\n" |
| 754 |
"#include E<lt>stdio.hE<gt>\n" |
| 755 |
"#include E<lt>stdlib.hE<gt>\n" |
| 756 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 757 |
"#include E<lt>sys/types.hE<gt>\n" |
| 758 |
"#include E<lt>unistd.hE<gt>\n" |
| 759 |
"\\&\n" |
| 760 |
"struct linux_dirent {\n" |
| 761 |
" unsigned long d_ino;\n" |
| 762 |
" off_t d_off;\n" |
| 763 |
" unsigned short d_reclen;\n" |
| 764 |
" char d_name[];\n" |
| 765 |
"};\n" |
| 766 |
"\\&\n" |
| 767 |
"#define BUF_SIZE 1024\n" |
| 768 |
"\\&\n" |
| 769 |
"int\n" |
| 770 |
"main(int argc, char *argv[])\n" |
| 771 |
"{\n" |
| 772 |
" int fd;\n" |
| 773 |
" char d_type;\n" |
| 774 |
" char buf[BUF_SIZE];\n" |
| 775 |
" long nread;\n" |
| 776 |
" struct linux_dirent *d;\n" |
| 777 |
"\\&\n" |
| 778 |
" fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" |
| 779 |
" if (fd == -1)\n" |
| 780 |
" err(EXIT_FAILURE, \"open\");\n" |
| 781 |
"\\&\n" |
| 782 |
" for (;;) {\n" |
| 783 |
" nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" |
| 784 |
" if (nread == -1)\n" |
| 785 |
" err(EXIT_FAILURE, \"getdents\");\n" |
| 786 |
"\\&\n" |
| 787 |
" if (nread == 0)\n" |
| 788 |
" break;\n" |
| 789 |
"\\&\n" |
| 790 |
" printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n" |
| 791 |
" printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n" |
| 792 |
" for (size_t bpos = 0; bpos E<lt> nread;) {\n" |
| 793 |
" d = (struct linux_dirent *) (buf + bpos);\n" |
| 794 |
" printf(\"%8lu \", d-E<gt>d_ino);\n" |
| 795 |
" d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n" |
| 796 |
" printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n" |
| 797 |
" (d_type == DT_DIR) ? \"directory\" :\n" |
| 798 |
" (d_type == DT_FIFO) ? \"FIFO\" :\n" |
| 799 |
" (d_type == DT_SOCK) ? \"socket\" :\n" |
| 800 |
" (d_type == DT_LNK) ? \"symlink\" :\n" |
| 801 |
" (d_type == DT_BLK) ? \"block dev\" :\n" |
| 802 |
" (d_type == DT_CHR) ? \"char dev\" : \"???\");\n" |
| 803 |
" printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n" |
| 804 |
" (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n" |
| 805 |
" bpos += d-E<gt>d_reclen;\n" |
| 806 |
" }\n" |
| 807 |
" }\n" |
| 808 |
"\\&\n" |
| 809 |
" exit(EXIT_SUCCESS);\n" |
| 810 |
"}\n" |
| 811 |
msgstr "" |
| 812 |
" printf(\"--------------- nread=%ld ---------------\\en\", nread);\n" |
| 813 |
" printf(\"inode# file type d_reclen d_off d_name\\en\");\n" |
| 814 |
" for (size_t bpos = 0; bpos E<lt> nread;) {\n" |
| 815 |
" d = (struct linux_dirent *) (buf + bpos);\n" |
| 816 |
" printf(\"%8ld \", d-E<gt>d_ino);\n" |
| 817 |
" d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n" |
| 818 |
" printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n" |
| 819 |
" (d_type == DT_DIR) ? \"directory\" :\n" |
| 820 |
" (d_type == DT_FIFO) ? \"FIFO\" :\n" |
| 821 |
" (d_type == DT_SOCK) ? \"socket\" :\n" |
| 822 |
" (d_type == DT_LNK) ? \"symlink\" :\n" |
| 823 |
" (d_type == DT_BLK) ? \"block dev\" :\n" |
| 824 |
" (d_type == DT_CHR) ? \"char dev\" : \"???\");\n" |
| 825 |
" printf(\"%4d %10jd %s\\en\", d-E<gt>d_reclen,\n" |
| 826 |
" (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n" |
| 827 |
" bpos += d-E<gt>d_reclen;\n" |
| 828 |
" }\n" |
| 829 |
" }\n" |
| 830 |
|
| 831 |
#. SRC END |
| 832 |
#. type: SH |
| 833 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 834 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 835 |
#, no-wrap |
| 836 |
msgid "SEE ALSO" |
| 837 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 838 |
|
| 839 |
#. type: Plain text |
| 840 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 841 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 842 |
msgid "B<readdir>(2), B<readdir>(3), B<inode>(7)" |
| 843 |
msgstr "B<readdir>(2), B<readdir>(3), B<inode>(7)" |
| 844 |
|
| 845 |
#. type: TH |
| 846 |
#: debian-trixie |
| 847 |
#, no-wrap |
| 848 |
msgid "2024-06-15" |
| 849 |
msgstr "15 июня 2024 г." |
| 850 |
|
| 851 |
#. type: TH |
| 852 |
#: debian-trixie |
| 853 |
#, no-wrap |
| 854 |
msgid "Linux man-pages 6.9.1" |
| 855 |
msgstr "Страницы руководства Linux 6.9.1" |
| 856 |
|
| 857 |
#. type: Plain text |
| 858 |
#: debian-trixie |
| 859 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 860 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 861 |
|
| 862 |
#. type: Plain text |
| 863 |
#: debian-trixie fedora-44 fedora-rawhide |
| 864 |
#, fuzzy, no-wrap |
| 865 |
#| msgid "B<ssize_t getdents64(int >I<fd>B<, void *>I<dirp>B<, size_t >I<count>B<);>\n" |
| 866 |
msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n" |
| 867 |
msgstr "B<ssize_t getdents64(int >I<fd>B<, void *>I<dirp>B<, size_t >I<count>B<);>\n" |
| 868 |
|
| 869 |
#. type: Plain text |
| 870 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 871 |
msgid "" |
| 872 |
"These are not the interfaces you are interested in. Look at B<readdir>(3) " |
| 873 |
"for the POSIX-conforming C library interface. This page documents the bare " |
| 874 |
"kernel system call interfaces." |
| 875 |
msgstr "" |
| 876 |
"Это не те функции, которые должны представлять для вас интерес. Смотрите " |
| 877 |
"описание функции B<readdir>(3), которая является интерфейсом библиотеки " |
| 878 |
"языка C, соответствующим стандарту POSIX. В этой странице описаны " |
| 879 |
"минимальные интерфейсы системных вызовов ядра." |
| 880 |
|
| 881 |
#. type: Plain text |
| 882 |
#: debian-trixie fedora-44 fedora-rawhide |
| 883 |
#, fuzzy, no-wrap |
| 884 |
#| msgid "" |
| 885 |
#| "struct linux_dirent {\n" |
| 886 |
#| " unsigned long d_ino; /* Inode number */\n" |
| 887 |
#| " unsigned long d_off; /* Offset to next I<linux_dirent> */\n" |
| 888 |
#| " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n" |
| 889 |
#| " char d_name[]; /* Filename (null-terminated) */\n" |
| 890 |
#| " /* length is actually (d_reclen - 2 -\n" |
| 891 |
#| " offsetof(struct linux_dirent, d_name)) */\n" |
| 892 |
#| " /*\n" |
| 893 |
#| " char pad; // Zero padding byte\n" |
| 894 |
#| " char d_type; // File type (only since Linux\n" |
| 895 |
#| " // 2.6.4); offset is (d_reclen - 1)\n" |
| 896 |
#| " */\n" |
| 897 |
#| "}\n" |
| 898 |
msgid "" |
| 899 |
"struct linux_dirent {\n" |
| 900 |
" unsigned long d_ino; /* Inode number */\n" |
| 901 |
" unsigned long d_off; /* Not an offset; see below */\n" |
| 902 |
" unsigned short d_reclen; /* Length of this I<linux_dirent> */\n" |
| 903 |
" char d_name[]; /* Filename (null-terminated) */\n" |
| 904 |
" /* length is actually (d_reclen - 2 -\n" |
| 905 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 906 |
" /*\n" |
| 907 |
" char pad; // Zero padding byte\n" |
| 908 |
" char d_type; // File type (only since Linux\n" |
| 909 |
" // 2.6.4); offset is (d_reclen - 1)\n" |
| 910 |
" */\n" |
| 911 |
"}\n" |
| 912 |
msgstr "" |
| 913 |
"struct linux_dirent {\n" |
| 914 |
" unsigned long d_ino; /* номер иноды */\n" |
| 915 |
" unsigned long d_off; /* смещение до следующей I<linux_dirent> */\n" |
| 916 |
" unsigned short d_reclen; /* длина этой I<linux_dirent> */\n" |
| 917 |
" char d_name[]; /* имя файла (в конце null) */\n" |
| 918 |
" /* реальная длина (d_reclen - 2 -\n" |
| 919 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 920 |
" /*\n" |
| 921 |
" char pad; // нулевой байт заполнения\n" |
| 922 |
" char d_type; // тип файла (только начиная с Linux\n" |
| 923 |
" // 2.6.4); смещение (d_reclen - 1)\n" |
| 924 |
" */\n" |
| 925 |
"}\n" |
| 926 |
|
| 927 |
#. type: Plain text |
| 928 |
#: debian-trixie |
| 929 |
#, fuzzy |
| 930 |
#| msgid "" |
| 931 |
#| "I<d_ino> is an inode number. I<d_off> is the distance from the start of " |
| 932 |
#| "the directory to the start of the next I<linux_dirent>. I<d_reclen> is " |
| 933 |
#| "the size of this entire I<linux_dirent>. I<d_name> is a null-terminated " |
| 934 |
#| "filename." |
| 935 |
msgid "" |
| 936 |
"I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with " |
| 937 |
"no specific meaning to user space, though on older filesystems it used to be " |
| 938 |
"the distance from the start of the directory to the start of the next " |
| 939 |
"I<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this " |
| 940 |
"entire I<linux_dirent>. I<d_name> is a null-terminated filename." |
| 941 |
msgstr "" |
| 942 |
"В I<d_ino> указан номер inode. В I<d_off> задаётся расстояние от начала " |
| 943 |
"каталога до начала следующей I<linux_dirent>. В I<d_reclen> указывается " |
| 944 |
"размер данного I<linux_dirent> целиком. В I<d_name> задаётся имя файла, " |
| 945 |
"завершающееся null." |
| 946 |
|
| 947 |
#. type: Plain text |
| 948 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 949 |
#, fuzzy |
| 950 |
#| msgid "" |
| 951 |
#| "Glibc does not provide a wrapper for these system calls; call them using " |
| 952 |
#| "B<syscall>(2). You will need to define the I<linux_dirent> or " |
| 953 |
#| "I<linux_dirent64> structure yourself. However, you probably want to use " |
| 954 |
#| "B<readdir>(3) instead." |
| 955 |
msgid "" |
| 956 |
"glibc does not provide a wrapper for B<getdents>(); call B<getdents>() " |
| 957 |
"using B<syscall>(2). In that case you will need to define the " |
| 958 |
"I<linux_dirent> or I<linux_dirent64> structure yourself." |
| 959 |
msgstr "" |
| 960 |
"В glibc нет обёртки для данных системных вызовов; запускайте их с помощью " |
| 961 |
"B<syscall>(2). Структуру I<linux_dirent> или I<linux_dirent64> нужно " |
| 962 |
"определить самостоятельно. Однако лучше использовать B<readdir>(3)." |
| 963 |
|
| 964 |
#. type: TH |
| 965 |
#: fedora-44 fedora-rawhide |
| 966 |
#, no-wrap |
| 967 |
msgid "2024-11-17" |
| 968 |
msgstr "17 ноября 2024 г." |
| 969 |
|
| 970 |
#. type: TH |
| 971 |
#: fedora-44 fedora-rawhide |
| 972 |
#, no-wrap |
| 973 |
msgid "Linux man-pages 6.13" |
| 974 |
msgstr "Страницы руководства Linux 6.13" |
| 975 |
|
| 976 |
#. type: TH |
| 977 |
#: mageia-cauldron |
| 978 |
#, no-wrap |
| 979 |
msgid "2026-02-08" |
| 980 |
msgstr "8 февраля 2026 г." |
| 981 |
|
| 982 |
#. type: TH |
| 983 |
#: mageia-cauldron |
| 984 |
#, no-wrap |
| 985 |
msgid "Linux man-pages 6.17" |
| 986 |
msgstr "Страницы руководства Linux 6.17" |
| 987 |
|
| 988 |
#. type: TH |
| 989 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 990 |
#, no-wrap |
| 991 |
msgid "Linux man-pages (unreleased)" |
| 992 |
msgstr "Страницы руководства Linux (не выпущены)" |