| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:23+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "endian" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2025-05-17" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "" |
| 50 |
"htobe16, htole16, be16toh, le16toh, htobe32, htole32, be32toh, le32toh, " |
| 51 |
"htobe64, htole64, be64toh, le64toh - convert values between host and big-/" |
| 52 |
"little-endian byte order" |
| 53 |
msgstr "" |
| 54 |
|
| 55 |
#. type: SH |
| 56 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 57 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 58 |
#, no-wrap |
| 59 |
msgid "LIBRARY" |
| 60 |
msgstr "" |
| 61 |
|
| 62 |
#. type: Plain text |
| 63 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 64 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 66 |
msgstr "" |
| 67 |
|
| 68 |
#. type: SH |
| 69 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 70 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
#, no-wrap |
| 72 |
msgid "SYNOPSIS" |
| 73 |
msgstr "" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 77 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
#, no-wrap |
| 79 |
msgid "B<#include E<lt>endian.hE<gt>>\n" |
| 80 |
msgstr "" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "" |
| 87 |
"B<uint16_t htobe16(uint16_t >I<host_16bits>B<);>\n" |
| 88 |
"B<uint16_t htole16(uint16_t >I<host_16bits>B<);>\n" |
| 89 |
"B<uint16_t be16toh(uint16_t >I<big_endian_16bits>B<);>\n" |
| 90 |
"B<uint16_t le16toh(uint16_t >I<little_endian_16bits>B<);>\n" |
| 91 |
msgstr "" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "" |
| 98 |
"B<uint32_t htobe32(uint32_t >I<host_32bits>B<);>\n" |
| 99 |
"B<uint32_t htole32(uint32_t >I<host_32bits>B<);>\n" |
| 100 |
"B<uint32_t be32toh(uint32_t >I<big_endian_32bits>B<);>\n" |
| 101 |
"B<uint32_t le32toh(uint32_t >I<little_endian_32bits>B<);>\n" |
| 102 |
msgstr "" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
#, no-wrap |
| 108 |
msgid "" |
| 109 |
"B<uint64_t htobe64(uint64_t >I<host_64bits>B<);>\n" |
| 110 |
"B<uint64_t htole64(uint64_t >I<host_64bits>B<);>\n" |
| 111 |
"B<uint64_t be64toh(uint64_t >I<big_endian_64bits>B<);>\n" |
| 112 |
"B<uint64_t le64toh(uint64_t >I<little_endian_64bits>B<);>\n" |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
msgid "" |
| 119 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 120 |
msgstr "" |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
msgid "" |
| 126 |
"B<htobe16>(), B<htole16>(), B<be16toh>(), B<le16toh>(), B<htobe32>(), " |
| 127 |
"B<htole32>(), B<be32toh>(), B<le32toh>(), B<htobe64>(), B<htole64>(), " |
| 128 |
"B<be64toh>(), B<le64toh>():" |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
#, no-wrap |
| 135 |
msgid "" |
| 136 |
" Since glibc 2.19:\n" |
| 137 |
" _DEFAULT_SOURCE\n" |
| 138 |
" In glibc up to and including 2.19:\n" |
| 139 |
" _BSD_SOURCE\n" |
| 140 |
msgstr "" |
| 141 |
|
| 142 |
#. type: SH |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
#, no-wrap |
| 146 |
msgid "DESCRIPTION" |
| 147 |
msgstr "" |
| 148 |
|
| 149 |
#. type: Plain text |
| 150 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 151 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 152 |
msgid "" |
| 153 |
"These functions convert the byte encoding of integer values from the byte " |
| 154 |
"order that the current CPU (the \"host\") uses, to and from little-endian " |
| 155 |
"and big-endian byte order." |
| 156 |
msgstr "" |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"The number, I<nn>, in the name of each function indicates the size of " |
| 163 |
"integer handled by the function, either 16, 32, or 64 bits." |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 168 |
#: opensuse-tumbleweed |
| 169 |
msgid "" |
| 170 |
"The functions with names of the form \\[dq]htobeI<nn>\\[dq] convert from " |
| 171 |
"host byte order to big-endian order." |
| 172 |
msgstr "" |
| 173 |
|
| 174 |
#. type: Plain text |
| 175 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 176 |
#: opensuse-tumbleweed |
| 177 |
msgid "" |
| 178 |
"The functions with names of the form \\[dq]htoleI<nn>\\[dq] convert from " |
| 179 |
"host byte order to little-endian order." |
| 180 |
msgstr "" |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 184 |
#: opensuse-tumbleweed |
| 185 |
msgid "" |
| 186 |
"The functions with names of the form \\[dq]beI<nn>toh\\[dq] convert from big-" |
| 187 |
"endian order to host byte order." |
| 188 |
msgstr "" |
| 189 |
|
| 190 |
#. type: Plain text |
| 191 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 192 |
#: opensuse-tumbleweed |
| 193 |
msgid "" |
| 194 |
"The functions with names of the form \\[dq]leI<nn>toh\\[dq] convert from " |
| 195 |
"little-endian order to host byte order." |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: SH |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
#, no-wrap |
| 202 |
msgid "VERSIONS" |
| 203 |
msgstr "" |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
msgid "" |
| 209 |
"Similar functions are present on the BSDs, where the required header file is " |
| 210 |
"I<E<lt>sys/endian.hE<gt>> instead of I<E<lt>endian.hE<gt>>. Unfortunately, " |
| 211 |
"NetBSD, FreeBSD, and glibc haven't followed the original OpenBSD naming " |
| 212 |
"convention for these functions, whereby the I<nn> component always appears " |
| 213 |
"at the end of the function name (thus, for example, in NetBSD, FreeBSD, and " |
| 214 |
"glibc, the equivalent of OpenBSDs \"betoh32\" is \"be32toh\")." |
| 215 |
msgstr "" |
| 216 |
|
| 217 |
#. type: SH |
| 218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 219 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 220 |
#, no-wrap |
| 221 |
msgid "STANDARDS" |
| 222 |
msgstr "" |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
msgid "None." |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#. type: SH |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, no-wrap |
| 234 |
msgid "HISTORY" |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
msgid "glibc 2.9." |
| 241 |
msgstr "" |
| 242 |
|
| 243 |
#. type: Plain text |
| 244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 246 |
msgid "" |
| 247 |
"These functions are similar to the older B<byteorder>(3) family of " |
| 248 |
"functions. For example, B<be32toh>() is identical to B<ntohl>()." |
| 249 |
msgstr "" |
| 250 |
|
| 251 |
#. type: Plain text |
| 252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 254 |
msgid "" |
| 255 |
"The advantage of the B<byteorder>(3) functions is that they are standard " |
| 256 |
"functions available on all UNIX systems. On the other hand, the fact that " |
| 257 |
"they were designed for use in the context of TCP/IP means that they lack the " |
| 258 |
"64-bit and little-endian variants described in this page." |
| 259 |
msgstr "" |
| 260 |
|
| 261 |
#. type: SH |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
#, no-wrap |
| 265 |
msgid "EXAMPLES" |
| 266 |
msgstr "" |
| 267 |
|
| 268 |
#. type: Plain text |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
msgid "" |
| 272 |
"The program below display the results of converting an integer from host " |
| 273 |
"byte order to both little-endian and big-endian byte order. Since host byte " |
| 274 |
"order is either little-endian or big-endian, only one of these conversions " |
| 275 |
"will have an effect. When we run this program on a little-endian system " |
| 276 |
"such as x86-32, we see the following:" |
| 277 |
msgstr "" |
| 278 |
|
| 279 |
#. type: Plain text |
| 280 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 281 |
#: opensuse-tumbleweed |
| 282 |
#, no-wrap |
| 283 |
msgid "" |
| 284 |
"$B< ./a.out>;\n" |
| 285 |
"x.u32 = 0x44332211\n" |
| 286 |
"htole32(x.u32) = 0x44332211\n" |
| 287 |
"htobe32(x.u32) = 0x11223344\n" |
| 288 |
msgstr "" |
| 289 |
|
| 290 |
#. type: SS |
| 291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 293 |
#, no-wrap |
| 294 |
msgid "Program source" |
| 295 |
msgstr "" |
| 296 |
|
| 297 |
#. type: Plain text |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
#, no-wrap |
| 301 |
msgid "" |
| 302 |
"#include E<lt>endian.hE<gt>\n" |
| 303 |
"#include E<lt>stdint.hE<gt>\n" |
| 304 |
"#include E<lt>stdio.hE<gt>\n" |
| 305 |
"#include E<lt>stdlib.hE<gt>\n" |
| 306 |
"\\&\n" |
| 307 |
"int\n" |
| 308 |
"main(void)\n" |
| 309 |
"{\n" |
| 310 |
" union {\n" |
| 311 |
" uint32_t u32;\n" |
| 312 |
" uint8_t arr[4];\n" |
| 313 |
" } x;\n" |
| 314 |
"\\&\n" |
| 315 |
" x.arr[0] = 0x11;\t/* Lowest-address byte */\n" |
| 316 |
" x.arr[1] = 0x22;\n" |
| 317 |
" x.arr[2] = 0x33;\n" |
| 318 |
" x.arr[3] = 0x44;\t/* Highest-address byte */\n" |
| 319 |
"\\&\n" |
| 320 |
" printf(\"x.u32 = %#x\\[rs]n\", x.u32);\n" |
| 321 |
" printf(\"htole32(x.u32) = %#x\\[rs]n\", htole32(x.u32));\n" |
| 322 |
" printf(\"htobe32(x.u32) = %#x\\[rs]n\", htobe32(x.u32));\n" |
| 323 |
"\\&\n" |
| 324 |
" exit(EXIT_SUCCESS);\n" |
| 325 |
"}\n" |
| 326 |
msgstr "" |
| 327 |
|
| 328 |
#. SRC END |
| 329 |
#. type: SH |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
#, no-wrap |
| 333 |
msgid "SEE ALSO" |
| 334 |
msgstr "" |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "B<bswap>(3), B<byteorder>(3)" |
| 340 |
msgstr "" |
| 341 |
|
| 342 |
#. type: TH |
| 343 |
#: debian-trixie |
| 344 |
#, no-wrap |
| 345 |
msgid "2024-06-15" |
| 346 |
msgstr "" |
| 347 |
|
| 348 |
#. type: TH |
| 349 |
#: debian-trixie |
| 350 |
#, no-wrap |
| 351 |
msgid "Linux man-pages 6.9.1" |
| 352 |
msgstr "" |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: debian-trixie |
| 356 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 357 |
msgstr "" |
| 358 |
|
| 359 |
#. type: Plain text |
| 360 |
#: debian-trixie fedora-44 fedora-rawhide |
| 361 |
msgid "" |
| 362 |
"The functions with names of the form \"htobeI<nn>\" convert from host byte " |
| 363 |
"order to big-endian order." |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#. type: Plain text |
| 367 |
#: debian-trixie fedora-44 fedora-rawhide |
| 368 |
msgid "" |
| 369 |
"The functions with names of the form \"htoleI<nn>\" convert from host byte " |
| 370 |
"order to little-endian order." |
| 371 |
msgstr "" |
| 372 |
|
| 373 |
#. type: Plain text |
| 374 |
#: debian-trixie fedora-44 fedora-rawhide |
| 375 |
msgid "" |
| 376 |
"The functions with names of the form \"beI<nn>toh\" convert from big-endian " |
| 377 |
"order to host byte order." |
| 378 |
msgstr "" |
| 379 |
|
| 380 |
#. type: Plain text |
| 381 |
#: debian-trixie fedora-44 fedora-rawhide |
| 382 |
msgid "" |
| 383 |
"The functions with names of the form \"leI<nn>toh\" convert from little-" |
| 384 |
"endian order to host byte order." |
| 385 |
msgstr "" |
| 386 |
|
| 387 |
#. type: Plain text |
| 388 |
#: debian-trixie fedora-44 fedora-rawhide |
| 389 |
#, no-wrap |
| 390 |
msgid "" |
| 391 |
"$ B<./a.out>\n" |
| 392 |
"x.u32 = 0x44332211\n" |
| 393 |
"htole32(x.u32) = 0x44332211\n" |
| 394 |
"htobe32(x.u32) = 0x11223344\n" |
| 395 |
msgstr "" |
| 396 |
|
| 397 |
#. type: TH |
| 398 |
#: fedora-44 fedora-rawhide |
| 399 |
#, no-wrap |
| 400 |
msgid "2024-07-23" |
| 401 |
msgstr "" |
| 402 |
|
| 403 |
#. type: TH |
| 404 |
#: fedora-44 fedora-rawhide |
| 405 |
#, no-wrap |
| 406 |
msgid "Linux man-pages 6.13" |
| 407 |
msgstr "" |
| 408 |
|
| 409 |
#. type: TH |
| 410 |
#: mageia-cauldron |
| 411 |
#, no-wrap |
| 412 |
msgid "Linux man-pages 6.17" |
| 413 |
msgstr "" |
| 414 |
|
| 415 |
#. type: TH |
| 416 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 417 |
#, no-wrap |
| 418 |
msgid "Linux man-pages (unreleased)" |
| 419 |
msgstr "" |