| 1 |
# Danish translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Joe Hansen <[email protected]>, 2026. |
| 5 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: manpages-l10n 4.30.1\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:44+0200\n" |
| 9 |
"PO-Revision-Date: 2026-05-10 13:47+0200\n" |
| 10 |
"Last-Translator: Joe Hansen <[email protected]>\n" |
| 11 |
"Language-Team: Danish <[email protected]>\n" |
| 12 |
"Language: da\n" |
| 13 |
"MIME-Version: 1.0\n" |
| 14 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 15 |
"Content-Transfer-Encoding: 8bit\n" |
| 16 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 17 |
|
| 18 |
#. type: TH |
| 19 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 20 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 21 |
#, no-wrap |
| 22 |
msgid "splice" |
| 23 |
msgstr "splice" |
| 24 |
|
| 25 |
#. type: TH |
| 26 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 27 |
#: opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "2026-02-08" |
| 30 |
msgstr "8. februar 2026" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable |
| 34 |
#, no-wrap |
| 35 |
msgid "Linux man-pages 6.18" |
| 36 |
msgstr "Linux man-pages 6.18" |
| 37 |
|
| 38 |
#. type: SH |
| 39 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 40 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 41 |
#, no-wrap |
| 42 |
msgid "NAME" |
| 43 |
msgstr "NAVN" |
| 44 |
|
| 45 |
#. type: Plain text |
| 46 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 47 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
msgid "splice - splice data to/from a pipe" |
| 49 |
msgstr "spæice - del data op til/fra en datakanal" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
#, no-wrap |
| 55 |
msgid "LIBRARY" |
| 56 |
msgstr "BIBLIOTEK" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 60 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 62 |
msgstr "C-standardbibliotek (I<libc>,\\ I<-lc>)" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "SYNOPSIS" |
| 69 |
msgstr "SYNOPSIS" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "" |
| 76 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 77 |
"B<#define _FILE_OFFSET_BITS 64>\n" |
| 78 |
"B<#include E<lt>fcntl.hE<gt>>\n" |
| 79 |
msgstr "" |
| 80 |
"B<#define _GNU_SOURCE> /* Se feature_test_macros(7) */\n" |
| 81 |
"B<#define _FILE_OFFSET_BITS 64>\n" |
| 82 |
"B<#include E<lt>fcntl.hE<gt>>\n" |
| 83 |
|
| 84 |
#. Return type was long before glibc 2.7 |
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 87 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "" |
| 90 |
"B<ssize_t splice(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n" |
| 91 |
"B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n" |
| 92 |
"B< size_t >I<size>B<, unsigned int >I<flags>B<);>\n" |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#. type: SH |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
#, no-wrap |
| 99 |
msgid "DESCRIPTION" |
| 100 |
msgstr "BESKRIVELSE" |
| 101 |
|
| 102 |
#. type: Plain text |
| 103 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 104 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
msgid "" |
| 106 |
"B<splice>() moves data between two file descriptors without copying between " |
| 107 |
"kernel address space and user address space. It transfers up to I<size> " |
| 108 |
"bytes of data from the file descriptor I<fd_in> to the file descriptor " |
| 109 |
"I<fd_out>, where one of the file descriptors must refer to a pipe." |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
msgid "The following semantics apply for I<fd_in> and I<off_in>:" |
| 116 |
msgstr "" |
| 117 |
|
| 118 |
#. type: IP |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
#, no-wrap |
| 122 |
msgid "\\[bu]" |
| 123 |
msgstr "\\[bu]" |
| 124 |
|
| 125 |
#. type: Plain text |
| 126 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 127 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 128 |
msgid "If I<fd_in> refers to a pipe, then I<off_in> must be NULL." |
| 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 |
msgid "" |
| 135 |
"If I<fd_in> does not refer to a pipe and I<off_in> is NULL, then bytes are " |
| 136 |
"read from I<fd_in> starting from the file offset, and the file offset is " |
| 137 |
"adjusted appropriately." |
| 138 |
msgstr "" |
| 139 |
|
| 140 |
#. type: Plain text |
| 141 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 142 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
msgid "" |
| 144 |
"If I<fd_in> does not refer to a pipe and I<off_in> is not NULL, then " |
| 145 |
"I<off_in> must point to a buffer which specifies the starting offset from " |
| 146 |
"which bytes will be read from I<fd_in>; in this case, the file offset of " |
| 147 |
"I<fd_in> is not changed, and the offset pointed to by I<off_in> is adjusted " |
| 148 |
"appropriately instead." |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
msgid "Analogous statements apply for I<fd_out> and I<off_out>." |
| 155 |
msgstr "" |
| 156 |
|
| 157 |
#. type: Plain text |
| 158 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 159 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 160 |
msgid "" |
| 161 |
"The I<flags> argument is a bit mask that is composed by ORing together zero " |
| 162 |
"or more of the following values:" |
| 163 |
msgstr "" |
| 164 |
"Argumentet I<flags> er en bit-maske, der er sammensat af ORing sammen med " |
| 165 |
"nul eller flere af de følgende værdier:" |
| 166 |
|
| 167 |
#. type: TP |
| 168 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 169 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 170 |
#, no-wrap |
| 171 |
msgid "B<SPLICE_F_MOVE>" |
| 172 |
msgstr "B<SPLICE_F_MOVE>" |
| 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 |
"Attempt to move pages instead of copying. This is only a hint to the " |
| 179 |
"kernel: pages may still be copied if the kernel cannot move the pages from " |
| 180 |
"the pipe, or if the pipe buffers don't refer to full pages. The initial " |
| 181 |
"implementation of this flag was buggy: therefore starting in Linux 2.6.21 it " |
| 182 |
"is a no-op (but is still permitted in a B<splice>() call); in the future, a " |
| 183 |
"correct implementation may be restored." |
| 184 |
msgstr "" |
| 185 |
|
| 186 |
#. type: TP |
| 187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
#, no-wrap |
| 190 |
msgid "B<SPLICE_F_NONBLOCK>" |
| 191 |
msgstr "B<SPLICE_F_NONBLOCK>" |
| 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 |
"Do not block on I/O. This makes the splice pipe operations nonblocking, but " |
| 198 |
"B<splice>() may nevertheless block because the file descriptors that are " |
| 199 |
"spliced to/from may block (unless they have the B<O_NONBLOCK> flag set)." |
| 200 |
msgstr "" |
| 201 |
|
| 202 |
#. type: TP |
| 203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 204 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 205 |
#, no-wrap |
| 206 |
msgid "B<SPLICE_F_MORE>" |
| 207 |
msgstr "B<SPLICE_F_MORE>" |
| 208 |
|
| 209 |
#. type: Plain text |
| 210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 211 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 212 |
msgid "" |
| 213 |
"More data will be coming in a subsequent splice. This is a helpful hint " |
| 214 |
"when the I<fd_out> refers to a socket (see also the description of " |
| 215 |
"B<MSG_MORE> in B<send>(2), and the description of B<TCP_CORK> in B<tcp>(7))." |
| 216 |
msgstr "" |
| 217 |
|
| 218 |
#. type: TP |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
#, no-wrap |
| 222 |
msgid "B<SPLICE_F_GIFT>" |
| 223 |
msgstr "B<SPLICE_F_GIFT>" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "Unused for B<splice>(); see B<vmsplice>(2)." |
| 229 |
msgstr "" |
| 230 |
|
| 231 |
#. type: SH |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
#, no-wrap |
| 235 |
msgid "RETURN VALUE" |
| 236 |
msgstr "RETURVÆRDI" |
| 237 |
|
| 238 |
#. type: Plain text |
| 239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 240 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 241 |
msgid "" |
| 242 |
"Upon successful completion, B<splice>() returns the number of bytes spliced " |
| 243 |
"to or from the pipe." |
| 244 |
msgstr "" |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "" |
| 250 |
"A return value of 0 means end of input. If I<fd_in> refers to a pipe, then " |
| 251 |
"this means that there was no data to transfer, and it would not make sense " |
| 252 |
"to block because there are no writers connected to the write end of the pipe." |
| 253 |
msgstr "" |
| 254 |
|
| 255 |
#. type: Plain text |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
msgid "" |
| 259 |
"On error, B<splice>() returns -1 and I<errno> is set to indicate the error." |
| 260 |
msgstr "" |
| 261 |
|
| 262 |
#. type: SH |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
#, no-wrap |
| 266 |
msgid "ERRORS" |
| 267 |
msgstr "FEJL" |
| 268 |
|
| 269 |
#. type: TP |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
#, no-wrap |
| 273 |
msgid "B<EAGAIN>" |
| 274 |
msgstr "B<EAGAIN>" |
| 275 |
|
| 276 |
#. type: Plain text |
| 277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 278 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 279 |
msgid "" |
| 280 |
"B<SPLICE_F_NONBLOCK> was specified in I<flags> or one of the file " |
| 281 |
"descriptors had been marked as nonblocking (B<O_NONBLOCK>)B<,> and the " |
| 282 |
"operation would block." |
| 283 |
msgstr "" |
| 284 |
"B<SPLICE_F_NONBLOCK> var angivet i I<flag> eller en af fildeskriptorerne er " |
| 285 |
"blevet markeret som ikkeblokerende (B<O_NONBLOCK>)B<,> og operationen ville " |
| 286 |
"blokere." |
| 287 |
|
| 288 |
#. type: TP |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "B<EBADF>" |
| 293 |
msgstr "B<EBADF>" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "" |
| 299 |
"One or both file descriptors are not valid, or do not have proper read-write " |
| 300 |
"mode." |
| 301 |
msgstr "" |
| 302 |
|
| 303 |
#. type: TP |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
#, no-wrap |
| 307 |
msgid "B<EINVAL>" |
| 308 |
msgstr "B<EINVAL>" |
| 309 |
|
| 310 |
#. type: Plain text |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
msgid "The target filesystem doesn't support splicing." |
| 314 |
msgstr "" |
| 315 |
|
| 316 |
#. The append-mode error is given since Linux 2.6.27; in earlier kernels, |
| 317 |
#. splice() in append mode was broken |
| 318 |
#. type: Plain text |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
msgid "The target file is opened in append mode." |
| 322 |
msgstr "" |
| 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 "Neither of the file descriptors refers to a pipe." |
| 328 |
msgstr "" |
| 329 |
|
| 330 |
#. type: Plain text |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
msgid "An offset was given for nonseekable device (e.g., a pipe)." |
| 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 "I<fd_in> and I<fd_out> refer to the same pipe." |
| 340 |
msgstr "" |
| 341 |
|
| 342 |
#. type: TP |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
#, no-wrap |
| 346 |
msgid "B<ENOMEM>" |
| 347 |
msgstr "B<ENOMEM>" |
| 348 |
|
| 349 |
#. type: Plain text |
| 350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 351 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 352 |
msgid "Out of memory." |
| 353 |
msgstr "Ikke nok hukommelse." |
| 354 |
|
| 355 |
#. type: TP |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
#, no-wrap |
| 359 |
msgid "B<ESPIPE>" |
| 360 |
msgstr "B<ESPIPE>" |
| 361 |
|
| 362 |
#. type: Plain text |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
msgid "" |
| 366 |
"Either I<off_in> or I<off_out> was not NULL, but the corresponding file " |
| 367 |
"descriptor refers to a pipe." |
| 368 |
msgstr "" |
| 369 |
|
| 370 |
#. type: SH |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
#, no-wrap |
| 374 |
msgid "STANDARDS" |
| 375 |
msgstr "STANDARDER" |
| 376 |
|
| 377 |
#. type: Plain text |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
msgid "Linux." |
| 381 |
msgstr "Linux." |
| 382 |
|
| 383 |
#. type: SH |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
#, no-wrap |
| 387 |
msgid "HISTORY" |
| 388 |
msgstr "HISTORIK" |
| 389 |
|
| 390 |
#. type: Plain text |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
msgid "Linux 2.6.17, glibc 2.5." |
| 394 |
msgstr "Linux 2.6.17, glibc 2.5." |
| 395 |
|
| 396 |
#. commit 7c77f0b3f9208c339a4b40737bb2cb0f0319bb8d |
| 397 |
#. type: Plain text |
| 398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 399 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 400 |
msgid "" |
| 401 |
"In Linux 2.6.30 and earlier, exactly one of I<fd_in> and I<fd_out> was " |
| 402 |
"required to be a pipe. Since Linux 2.6.31, both arguments may refer to " |
| 403 |
"pipes." |
| 404 |
msgstr "" |
| 405 |
|
| 406 |
#. type: SH |
| 407 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 408 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 409 |
#, no-wrap |
| 410 |
msgid "NOTES" |
| 411 |
msgstr "NOTER" |
| 412 |
|
| 413 |
#. type: Plain text |
| 414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 415 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 416 |
msgid "" |
| 417 |
"The three system calls B<splice>(), B<vmsplice>(2), and B<tee>(2), provide " |
| 418 |
"user-space programs with full control over an arbitrary kernel buffer, " |
| 419 |
"implemented within the kernel using the same type of buffer that is used for " |
| 420 |
"a pipe. In overview, these system calls perform the following tasks:" |
| 421 |
msgstr "" |
| 422 |
|
| 423 |
#. type: TP |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
#, no-wrap |
| 427 |
msgid "B<splice>()" |
| 428 |
msgstr "" |
| 429 |
|
| 430 |
#. type: Plain text |
| 431 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 432 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 433 |
msgid "" |
| 434 |
"moves data from the buffer to an arbitrary file descriptor, or vice versa, " |
| 435 |
"or from one buffer to another." |
| 436 |
msgstr "" |
| 437 |
|
| 438 |
#. type: TP |
| 439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 440 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 441 |
#, no-wrap |
| 442 |
msgid "B<tee>(2)" |
| 443 |
msgstr "B<tee>(2)" |
| 444 |
|
| 445 |
#. type: Plain text |
| 446 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 447 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 448 |
msgid "\"copies\" the data from one buffer to another." |
| 449 |
msgstr "" |
| 450 |
|
| 451 |
#. type: TP |
| 452 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 453 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 454 |
#, no-wrap |
| 455 |
msgid "B<vmsplice>(2)" |
| 456 |
msgstr "B<vmsplice>(2)" |
| 457 |
|
| 458 |
#. type: Plain text |
| 459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 460 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 461 |
msgid "\"copies\" data from user space into the buffer." |
| 462 |
msgstr "" |
| 463 |
|
| 464 |
# |
| 465 |
# |
| 466 |
# |
| 467 |
#. Linus: Now, imagine using the above in a media server, for example. |
| 468 |
#. Let's say that a year or two has passed, so that the video drivers |
| 469 |
#. have been updated to be able to do the splice thing, and what can |
| 470 |
#. you do? You can: |
| 471 |
#. - splice from the (mpeg or whatever - let's just assume that the video |
| 472 |
#. input is either digital or does the encoding on its own - like they |
| 473 |
#. pretty much all do) video input into a pipe (remember: no copies - the |
| 474 |
#. video input will just DMA directly into memory, and splice will just |
| 475 |
#. set up the pages in the pipe buffer) |
| 476 |
#. - tee that pipe to split it up |
| 477 |
#. - splice one end to a file (ie "save the compressed stream to disk") |
| 478 |
#. - splice the other end to a real-time video decoder window for your |
| 479 |
#. real-time viewing pleasure. |
| 480 |
#. Linus: Now, the advantage of splice()/tee() is that you can |
| 481 |
#. do zero-copy movement of data, and unlike sendfile() you can |
| 482 |
#. do it on _arbitrary_ data (and, as shown by "tee()", it's more |
| 483 |
#. than just sending the data to somebody else: you can duplicate |
| 484 |
#. the data and choose to forward it to two or more different |
| 485 |
#. users - for things like logging etc.). |
| 486 |
#. type: Plain text |
| 487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 488 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 489 |
msgid "" |
| 490 |
"Though we talk of copying, actual copies are generally avoided. The kernel " |
| 491 |
"does this by implementing a pipe buffer as a set of reference-counted " |
| 492 |
"pointers to pages of kernel memory. The kernel creates \"copies\" of pages " |
| 493 |
"in a buffer by creating new pointers (for the output buffer) referring to " |
| 494 |
"the pages, and increasing the reference counts for the pages: only pointers " |
| 495 |
"are copied, not the pages of the buffer." |
| 496 |
msgstr "" |
| 497 |
|
| 498 |
#. type: Plain text |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
msgid "" |
| 502 |
"B<_FILE_OFFSET_BITS> should be defined to be 64 in code that uses non-null " |
| 503 |
"I<off_in> or I<off_out> or that takes the address of B<splice>, if the code " |
| 504 |
"is intended to be portable to traditional 32-bit x86 and ARM platforms where " |
| 505 |
"B<off_t>'s width defaults to 32 bits." |
| 506 |
msgstr "" |
| 507 |
|
| 508 |
#. type: SH |
| 509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 511 |
#, no-wrap |
| 512 |
msgid "EXAMPLES" |
| 513 |
msgstr "EKSEMPLER" |
| 514 |
|
| 515 |
#. type: Plain text |
| 516 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 517 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 518 |
msgid "See B<tee>(2) for another example." |
| 519 |
msgstr "" |
| 520 |
|
| 521 |
#. type: Plain text |
| 522 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 523 |
#: opensuse-tumbleweed |
| 524 |
#, no-wrap |
| 525 |
msgid "" |
| 526 |
"\\&\n" |
| 527 |
"#define _GNU_SOURCE\n" |
| 528 |
"#define _FILE_OFFSET_BITS 64\n" |
| 529 |
"#include E<lt>err.hE<gt>\n" |
| 530 |
"#include E<lt>fcntl.hE<gt>\n" |
| 531 |
"#include E<lt>stdint.hE<gt>\n" |
| 532 |
"#include E<lt>stdio.hE<gt>\n" |
| 533 |
"#include E<lt>stdlib.hE<gt>\n" |
| 534 |
"#include E<lt>sys/types.hE<gt>\n" |
| 535 |
"#include E<lt>unistd.hE<gt>\n" |
| 536 |
"\\&\n" |
| 537 |
"int\n" |
| 538 |
"main(void)\n" |
| 539 |
"{\n" |
| 540 |
" int fd;\n" |
| 541 |
" int pfd[2];\n" |
| 542 |
" off_t off;\n" |
| 543 |
" [[gnu::nonstring]]\n" |
| 544 |
"\tconst char s[12] = \"Hello, world\";\n" |
| 545 |
"\\&\n" |
| 546 |
" fd = open(\"out\", O_WRONLY | O_CREAT | O_EXCL, 0666);\n" |
| 547 |
" if (fd == -1)\n" |
| 548 |
" err(EXIT_FAILURE, \"open\");\n" |
| 549 |
"\\&\n" |
| 550 |
" if (pipe(pfd) == -1)\n" |
| 551 |
" err(EXIT_FAILURE, \"pipe\");\n" |
| 552 |
"\\&\n" |
| 553 |
" if (write(pfd[1], s, sizeof(s)) != sizeof(s))\n" |
| 554 |
" err(EXIT_FAILURE, \"write\");\n" |
| 555 |
" if (close(pfd[1]) == -1)\n" |
| 556 |
" err(EXIT_FAILURE, \"close\");\n" |
| 557 |
"\\&\n" |
| 558 |
" off = 10;\n" |
| 559 |
" if (splice(pfd[0], NULL, fd, &off, sizeof(s), 0) != sizeof(s))\n" |
| 560 |
" err(EXIT_FAILURE, \"splice\");\n" |
| 561 |
" if (close(pfd[0]) == -1)\n" |
| 562 |
" err(EXIT_FAILURE, \"close\");\n" |
| 563 |
"\\&\n" |
| 564 |
" printf(\"New offset is %jd\\[rs]n\", (intmax_t) off);\n" |
| 565 |
"\\&\n" |
| 566 |
" if (close(fd) == -1)\n" |
| 567 |
" err(EXIT_FAILURE, \"close\");\n" |
| 568 |
" exit(EXIT_SUCCESS);\n" |
| 569 |
"}\n" |
| 570 |
msgstr "" |
| 571 |
|
| 572 |
#. #-#-#-#-# archlinux: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 573 |
#. SRC END |
| 574 |
#. type: SH |
| 575 |
#. #-#-#-#-# debian-trixie: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 576 |
#. type: SH |
| 577 |
#. #-#-#-#-# debian-unstable: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 578 |
#. SRC END |
| 579 |
#. type: SH |
| 580 |
#. #-#-#-#-# fedora-44: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 581 |
#. SRC END |
| 582 |
#. type: SH |
| 583 |
#. #-#-#-#-# fedora-rawhide: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 584 |
#. SRC END |
| 585 |
#. type: SH |
| 586 |
#. #-#-#-#-# mageia-cauldron: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 587 |
#. SRC END |
| 588 |
#. type: SH |
| 589 |
#. #-#-#-#-# opensuse-leap-16-1: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 590 |
#. SRC END |
| 591 |
#. type: SH |
| 592 |
#. #-#-#-#-# opensuse-tumbleweed: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 593 |
#. SRC END |
| 594 |
#. type: SH |
| 595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 596 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 597 |
#, no-wrap |
| 598 |
msgid "SEE ALSO" |
| 599 |
msgstr "SE OGSÅ" |
| 600 |
|
| 601 |
#. type: Plain text |
| 602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 603 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 604 |
msgid "" |
| 605 |
"B<copy_file_range>(2), B<sendfile>(2), B<tee>(2), B<vmsplice>(2), B<pipe>(7)" |
| 606 |
msgstr "" |
| 607 |
|
| 608 |
#. type: TH |
| 609 |
#: debian-trixie |
| 610 |
#, no-wrap |
| 611 |
msgid "2024-05-02" |
| 612 |
msgstr "2. maj 2024" |
| 613 |
|
| 614 |
#. type: TH |
| 615 |
#: debian-trixie |
| 616 |
#, no-wrap |
| 617 |
msgid "Linux man-pages 6.9.1" |
| 618 |
msgstr "Linux man-pages 6.9.1" |
| 619 |
|
| 620 |
#. type: Plain text |
| 621 |
#: debian-trixie |
| 622 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 623 |
msgstr "C-standardbibliotek (I<libc>, I<-lc>)" |
| 624 |
|
| 625 |
#. Return type was long before glibc 2.7 |
| 626 |
#. type: Plain text |
| 627 |
#: debian-trixie |
| 628 |
#, no-wrap |
| 629 |
msgid "" |
| 630 |
"B<ssize_t splice(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n" |
| 631 |
"B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n" |
| 632 |
"B< size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 633 |
msgstr "" |
| 634 |
|
| 635 |
#. type: Plain text |
| 636 |
#: debian-trixie |
| 637 |
msgid "" |
| 638 |
"B<splice>() moves data between two file descriptors without copying between " |
| 639 |
"kernel address space and user address space. It transfers up to I<len> " |
| 640 |
"bytes of data from the file descriptor I<fd_in> to the file descriptor " |
| 641 |
"I<fd_out>, where one of the file descriptors must refer to a pipe." |
| 642 |
msgstr "" |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: debian-trixie |
| 646 |
msgid "" |
| 647 |
"If I<fd_in> does not refer to a pipe and I<off_in> is not NULL, then " |
| 648 |
"I<off_in> must point to a buffer which specifies the starting offset from " |
| 649 |
"which bytes will be read from I<fd_in>; in this case, the file offset of " |
| 650 |
"I<fd_in> is not changed." |
| 651 |
msgstr "" |
| 652 |
|
| 653 |
#. type: Plain text |
| 654 |
#: debian-trixie |
| 655 |
msgid "See B<tee>(2)." |
| 656 |
msgstr "" |
| 657 |
|
| 658 |
#. type: TH |
| 659 |
#: fedora-44 fedora-rawhide |
| 660 |
#, no-wrap |
| 661 |
msgid "2024-11-17" |
| 662 |
msgstr "17. november 2024" |
| 663 |
|
| 664 |
#. type: TH |
| 665 |
#: fedora-44 fedora-rawhide |
| 666 |
#, no-wrap |
| 667 |
msgid "Linux man-pages 6.13" |
| 668 |
msgstr "Linux man-pages 6.13" |
| 669 |
|
| 670 |
#. type: Plain text |
| 671 |
#: fedora-44 fedora-rawhide |
| 672 |
#, no-wrap |
| 673 |
msgid "" |
| 674 |
"\\&\n" |
| 675 |
"#define _GNU_SOURCE\n" |
| 676 |
"#define _FILE_OFFSET_BITS 64\n" |
| 677 |
"#include E<lt>err.hE<gt>\n" |
| 678 |
"#include E<lt>fcntl.hE<gt>\n" |
| 679 |
"#include E<lt>stdint.hE<gt>\n" |
| 680 |
"#include E<lt>stdio.hE<gt>\n" |
| 681 |
"#include E<lt>stdlib.hE<gt>\n" |
| 682 |
"#include E<lt>sys/types.hE<gt>\n" |
| 683 |
"#include E<lt>unistd.hE<gt>\n" |
| 684 |
"\\&\n" |
| 685 |
"int\n" |
| 686 |
"main(void)\n" |
| 687 |
"{\n" |
| 688 |
" int fd;\n" |
| 689 |
" int pfd[2];\n" |
| 690 |
" off_t off;\n" |
| 691 |
" const char s[12] = \"Hello, world\";\n" |
| 692 |
"\\&\n" |
| 693 |
" fd = open(\"out\", O_WRONLY | O_CREAT | O_EXCL, 0666);\n" |
| 694 |
" if (fd == -1)\n" |
| 695 |
" err(EXIT_FAILURE, \"open\");\n" |
| 696 |
"\\&\n" |
| 697 |
" if (pipe(pfd) == -1)\n" |
| 698 |
" err(EXIT_FAILURE, \"pipe\");\n" |
| 699 |
"\\&\n" |
| 700 |
" if (write(pfd[1], s, sizeof(s)) != sizeof(s))\n" |
| 701 |
" err(EXIT_FAILURE, \"write\");\n" |
| 702 |
" if (close(pfd[1]) == -1)\n" |
| 703 |
" err(EXIT_FAILURE, \"close\");\n" |
| 704 |
"\\&\n" |
| 705 |
" off = 10;\n" |
| 706 |
" if (splice(pfd[0], NULL, fd, &off, sizeof(s), 0) != sizeof(s))\n" |
| 707 |
" err(EXIT_FAILURE, \"splice\");\n" |
| 708 |
" if (close(pfd[0]) == -1)\n" |
| 709 |
" err(EXIT_FAILURE, \"close\");\n" |
| 710 |
"\\&\n" |
| 711 |
" printf(\"New offset is %jd\\[rs]n\", (intmax_t) off);\n" |
| 712 |
"\\&\n" |
| 713 |
" if (close(fd) == -1)\n" |
| 714 |
" err(EXIT_FAILURE, \"close\");\n" |
| 715 |
" exit(EXIT_SUCCESS);\n" |
| 716 |
"}\n" |
| 717 |
msgstr "" |
| 718 |
|
| 719 |
#. type: TH |
| 720 |
#: mageia-cauldron |
| 721 |
#, no-wrap |
| 722 |
msgid "Linux man-pages 6.17" |
| 723 |
msgstr "Linux man-pages 6.17" |
| 724 |
|
| 725 |
#. type: TH |
| 726 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 727 |
#, no-wrap |
| 728 |
msgid "Linux man-pages (unreleased)" |
| 729 |
msgstr "Linux man-pages (ej udgivet)" |