| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999, 2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010-2014. |
| 18 |
# Frédéric Hantrais <[email protected]>, 2013, 2014. |
| 19 |
# Lucien Gentis <[email protected]>, 2021. |
| 20 |
msgid "" |
| 21 |
msgstr "" |
| 22 |
"Project-Id-Version: manpages-l10n 4.21.0\n" |
| 23 |
"POT-Creation-Date: 2026-06-05 06:24+0200\n" |
| 24 |
"PO-Revision-Date: 2024-03-05 01:31+0100\n" |
| 25 |
"Last-Translator: Lucien Gentis <[email protected]>\n" |
| 26 |
"Language-Team: French <[email protected]>\n" |
| 27 |
"Language: fr\n" |
| 28 |
"MIME-Version: 1.0\n" |
| 29 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 30 |
"Content-Transfer-Encoding: 8bit\n" |
| 31 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 32 |
"X-Generator: Poedit 2.2.1\n" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 36 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 37 |
#, no-wrap |
| 38 |
msgid "fread" |
| 39 |
msgstr "fread" |
| 40 |
|
| 41 |
#. type: TH |
| 42 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 43 |
#: opensuse-tumbleweed |
| 44 |
#, no-wrap |
| 45 |
msgid "2026-02-10" |
| 46 |
msgstr "10 février 2026" |
| 47 |
|
| 48 |
#. type: TH |
| 49 |
#: archlinux debian-unstable |
| 50 |
#, no-wrap |
| 51 |
msgid "Linux man-pages 6.18" |
| 52 |
msgstr "Pages du manuel de Linux 6.18" |
| 53 |
|
| 54 |
#. type: SH |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
#, no-wrap |
| 58 |
msgid "NAME" |
| 59 |
msgstr "NOM" |
| 60 |
|
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 63 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "fread, fwrite - binary stream input/output" |
| 65 |
msgstr "fread, fwrite - Entrées/sorties binaires sur un flux" |
| 66 |
|
| 67 |
#. type: SH |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "LIBRARY" |
| 72 |
msgstr "BIBLIOTHÈQUE" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 76 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 78 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 79 |
|
| 80 |
#. type: SH |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "SYNOPSIS" |
| 85 |
msgstr "SYNOPSIS" |
| 86 |
|
| 87 |
#. type: Plain text |
| 88 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 89 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 90 |
#, no-wrap |
| 91 |
msgid "B<#include E<lt>stdio.hE<gt>>\n" |
| 92 |
msgstr "B<#include E<lt>stdio.hE<gt>>\n" |
| 93 |
|
| 94 |
#. type: Plain text |
| 95 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 96 |
#: opensuse-tumbleweed |
| 97 |
#, fuzzy, no-wrap |
| 98 |
#| msgid "" |
| 99 |
#| "B<size_t fread(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 |
#| "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n" |
| 103 |
#| "B< size_t >I<size>B<, size_t >I<n>B<,>\n" |
| 104 |
#| "B< FILE *restrict >I<stream>B<);>\n" |
| 105 |
msgid "" |
| 106 |
"B<size_t fread(>size_t size, size_t n;\n" |
| 107 |
"B< void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n" |
| 108 |
"B< size_t >I<size>B<, size_t >I<n>B<,>\n" |
| 109 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 110 |
"B<size_t fwrite(>size_t size, size_t n;\n" |
| 111 |
"B< const void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n" |
| 112 |
"B< size_t >I<size>B<, size_t >I<n>B<,>\n" |
| 113 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 114 |
msgstr "" |
| 115 |
"B<size_t fread(void >I<ptr>B<[restrict .>I<taille>B< * .>I<n>B<],>\n" |
| 116 |
"B< size_t >I<taille>B<, size_t >I<n>B<,>\n" |
| 117 |
"B< FILE *restrict >I<flux>B<);>\n" |
| 118 |
"B<size_t fwrite(const void >I<ptr>B<[restrict .>I<taille>B< * .>I<n>B<],>\n" |
| 119 |
"B< size_t >I<taille>B<, size_t >I<n>B<,>\n" |
| 120 |
"B< FILE *restrict >I<flux>B<);>\n" |
| 121 |
|
| 122 |
#. type: SH |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
#, no-wrap |
| 126 |
msgid "DESCRIPTION" |
| 127 |
msgstr "DESCRIPTION" |
| 128 |
|
| 129 |
#. type: Plain text |
| 130 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 131 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
msgid "" |
| 133 |
"The function B<fread>() reads I<n> items of data, each I<size> bytes long, " |
| 134 |
"from the stream pointed to by I<stream>, storing them at the location given " |
| 135 |
"by I<ptr>." |
| 136 |
msgstr "" |
| 137 |
"La fonction B<fread>() lit I<n> éléments de données de I<taille> octets " |
| 138 |
"chacun depuis le flux pointé par I<flux>, et les stocke à l'emplacement " |
| 139 |
"pointé par I<ptr>." |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 143 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 144 |
msgid "" |
| 145 |
"The function B<fwrite>() writes I<n> items of data, each I<size> bytes " |
| 146 |
"long, to the stream pointed to by I<stream>, obtaining them from the " |
| 147 |
"location given by I<ptr>." |
| 148 |
msgstr "" |
| 149 |
"La fonction B<fwrite>() écrit I<n> éléments de données de I<taille> octets " |
| 150 |
"chacun dans le flux pointé par I<flux>, après les avoir récupérés depuis " |
| 151 |
"l'emplacement pointé par I<ptr>." |
| 152 |
|
| 153 |
#. type: Plain text |
| 154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 155 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 156 |
msgid "For nonlocking counterparts, see B<unlocked_stdio>(3)." |
| 157 |
msgstr "" |
| 158 |
"Pour des versions de ces fonctions ignorant les verrouillages, voir " |
| 159 |
"B<unlocked_stdio>(3)." |
| 160 |
|
| 161 |
#. type: SH |
| 162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 164 |
#, no-wrap |
| 165 |
msgid "RETURN VALUE" |
| 166 |
msgstr "VALEUR RENVOYÉE" |
| 167 |
|
| 168 |
#. type: Plain text |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
msgid "" |
| 172 |
"On success, B<fread>() and B<fwrite>() return the number of items read or " |
| 173 |
"written. This number equals the number of bytes transferred only when " |
| 174 |
"I<size> is 1. If an error occurs, or the end of the file is reached, the " |
| 175 |
"return value is a short item count (or zero)." |
| 176 |
msgstr "" |
| 177 |
"En cas de réussite, B<fread>() et B<fwrite>() renvoient le nombre d'éléments " |
| 178 |
"lus ou écrits. Ce nombre n'est égal au nombre d'octets transférés que si " |
| 179 |
"I<taille> est égal à 1. Si une erreur se produit, ou si la fin du fichier " |
| 180 |
"est atteinte en lecture, le nombre renvoyé est plus petit que I<nbelem> et " |
| 181 |
"peut même être nul." |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "" |
| 187 |
"The file position indicator for the stream is advanced by the number of " |
| 188 |
"bytes successfully read or written." |
| 189 |
msgstr "" |
| 190 |
"L'indicateur de position du flux est incrémenté du nombre d'octets ayant été " |
| 191 |
"lus ou écrits avec succès." |
| 192 |
|
| 193 |
#. type: Plain text |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
msgid "" |
| 197 |
"B<fread>() does not distinguish between end-of-file and error, and callers " |
| 198 |
"must use B<feof>(3) and B<ferror>(3) to determine which occurred." |
| 199 |
msgstr "" |
| 200 |
"B<fread>() ne fait pas la différence entre la fin de fichier et une erreur, " |
| 201 |
"et l'appelant devra utiliser B<feof>(3) et B<ferror>(3) pour le savoir." |
| 202 |
|
| 203 |
#. type: SH |
| 204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 205 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 206 |
#, no-wrap |
| 207 |
msgid "ATTRIBUTES" |
| 208 |
msgstr "ATTRIBUTS" |
| 209 |
|
| 210 |
#. type: Plain text |
| 211 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 212 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 213 |
msgid "" |
| 214 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 215 |
msgstr "" |
| 216 |
"Pour une explication des termes utilisés dans cette section, consulter " |
| 217 |
"B<attributes>(7)." |
| 218 |
|
| 219 |
#. type: tbl table |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
#, no-wrap |
| 223 |
msgid "Interface" |
| 224 |
msgstr "Interface" |
| 225 |
|
| 226 |
#. type: tbl table |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
#, no-wrap |
| 230 |
msgid "Attribute" |
| 231 |
msgstr "Attribut" |
| 232 |
|
| 233 |
#. type: tbl table |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
#, no-wrap |
| 237 |
msgid "Value" |
| 238 |
msgstr "Valeur" |
| 239 |
|
| 240 |
#. type: tbl table |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid ".na\n" |
| 245 |
msgstr ".na\n" |
| 246 |
|
| 247 |
#. type: tbl table |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
#, no-wrap |
| 251 |
msgid ".nh\n" |
| 252 |
msgstr ".nh\n" |
| 253 |
|
| 254 |
#. type: tbl table |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "" |
| 259 |
"B<fread>(),\n" |
| 260 |
"B<fwrite>()" |
| 261 |
msgstr "" |
| 262 |
"B<fread>(),\n" |
| 263 |
"B<fwrite>()" |
| 264 |
|
| 265 |
#. type: tbl table |
| 266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 267 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 268 |
#, no-wrap |
| 269 |
msgid "Thread safety" |
| 270 |
msgstr "Sécurité des threads" |
| 271 |
|
| 272 |
#. type: tbl table |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
#, no-wrap |
| 276 |
msgid "MT-Safe" |
| 277 |
msgstr "MT-Safe" |
| 278 |
|
| 279 |
#. type: SH |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
#, no-wrap |
| 283 |
msgid "STANDARDS" |
| 284 |
msgstr "NORMES" |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
msgid "C11, POSIX.1-2008." |
| 290 |
msgstr "C11, POSIX.1-2008." |
| 291 |
|
| 292 |
#. type: SH |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
#, no-wrap |
| 296 |
msgid "HISTORY" |
| 297 |
msgstr "HISTORIQUE" |
| 298 |
|
| 299 |
#. type: Plain text |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
msgid "POSIX.1-2001, C89." |
| 303 |
msgstr "POSIX.1-2001, C89." |
| 304 |
|
| 305 |
#. type: SH |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
#, no-wrap |
| 309 |
msgid "EXAMPLES" |
| 310 |
msgstr "EXEMPLES" |
| 311 |
|
| 312 |
#. type: Plain text |
| 313 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 314 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 315 |
msgid "" |
| 316 |
"The program below demonstrates the use of B<fread>() by parsing /bin/sh ELF " |
| 317 |
"executable in binary mode and printing its magic and class:" |
| 318 |
msgstr "" |
| 319 |
"Le programme ci-dessous montre l'utilisation de B<fread>() pour parcourir " |
| 320 |
"l'exécutable ELF /bin/sh en mode binaire et afficher son code magique et sa " |
| 321 |
"classe :" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 325 |
#: opensuse-tumbleweed |
| 326 |
#, fuzzy, no-wrap |
| 327 |
#| msgid "" |
| 328 |
#| "$ B<./a.out>\n" |
| 329 |
#| "ELF magic: 0x7f454c46\n" |
| 330 |
#| "Class: 0x02\n" |
| 331 |
msgid "" |
| 332 |
"$B< ./a.out>;\n" |
| 333 |
"ELF magic: 0x7f454c46\n" |
| 334 |
"Class: 0x02\n" |
| 335 |
msgstr "" |
| 336 |
"$ B<./a.out>\n" |
| 337 |
"ELF magic: 0x7f454c46\n" |
| 338 |
"Class: 0x02\n" |
| 339 |
|
| 340 |
#. type: SS |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
#, no-wrap |
| 344 |
msgid "Program source" |
| 345 |
msgstr "Source du programme" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 349 |
#: opensuse-tumbleweed |
| 350 |
#, fuzzy, no-wrap |
| 351 |
#| msgid "" |
| 352 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 353 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 354 |
#| "\\&\n" |
| 355 |
#| "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n" |
| 356 |
#| "\\&\n" |
| 357 |
#| "int\n" |
| 358 |
#| "main(void)\n" |
| 359 |
#| "{\n" |
| 360 |
#| " FILE *fp;\n" |
| 361 |
#| " size_t ret;\n" |
| 362 |
#| " unsigned char buffer[4];\n" |
| 363 |
#| "\\&\n" |
| 364 |
#| " fp = fopen(\"/bin/sh\", \"rb\");\n" |
| 365 |
#| " if (!fp) {\n" |
| 366 |
#| " perror(\"fopen\");\n" |
| 367 |
#| " return EXIT_FAILURE;\n" |
| 368 |
#| " }\n" |
| 369 |
#| "\\&\n" |
| 370 |
#| " ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n" |
| 371 |
#| " if (ret != ARRAY_SIZE(buffer)) {\n" |
| 372 |
#| " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 373 |
#| " exit(EXIT_FAILURE);\n" |
| 374 |
#| " }\n" |
| 375 |
#| "\\&\n" |
| 376 |
#| " printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n" |
| 377 |
#| " buffer[2], buffer[3]);\n" |
| 378 |
#| "\\&\n" |
| 379 |
#| " ret = fread(buffer, 1, 1, fp);\n" |
| 380 |
#| " if (ret != 1) {\n" |
| 381 |
#| " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 382 |
#| " exit(EXIT_FAILURE);\n" |
| 383 |
#| " }\n" |
| 384 |
#| "\\&\n" |
| 385 |
#| " printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n" |
| 386 |
#| "\\&\n" |
| 387 |
#| " fclose(fp);\n" |
| 388 |
#| "\\&\n" |
| 389 |
#| " exit(EXIT_SUCCESS);\n" |
| 390 |
#| "}\n" |
| 391 |
msgid "" |
| 392 |
"#include E<lt>stdcountof.hE<gt>\n" |
| 393 |
"#include E<lt>stdio.hE<gt>\n" |
| 394 |
"#include E<lt>stdlib.hE<gt>\n" |
| 395 |
"\\&\n" |
| 396 |
"int\n" |
| 397 |
"main(void)\n" |
| 398 |
"{\n" |
| 399 |
" FILE *fp;\n" |
| 400 |
" size_t ret;\n" |
| 401 |
" unsigned char buffer[4];\n" |
| 402 |
"\\&\n" |
| 403 |
" fp = fopen(\"/bin/sh\", \"rb\");\n" |
| 404 |
" if (!fp) {\n" |
| 405 |
" perror(\"fopen\");\n" |
| 406 |
" return EXIT_FAILURE;\n" |
| 407 |
" }\n" |
| 408 |
"\\&\n" |
| 409 |
" ret = fread(buffer, sizeof(*buffer), countof(buffer), fp);\n" |
| 410 |
" if (ret != countof(buffer)) {\n" |
| 411 |
" fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 412 |
" exit(EXIT_FAILURE);\n" |
| 413 |
" }\n" |
| 414 |
"\\&\n" |
| 415 |
" printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n" |
| 416 |
" buffer[2], buffer[3]);\n" |
| 417 |
"\\&\n" |
| 418 |
" ret = fread(buffer, 1, 1, fp);\n" |
| 419 |
" if (ret != 1) {\n" |
| 420 |
" fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 421 |
" exit(EXIT_FAILURE);\n" |
| 422 |
" }\n" |
| 423 |
"\\&\n" |
| 424 |
" printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n" |
| 425 |
"\\&\n" |
| 426 |
" fclose(fp);\n" |
| 427 |
"\\&\n" |
| 428 |
" exit(EXIT_SUCCESS);\n" |
| 429 |
"}\n" |
| 430 |
msgstr "" |
| 431 |
"#include E<lt>stdio.hE<gt>\n" |
| 432 |
"#include E<lt>stdlib.hE<gt>\n" |
| 433 |
"\\&\n" |
| 434 |
"#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n" |
| 435 |
"\\&\n" |
| 436 |
"int\n" |
| 437 |
"main(void)\n" |
| 438 |
"{\n" |
| 439 |
" FILE *fp;\n" |
| 440 |
" size_t ret;\n" |
| 441 |
" unsigned char buffer[4];\n" |
| 442 |
"\\&\n" |
| 443 |
" fp = fopen(\"/bin/sh\", \"rb\");\n" |
| 444 |
" if (!fp) {\n" |
| 445 |
" perror(\"fopen\");\n" |
| 446 |
" return EXIT_FAILURE;\n" |
| 447 |
" }\n" |
| 448 |
"\\&\n" |
| 449 |
" ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n" |
| 450 |
" if (ret != ARRAY_SIZE(buffer)) {\n" |
| 451 |
" fprintf(stderr, \"fread() a échoué : %zu\\[rs]n\", ret);\n" |
| 452 |
" exit(EXIT_FAILURE);\n" |
| 453 |
" }\n" |
| 454 |
"\\&\n" |
| 455 |
" printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n" |
| 456 |
" buffer[2], buffer[3]);\n" |
| 457 |
"\\&\n" |
| 458 |
" ret = fread(buffer, 1, 1, fp);\n" |
| 459 |
" if (ret != 1) {\n" |
| 460 |
" fprintf(stderr, \"fread() a échoué : %zu\\[rs]n\", ret);\n" |
| 461 |
" exit(EXIT_FAILURE);\n" |
| 462 |
" }\n" |
| 463 |
"\\&\n" |
| 464 |
" printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n" |
| 465 |
"\\&\n" |
| 466 |
" fclose(fp);\n" |
| 467 |
"\\&\n" |
| 468 |
" exit(EXIT_SUCCESS);\n" |
| 469 |
"}\n" |
| 470 |
|
| 471 |
#. SRC END |
| 472 |
#. type: SH |
| 473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 475 |
#, no-wrap |
| 476 |
msgid "SEE ALSO" |
| 477 |
msgstr "VOIR AUSSI" |
| 478 |
|
| 479 |
#. type: Plain text |
| 480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 481 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 482 |
msgid "B<read>(2), B<write>(2), B<feof>(3), B<ferror>(3), B<unlocked_stdio>(3)" |
| 483 |
msgstr "" |
| 484 |
"B<read>(2), B<write>(2), B<feof>(3), B<ferror>(3), B<unlocked_stdio>(3)" |
| 485 |
|
| 486 |
#. type: TH |
| 487 |
#: debian-trixie |
| 488 |
#, no-wrap |
| 489 |
msgid "2024-06-15" |
| 490 |
msgstr "15 juin 2024" |
| 491 |
|
| 492 |
#. type: TH |
| 493 |
#: debian-trixie |
| 494 |
#, no-wrap |
| 495 |
msgid "Linux man-pages 6.9.1" |
| 496 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 497 |
|
| 498 |
#. type: Plain text |
| 499 |
#: debian-trixie |
| 500 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 501 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 502 |
|
| 503 |
#. type: Plain text |
| 504 |
#: debian-trixie |
| 505 |
#, no-wrap |
| 506 |
msgid "" |
| 507 |
"B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n" |
| 508 |
"B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 509 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 510 |
"B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n" |
| 511 |
"B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n" |
| 512 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 513 |
msgstr "" |
| 514 |
"B<size_t fread(void >I<ptr>B<[restrict .>I<taille>B< * .>I<nmemb>B<],>\n" |
| 515 |
"B< size_t >I<taille>B<, size_t >I<nmemb>B<,>\n" |
| 516 |
"B< FILE *restrict >I<flux>B<);>\n" |
| 517 |
"B<size_t fwrite(const void >I<ptr>B<[restrict .>I<taille>B< * .>I<nmemb>B<],>\n" |
| 518 |
"B< size_t >I<taille>B<, size_t >I<nmemb>B<,>\n" |
| 519 |
"B< FILE *restrict >I<flux>B<);>\n" |
| 520 |
|
| 521 |
#. type: Plain text |
| 522 |
#: debian-trixie |
| 523 |
msgid "" |
| 524 |
"The function B<fread>() reads I<nmemb> items of data, each I<size> bytes " |
| 525 |
"long, from the stream pointed to by I<stream>, storing them at the location " |
| 526 |
"given by I<ptr>." |
| 527 |
msgstr "" |
| 528 |
"La fonction B<fread>() lit I<nbelem> éléments de données de I<taille> octets " |
| 529 |
"chacun depuis le flux pointé par I<flux>, et les stocke à l'emplacement " |
| 530 |
"pointé par I<ptr>." |
| 531 |
|
| 532 |
#. type: Plain text |
| 533 |
#: debian-trixie |
| 534 |
msgid "" |
| 535 |
"The function B<fwrite>() writes I<nmemb> items of data, each I<size> bytes " |
| 536 |
"long, to the stream pointed to by I<stream>, obtaining them from the " |
| 537 |
"location given by I<ptr>." |
| 538 |
msgstr "" |
| 539 |
"La fonction B<fwrite>() écrit I<nbelem> éléments de données de I<taille> " |
| 540 |
"octets chacun dans le flux pointé par I<flux>, après les avoir récupérés " |
| 541 |
"depuis l'emplacement pointé par I<ptr>." |
| 542 |
|
| 543 |
#. type: Plain text |
| 544 |
#: debian-trixie fedora-44 fedora-rawhide |
| 545 |
#, no-wrap |
| 546 |
msgid "" |
| 547 |
"$ B<./a.out>\n" |
| 548 |
"ELF magic: 0x7f454c46\n" |
| 549 |
"Class: 0x02\n" |
| 550 |
msgstr "" |
| 551 |
"$ B<./a.out>\n" |
| 552 |
"ELF magic: 0x7f454c46\n" |
| 553 |
"Class: 0x02\n" |
| 554 |
|
| 555 |
#. type: Plain text |
| 556 |
#: debian-trixie fedora-44 fedora-rawhide |
| 557 |
#, no-wrap |
| 558 |
msgid "" |
| 559 |
"#include E<lt>stdio.hE<gt>\n" |
| 560 |
"#include E<lt>stdlib.hE<gt>\n" |
| 561 |
"\\&\n" |
| 562 |
"#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n" |
| 563 |
"\\&\n" |
| 564 |
"int\n" |
| 565 |
"main(void)\n" |
| 566 |
"{\n" |
| 567 |
" FILE *fp;\n" |
| 568 |
" size_t ret;\n" |
| 569 |
" unsigned char buffer[4];\n" |
| 570 |
"\\&\n" |
| 571 |
" fp = fopen(\"/bin/sh\", \"rb\");\n" |
| 572 |
" if (!fp) {\n" |
| 573 |
" perror(\"fopen\");\n" |
| 574 |
" return EXIT_FAILURE;\n" |
| 575 |
" }\n" |
| 576 |
"\\&\n" |
| 577 |
" ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n" |
| 578 |
" if (ret != ARRAY_SIZE(buffer)) {\n" |
| 579 |
" fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 580 |
" exit(EXIT_FAILURE);\n" |
| 581 |
" }\n" |
| 582 |
"\\&\n" |
| 583 |
" printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n" |
| 584 |
" buffer[2], buffer[3]);\n" |
| 585 |
"\\&\n" |
| 586 |
" ret = fread(buffer, 1, 1, fp);\n" |
| 587 |
" if (ret != 1) {\n" |
| 588 |
" fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n" |
| 589 |
" exit(EXIT_FAILURE);\n" |
| 590 |
" }\n" |
| 591 |
"\\&\n" |
| 592 |
" printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n" |
| 593 |
"\\&\n" |
| 594 |
" fclose(fp);\n" |
| 595 |
"\\&\n" |
| 596 |
" exit(EXIT_SUCCESS);\n" |
| 597 |
"}\n" |
| 598 |
msgstr "" |
| 599 |
"#include E<lt>stdio.hE<gt>\n" |
| 600 |
"#include E<lt>stdlib.hE<gt>\n" |
| 601 |
"\\&\n" |
| 602 |
"#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n" |
| 603 |
"\\&\n" |
| 604 |
"int\n" |
| 605 |
"main(void)\n" |
| 606 |
"{\n" |
| 607 |
" FILE *fp;\n" |
| 608 |
" size_t ret;\n" |
| 609 |
" unsigned char buffer[4];\n" |
| 610 |
"\\&\n" |
| 611 |
" fp = fopen(\"/bin/sh\", \"rb\");\n" |
| 612 |
" if (!fp) {\n" |
| 613 |
" perror(\"fopen\");\n" |
| 614 |
" return EXIT_FAILURE;\n" |
| 615 |
" }\n" |
| 616 |
"\\&\n" |
| 617 |
" ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n" |
| 618 |
" if (ret != ARRAY_SIZE(buffer)) {\n" |
| 619 |
" fprintf(stderr, \"fread() a échoué : %zu\\[rs]n\", ret);\n" |
| 620 |
" exit(EXIT_FAILURE);\n" |
| 621 |
" }\n" |
| 622 |
"\\&\n" |
| 623 |
" printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n" |
| 624 |
" buffer[2], buffer[3]);\n" |
| 625 |
"\\&\n" |
| 626 |
" ret = fread(buffer, 1, 1, fp);\n" |
| 627 |
" if (ret != 1) {\n" |
| 628 |
" fprintf(stderr, \"fread() a échoué : %zu\\[rs]n\", ret);\n" |
| 629 |
" exit(EXIT_FAILURE);\n" |
| 630 |
" }\n" |
| 631 |
"\\&\n" |
| 632 |
" printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n" |
| 633 |
"\\&\n" |
| 634 |
" fclose(fp);\n" |
| 635 |
"\\&\n" |
| 636 |
" exit(EXIT_SUCCESS);\n" |
| 637 |
"}\n" |
| 638 |
|
| 639 |
#. type: TH |
| 640 |
#: fedora-44 fedora-rawhide |
| 641 |
#, no-wrap |
| 642 |
msgid "2024-11-17" |
| 643 |
msgstr "17 novembre 2024" |
| 644 |
|
| 645 |
#. type: TH |
| 646 |
#: fedora-44 fedora-rawhide |
| 647 |
#, no-wrap |
| 648 |
msgid "Linux man-pages 6.13" |
| 649 |
msgstr "Pages du manuel de Linux 6.13" |
| 650 |
|
| 651 |
#. type: Plain text |
| 652 |
#: fedora-44 fedora-rawhide |
| 653 |
#, no-wrap |
| 654 |
msgid "" |
| 655 |
"B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n" |
| 656 |
"B< size_t >I<size>B<, size_t >I<n>B<,>\n" |
| 657 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 658 |
"B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n" |
| 659 |
"B< size_t >I<size>B<, size_t >I<n>B<,>\n" |
| 660 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 661 |
msgstr "" |
| 662 |
"B<size_t fread(void >I<ptr>B<[restrict .>I<taille>B< * .>I<n>B<],>\n" |
| 663 |
"B< size_t >I<taille>B<, size_t >I<n>B<,>\n" |
| 664 |
"B< FILE *restrict >I<flux>B<);>\n" |
| 665 |
"B<size_t fwrite(const void >I<ptr>B<[restrict .>I<taille>B< * .>I<n>B<],>\n" |
| 666 |
"B< size_t >I<taille>B<, size_t >I<n>B<,>\n" |
| 667 |
"B< FILE *restrict >I<flux>B<);>\n" |
| 668 |
|
| 669 |
#. type: TH |
| 670 |
#: mageia-cauldron |
| 671 |
#, no-wrap |
| 672 |
msgid "Linux man-pages 6.17" |
| 673 |
msgstr "Pages du manuel de Linux 6.17" |
| 674 |
|
| 675 |
#. type: TH |
| 676 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 677 |
#, no-wrap |
| 678 |
msgid "Linux man-pages (unreleased)" |
| 679 |
msgstr "Pages du manuel de Linux (non publiées)" |