| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Azamat Hackimov <[email protected]>, 2017. |
| 5 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 6 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 7 |
# Иван Павлов <[email protected]>, 2017. |
| 8 |
msgid "" |
| 9 |
msgstr "" |
| 10 |
"Project-Id-Version: manpages-l10n\n" |
| 11 |
"POT-Creation-Date: 2026-06-05 06:24+0200\n" |
| 12 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 13 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 14 |
"Language-Team: Russian <[email protected]>\n" |
| 15 |
"Language: ru\n" |
| 16 |
"MIME-Version: 1.0\n" |
| 17 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 18 |
"Content-Transfer-Encoding: 8bit\n" |
| 19 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 20 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 21 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 22 |
"X-Generator: Lokalize 2.0\n" |
| 23 |
|
| 24 |
#. type: TH |
| 25 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 26 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 27 |
#, fuzzy, no-wrap |
| 28 |
#| msgid "I<read>" |
| 29 |
msgid "fread" |
| 30 |
msgstr "I<чтение>" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 34 |
#: opensuse-tumbleweed |
| 35 |
#, no-wrap |
| 36 |
msgid "2026-02-10" |
| 37 |
msgstr "10 февраля 2026 г." |
| 38 |
|
| 39 |
#. type: TH |
| 40 |
#: archlinux debian-unstable |
| 41 |
#, fuzzy, no-wrap |
| 42 |
#| msgid "Linux man-pages 6.17" |
| 43 |
msgid "Linux man-pages 6.18" |
| 44 |
msgstr "Справочные страницы Linux 6.17" |
| 45 |
|
| 46 |
#. type: SH |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
#, no-wrap |
| 50 |
msgid "NAME" |
| 51 |
msgstr "НАИМЕНОВАНИЕ" |
| 52 |
|
| 53 |
#. type: Plain text |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
msgid "fread, fwrite - binary stream input/output" |
| 57 |
msgstr "fread, fwrite - ввод/вывод из двоичного потока" |
| 58 |
|
| 59 |
#. type: SH |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
#, no-wrap |
| 63 |
msgid "LIBRARY" |
| 64 |
msgstr "БИБЛИОТЕКА" |
| 65 |
|
| 66 |
#. type: Plain text |
| 67 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 68 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 70 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 71 |
|
| 72 |
#. type: SH |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "SYNOPSIS" |
| 77 |
msgstr "СИНТАКСИС" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "B<#include E<lt>stdio.hE<gt>>\n" |
| 84 |
msgstr "B<#include E<lt>stdio.hE<gt>>\n" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 88 |
#: opensuse-tumbleweed |
| 89 |
#, fuzzy, no-wrap |
| 90 |
#| msgid "" |
| 91 |
#| "B<size_t fwrite(const void *>I<ptr>B<, size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 92 |
#| "B< FILE *>I<stream>B<);>\n" |
| 93 |
msgid "" |
| 94 |
"B<size_t fread(>size_t size, size_t n;\n" |
| 95 |
"B< void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n" |
| 96 |
"B< size_t >I<size>B<, size_t >I<n>B<,>\n" |
| 97 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 98 |
"B<size_t fwrite(>size_t size, size_t n;\n" |
| 99 |
"B< const void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n" |
| 100 |
"B< size_t >I<size>B<, size_t >I<n>B<,>\n" |
| 101 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 102 |
msgstr "" |
| 103 |
"B<size_t fwrite(const void *>I<ptr>B<, size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 104 |
"B< FILE *>I<stream>B<);>\n" |
| 105 |
|
| 106 |
#. type: SH |
| 107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 109 |
#, no-wrap |
| 110 |
msgid "DESCRIPTION" |
| 111 |
msgstr "ОПИСАНИЕ" |
| 112 |
|
| 113 |
#. type: Plain text |
| 114 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 115 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 116 |
#, fuzzy |
| 117 |
#| msgid "" |
| 118 |
#| "The function B<fread>() reads I<nmemb> items of data, each I<size> bytes " |
| 119 |
#| "long, from the stream pointed to by I<stream>, storing them at the " |
| 120 |
#| "location given by I<ptr>." |
| 121 |
msgid "" |
| 122 |
"The function B<fread>() reads I<n> items of data, each I<size> bytes long, " |
| 123 |
"from the stream pointed to by I<stream>, storing them at the location given " |
| 124 |
"by I<ptr>." |
| 125 |
msgstr "" |
| 126 |
"Функция B<fread>() считывает I<nmemb> единиц данных (размер каждого I<size> " |
| 127 |
"байт) из потока, на который указывает I<stream>, и сохраняет их в " |
| 128 |
"расположение, на которое указывает I<ptr>." |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 132 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
#, fuzzy |
| 134 |
#| msgid "" |
| 135 |
#| "The function B<fwrite>() writes I<nmemb> items of data, each I<size> " |
| 136 |
#| "bytes long, to the stream pointed to by I<stream>, obtaining them from " |
| 137 |
#| "the location given by I<ptr>." |
| 138 |
msgid "" |
| 139 |
"The function B<fwrite>() writes I<n> items of data, each I<size> bytes " |
| 140 |
"long, to the stream pointed to by I<stream>, obtaining them from the " |
| 141 |
"location given by I<ptr>." |
| 142 |
msgstr "" |
| 143 |
"Функция B<fwrite>() записывает I<nmemb> единиц данных (размер каждого " |
| 144 |
"I<size> байт) в поток, на который указывает I<stream>, получая их из " |
| 145 |
"расположения, на которое указывает I<ptr>." |
| 146 |
|
| 147 |
#. type: Plain text |
| 148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
msgid "For nonlocking counterparts, see B<unlocked_stdio>(3)." |
| 151 |
msgstr "Для неблокирующих аналогов, см. B<unlocked_stdio>(3)." |
| 152 |
|
| 153 |
#. type: SH |
| 154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 155 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 156 |
#, no-wrap |
| 157 |
msgid "RETURN VALUE" |
| 158 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 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 "" |
| 164 |
"On success, B<fread>() and B<fwrite>() return the number of items read or " |
| 165 |
"written. This number equals the number of bytes transferred only when " |
| 166 |
"I<size> is 1. If an error occurs, or the end of the file is reached, the " |
| 167 |
"return value is a short item count (or zero)." |
| 168 |
msgstr "" |
| 169 |
"При успешном выполнении функции B<fread>() и B<fwrite>() возвращают " |
| 170 |
"количество считанных или записанных единиц. Это количество равно количеству " |
| 171 |
"переданных байт только, если значение I<size> равно 1. В случае ошибки или " |
| 172 |
"по достижении конца файла возвращается меньшее количество единиц (или ноль)." |
| 173 |
|
| 174 |
#. type: Plain text |
| 175 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 176 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 177 |
msgid "" |
| 178 |
"The file position indicator for the stream is advanced by the number of " |
| 179 |
"bytes successfully read or written." |
| 180 |
msgstr "" |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
msgid "" |
| 186 |
"B<fread>() does not distinguish between end-of-file and error, and callers " |
| 187 |
"must use B<feof>(3) and B<ferror>(3) to determine which occurred." |
| 188 |
msgstr "" |
| 189 |
"Функция B<fread>() не отличает возникновение ошибки и достижения конца " |
| 190 |
"файла; для точного определения необходимо вызывать функции B<feof>(3) и " |
| 191 |
"B<ferror>(3)." |
| 192 |
|
| 193 |
#. type: SH |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
#, no-wrap |
| 197 |
msgid "ATTRIBUTES" |
| 198 |
msgstr "АТРИБУТЫ" |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
msgid "" |
| 204 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 205 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 206 |
|
| 207 |
#. type: tbl table |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
#, no-wrap |
| 211 |
msgid "Interface" |
| 212 |
msgstr "Интерфейс" |
| 213 |
|
| 214 |
#. type: tbl table |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
#, no-wrap |
| 218 |
msgid "Attribute" |
| 219 |
msgstr "Атрибут" |
| 220 |
|
| 221 |
#. type: tbl table |
| 222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 224 |
#, no-wrap |
| 225 |
msgid "Value" |
| 226 |
msgstr "Значение" |
| 227 |
|
| 228 |
#. type: tbl table |
| 229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 230 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 231 |
#, no-wrap |
| 232 |
msgid ".na\n" |
| 233 |
msgstr ".na\n" |
| 234 |
|
| 235 |
#. type: tbl table |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
#, no-wrap |
| 239 |
msgid ".nh\n" |
| 240 |
msgstr ".nh\n" |
| 241 |
|
| 242 |
#. type: tbl table |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
#, no-wrap |
| 246 |
msgid "" |
| 247 |
"B<fread>(),\n" |
| 248 |
"B<fwrite>()" |
| 249 |
msgstr "" |
| 250 |
"B<fread>(),\n" |
| 251 |
"B<fwrite>()" |
| 252 |
|
| 253 |
#. type: tbl table |
| 254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 255 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
#, no-wrap |
| 257 |
msgid "Thread safety" |
| 258 |
msgstr "Безвредность в нитях" |
| 259 |
|
| 260 |
#. type: tbl table |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
#, no-wrap |
| 264 |
msgid "MT-Safe" |
| 265 |
msgstr "MT-Safe" |
| 266 |
|
| 267 |
#. type: SH |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "STANDARDS" |
| 272 |
msgstr "СТАНДАРТЫ" |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
msgid "C11, POSIX.1-2008." |
| 278 |
msgstr "C11, POSIX.1-2008." |
| 279 |
|
| 280 |
#. type: SH |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
#, no-wrap |
| 284 |
msgid "HISTORY" |
| 285 |
msgstr "ИСТОРИЯ" |
| 286 |
|
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
msgid "POSIX.1-2001, C89." |
| 291 |
msgstr "POSIX.1-2001, C89." |
| 292 |
|
| 293 |
#. type: SH |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
#, no-wrap |
| 297 |
msgid "EXAMPLES" |
| 298 |
msgstr "ПРИМЕРЫ" |
| 299 |
|
| 300 |
#. type: Plain text |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
msgid "" |
| 304 |
"The program below demonstrates the use of B<fread>() by parsing /bin/sh ELF " |
| 305 |
"executable in binary mode and printing its magic and class:" |
| 306 |
msgstr "" |
| 307 |
|
| 308 |
#. type: Plain text |
| 309 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 310 |
#: opensuse-tumbleweed |
| 311 |
#, no-wrap |
| 312 |
msgid "" |
| 313 |
"$B< ./a.out>;\n" |
| 314 |
"ELF magic: 0x7f454c46\n" |
| 315 |
"Class: 0x02\n" |
| 316 |
msgstr "" |
| 317 |
|
| 318 |
#. type: SS |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
#, no-wrap |
| 322 |
msgid "Program source" |
| 323 |
msgstr "Исходный код программы" |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 327 |
#: opensuse-tumbleweed |
| 328 |
#, no-wrap |
| 329 |
msgid "" |
| 330 |
"#include E<lt>stdcountof.hE<gt>\n" |
| 331 |
"#include E<lt>stdio.hE<gt>\n" |
| 332 |
"#include E<lt>stdlib.hE<gt>\n" |
| 333 |
"\\&\n" |
| 334 |
"int\n" |
| 335 |
"main(void)\n" |
| 336 |
"{\n" |
| 337 |
" FILE *fp;\n" |
| 338 |
" size_t ret;\n" |
| 339 |
" unsigned char buffer[4];\n" |
| 340 |
"\\&\n" |
| 341 |
" fp = fopen(\"/bin/sh\", \"rb\");\n" |
| 342 |
" if (!fp) {\n" |
| 343 |
" perror(\"fopen\");\n" |
| 344 |
" return EXIT_FAILURE;\n" |
| 345 |
" }\n" |
| 346 |
"\\&\n" |
| 347 |
" ret = fread(buffer, sizeof(*buffer), countof(buffer), fp);\n" |
| 348 |
" if (ret != countof(buffer)) {\n" |
| 349 |
" fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 350 |
" exit(EXIT_FAILURE);\n" |
| 351 |
" }\n" |
| 352 |
"\\&\n" |
| 353 |
" printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n" |
| 354 |
" buffer[2], buffer[3]);\n" |
| 355 |
"\\&\n" |
| 356 |
" ret = fread(buffer, 1, 1, fp);\n" |
| 357 |
" if (ret != 1) {\n" |
| 358 |
" fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 359 |
" exit(EXIT_FAILURE);\n" |
| 360 |
" }\n" |
| 361 |
"\\&\n" |
| 362 |
" printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n" |
| 363 |
"\\&\n" |
| 364 |
" fclose(fp);\n" |
| 365 |
"\\&\n" |
| 366 |
" exit(EXIT_SUCCESS);\n" |
| 367 |
"}\n" |
| 368 |
msgstr "" |
| 369 |
|
| 370 |
#. SRC END |
| 371 |
#. type: SH |
| 372 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 373 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 374 |
#, no-wrap |
| 375 |
msgid "SEE ALSO" |
| 376 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 377 |
|
| 378 |
#. type: Plain text |
| 379 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 380 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 381 |
msgid "B<read>(2), B<write>(2), B<feof>(3), B<ferror>(3), B<unlocked_stdio>(3)" |
| 382 |
msgstr "" |
| 383 |
"B<read>(2), B<write>(2), B<feof>(3), B<ferror>(3), B<unlocked_stdio>(3)" |
| 384 |
|
| 385 |
#. type: TH |
| 386 |
#: debian-trixie |
| 387 |
#, no-wrap |
| 388 |
msgid "2024-06-15" |
| 389 |
msgstr "15 июня 2024 г." |
| 390 |
|
| 391 |
#. type: TH |
| 392 |
#: debian-trixie |
| 393 |
#, no-wrap |
| 394 |
msgid "Linux man-pages 6.9.1" |
| 395 |
msgstr "Страницы руководства Linux 6.9.1" |
| 396 |
|
| 397 |
#. type: Plain text |
| 398 |
#: debian-trixie |
| 399 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 400 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 401 |
|
| 402 |
#. type: Plain text |
| 403 |
#: debian-trixie |
| 404 |
#, fuzzy, no-wrap |
| 405 |
#| msgid "" |
| 406 |
#| "B<size_t fwrite(const void *>I<ptr>B<, size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 407 |
#| "B< FILE *>I<stream>B<);>\n" |
| 408 |
msgid "" |
| 409 |
"B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n" |
| 410 |
"B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 411 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 412 |
"B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n" |
| 413 |
"B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 414 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 415 |
msgstr "" |
| 416 |
"B<size_t fwrite(const void *>I<ptr>B<, size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 417 |
"B< FILE *>I<stream>B<);>\n" |
| 418 |
|
| 419 |
#. type: Plain text |
| 420 |
#: debian-trixie |
| 421 |
msgid "" |
| 422 |
"The function B<fread>() reads I<nmemb> items of data, each I<size> bytes " |
| 423 |
"long, from the stream pointed to by I<stream>, storing them at the location " |
| 424 |
"given by I<ptr>." |
| 425 |
msgstr "" |
| 426 |
"Функция B<fread>() считывает I<nmemb> единиц данных (размер каждого I<size> " |
| 427 |
"байт) из потока, на который указывает I<stream>, и сохраняет их в " |
| 428 |
"расположение, на которое указывает I<ptr>." |
| 429 |
|
| 430 |
#. type: Plain text |
| 431 |
#: debian-trixie |
| 432 |
msgid "" |
| 433 |
"The function B<fwrite>() writes I<nmemb> items of data, each I<size> bytes " |
| 434 |
"long, to the stream pointed to by I<stream>, obtaining them from the " |
| 435 |
"location given by I<ptr>." |
| 436 |
msgstr "" |
| 437 |
"Функция B<fwrite>() записывает I<nmemb> единиц данных (размер каждого " |
| 438 |
"I<size> байт) в поток, на который указывает I<stream>, получая их из " |
| 439 |
"расположения, на которое указывает I<ptr>." |
| 440 |
|
| 441 |
#. type: Plain text |
| 442 |
#: debian-trixie fedora-44 fedora-rawhide |
| 443 |
#, no-wrap |
| 444 |
msgid "" |
| 445 |
"$ B<./a.out>\n" |
| 446 |
"ELF magic: 0x7f454c46\n" |
| 447 |
"Class: 0x02\n" |
| 448 |
msgstr "" |
| 449 |
|
| 450 |
#. type: Plain text |
| 451 |
#: debian-trixie fedora-44 fedora-rawhide |
| 452 |
#, no-wrap |
| 453 |
msgid "" |
| 454 |
"#include E<lt>stdio.hE<gt>\n" |
| 455 |
"#include E<lt>stdlib.hE<gt>\n" |
| 456 |
"\\&\n" |
| 457 |
"#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n" |
| 458 |
"\\&\n" |
| 459 |
"int\n" |
| 460 |
"main(void)\n" |
| 461 |
"{\n" |
| 462 |
" FILE *fp;\n" |
| 463 |
" size_t ret;\n" |
| 464 |
" unsigned char buffer[4];\n" |
| 465 |
"\\&\n" |
| 466 |
" fp = fopen(\"/bin/sh\", \"rb\");\n" |
| 467 |
" if (!fp) {\n" |
| 468 |
" perror(\"fopen\");\n" |
| 469 |
" return EXIT_FAILURE;\n" |
| 470 |
" }\n" |
| 471 |
"\\&\n" |
| 472 |
" ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n" |
| 473 |
" if (ret != ARRAY_SIZE(buffer)) {\n" |
| 474 |
" fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 475 |
" exit(EXIT_FAILURE);\n" |
| 476 |
" }\n" |
| 477 |
"\\&\n" |
| 478 |
" printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n" |
| 479 |
" buffer[2], buffer[3]);\n" |
| 480 |
"\\&\n" |
| 481 |
" ret = fread(buffer, 1, 1, fp);\n" |
| 482 |
" if (ret != 1) {\n" |
| 483 |
" fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 484 |
" exit(EXIT_FAILURE);\n" |
| 485 |
" }\n" |
| 486 |
"\\&\n" |
| 487 |
" printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n" |
| 488 |
"\\&\n" |
| 489 |
" fclose(fp);\n" |
| 490 |
"\\&\n" |
| 491 |
" exit(EXIT_SUCCESS);\n" |
| 492 |
"}\n" |
| 493 |
msgstr "" |
| 494 |
|
| 495 |
#. type: TH |
| 496 |
#: fedora-44 fedora-rawhide |
| 497 |
#, no-wrap |
| 498 |
msgid "2024-11-17" |
| 499 |
msgstr "17 ноября 2024 г." |
| 500 |
|
| 501 |
#. type: TH |
| 502 |
#: fedora-44 fedora-rawhide |
| 503 |
#, no-wrap |
| 504 |
msgid "Linux man-pages 6.13" |
| 505 |
msgstr "Страницы руководства Linux 6.13" |
| 506 |
|
| 507 |
#. type: Plain text |
| 508 |
#: fedora-44 fedora-rawhide |
| 509 |
#, fuzzy, no-wrap |
| 510 |
#| msgid "" |
| 511 |
#| "B<size_t fwrite(const void *>I<ptr>B<, size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 512 |
#| "B< FILE *>I<stream>B<);>\n" |
| 513 |
msgid "" |
| 514 |
"B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n" |
| 515 |
"B< size_t >I<size>B<, size_t >I<n>B<,>\n" |
| 516 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 517 |
"B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n" |
| 518 |
"B< size_t >I<size>B<, size_t >I<n>B<,>\n" |
| 519 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 520 |
msgstr "" |
| 521 |
"B<size_t fwrite(const void *>I<ptr>B<, size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 522 |
"B< FILE *>I<stream>B<);>\n" |
| 523 |
|
| 524 |
#. type: TH |
| 525 |
#: mageia-cauldron |
| 526 |
#, no-wrap |
| 527 |
msgid "Linux man-pages 6.17" |
| 528 |
msgstr "Страницы руководства Linux 6.17" |
| 529 |
|
| 530 |
#. type: TH |
| 531 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
#, no-wrap |
| 533 |
msgid "Linux man-pages (unreleased)" |
| 534 |
msgstr "Страницы руководства Linux (не выпущены)" |