| 1 |
# German translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Martin Schulze <[email protected]>, 1996. |
| 5 |
# Daniel Kobras <[email protected]>, 2001. |
| 6 |
# Martin Eberhard Schauer <[email protected]>, 2012. |
| 7 |
# Mario Blättermann <[email protected]>, 2016, 2019, 2020, 2021, 2022, 2023. |
| 8 |
# Helge Kreutzmann <[email protected]>, 2015, 2017, 2019-2022. |
| 9 |
msgid "" |
| 10 |
msgstr "" |
| 11 |
"Project-Id-Version: manpages-l10n 4.28.0\n" |
| 12 |
"POT-Creation-Date: 2026-06-05 06:42+0200\n" |
| 13 |
"PO-Revision-Date: 2025-11-01 18:30+0100\n" |
| 14 |
"Last-Translator: Mario Blättermann <[email protected]>\n" |
| 15 |
"Language-Team: German <[email protected]>\n" |
| 16 |
"Language: de\n" |
| 17 |
"MIME-Version: 1.0\n" |
| 18 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 19 |
"Content-Transfer-Encoding: 8bit\n" |
| 20 |
"X-Generator: Lokalize 23.04.3\n" |
| 21 |
"Plural-Forms: nplurals=2; plural=n != 1;\n" |
| 22 |
|
| 23 |
#. type: TH |
| 24 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 25 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 26 |
#, no-wrap |
| 27 |
msgid "select" |
| 28 |
msgstr "select" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 32 |
#: opensuse-tumbleweed |
| 33 |
#, no-wrap |
| 34 |
msgid "2026-02-08" |
| 35 |
msgstr "8. Februar 2026" |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable |
| 39 |
#, no-wrap |
| 40 |
msgid "Linux man-pages 6.18" |
| 41 |
msgstr "Linux man-pages 6.18" |
| 42 |
|
| 43 |
#. type: SH |
| 44 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 45 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 46 |
#, no-wrap |
| 47 |
msgid "NAME" |
| 48 |
msgstr "BEZEICHNUNG" |
| 49 |
|
| 50 |
# http://de.wikipedia.org/wiki/Multiplexverfahren#Synchrones_Verfahren |
| 51 |
#. type: Plain text |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
msgid "" |
| 55 |
"select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - synchronous I/O " |
| 56 |
"multiplexing" |
| 57 |
msgstr "" |
| 58 |
"select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - synchrones E/A-" |
| 59 |
"Zeitmultiplexverfahren" |
| 60 |
|
| 61 |
#. type: SH |
| 62 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 63 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
#, no-wrap |
| 65 |
msgid "LIBRARY" |
| 66 |
msgstr "BIBLIOTHEK" |
| 67 |
|
| 68 |
#. type: Plain text |
| 69 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 70 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 72 |
msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)" |
| 73 |
|
| 74 |
#. type: SH |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "SYNOPSIS" |
| 79 |
msgstr "ÜBERSICHT" |
| 80 |
|
| 81 |
#. type: Plain text |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "B<#include E<lt>sys/select.hE<gt>>\n" |
| 86 |
msgstr "B<#include E<lt>sys/select.hE<gt>>\n" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 90 |
#: opensuse-tumbleweed |
| 91 |
#, no-wrap |
| 92 |
msgid "B<typedef> /* .\\|.\\|.\\& */ B<fd_set;>\n" |
| 93 |
msgstr "B<typedef> /* …\\& */ B<fd_set;>\n" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
#, no-wrap |
| 99 |
msgid "" |
| 100 |
"B<int select(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n" |
| 101 |
"B< fd_set *_Nullable restrict >I<writefds>B<,>\n" |
| 102 |
"B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n" |
| 103 |
"B< struct timeval *_Nullable restrict >I<timeout>B<);>\n" |
| 104 |
msgstr "" |
| 105 |
"B<int select(int >I<azdd>B<, fd_set *_Nullable restrict >I<lesedd>B<,>\n" |
| 106 |
"B< fd_set *_Nullable restrict >I<schreibedd>B<,>\n" |
| 107 |
"B< fd_set *_Nullable restrict >I<ausnahmedd>B<,>\n" |
| 108 |
"B< struct timeval *_Nullable restrict >I<wartezeit>B<);>\n" |
| 109 |
|
| 110 |
#. type: Plain text |
| 111 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 112 |
#: opensuse-tumbleweed |
| 113 |
#, no-wrap |
| 114 |
msgid "" |
| 115 |
"B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 116 |
"B<int FD_ISSET(int >I<fd>B<, const fd_set *>I<set>B<);>\n" |
| 117 |
"B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 118 |
"B<void FD_ZERO(fd_set *>I<set>B<);>\n" |
| 119 |
msgstr "" |
| 120 |
"B<void FD_CLR(int >I<dd>B<, fd_set *>I<gruppe>B<);>\n" |
| 121 |
"B<int FD_ISSET(int >I<dd>B<, const fd_set *>I<gruppe>B<);>\n" |
| 122 |
"B<void FD_SET(int >I<dd>B<, fd_set *>I<gruppe>B<);>\n" |
| 123 |
"B<void FD_ZERO(fd_set *>I<gruppe>B<);>\n" |
| 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 |
#, no-wrap |
| 129 |
msgid "" |
| 130 |
"B<int pselect(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n" |
| 131 |
"B< fd_set *_Nullable restrict >I<writefds>B<,>\n" |
| 132 |
"B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n" |
| 133 |
"B< const struct timespec *_Nullable restrict >I<timeout>B<,>\n" |
| 134 |
"B< const sigset_t *_Nullable restrict >I<sigmask>B<);>\n" |
| 135 |
msgstr "" |
| 136 |
"B<int pselect(int >I<azdd>B<, fd_set *_Nullable restrict >I<lesedd>B<,>\n" |
| 137 |
"B< fd_set *_Nullable restrict >I<schreibedd>B<,>\n" |
| 138 |
"B< fd_set *_Nullable restrict >I<ausnahmedd>B<,>\n" |
| 139 |
"B< const struct timespec *_Nullable restrict >I<wartezeit>B<,>\n" |
| 140 |
"B< const sigset_t *_Nullable restrict >I<sigmask>B<);>\n" |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 147 |
msgstr "" |
| 148 |
"Mit Glibc erforderliche Feature-Test-Makros (siehe " |
| 149 |
"B<feature_test_macros>(7)):" |
| 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 "B<pselect>():" |
| 155 |
msgstr "B<pselect>():" |
| 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 |
#, no-wrap |
| 161 |
msgid " _POSIX_C_SOURCE E<gt>= 200112L\n" |
| 162 |
msgstr " _POSIX_C_SOURCE E<gt>= 200112L\n" |
| 163 |
|
| 164 |
#. type: SH |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
#, no-wrap |
| 168 |
msgid "DESCRIPTION" |
| 169 |
msgstr "BESCHREIBUNG" |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"B<WARNING>: B<select>() can monitor only file descriptors numbers that are " |
| 176 |
"less than B<FD_SETSIZE> (1024)\\[em]an unreasonably low limit for many " |
| 177 |
"modern applications\\[em]and this limitation will not change. All modern " |
| 178 |
"applications should instead use B<poll>(2) or B<epoll>(7), which do not " |
| 179 |
"suffer this limitation." |
| 180 |
msgstr "" |
| 181 |
"B<WARNUNG>: B<select>() kann nur Datei-Deskriptoren-Nummern überwachen, die " |
| 182 |
"kleiner als B<FD_SETSIZE> (1024) sind. Für viele modernen Anwendungen ist " |
| 183 |
"dies eine unangemessen kleine Begrenzung, aber diese Einschränkung wird sich " |
| 184 |
"nicht ändern. Alle modernen Anwendungen sollten stattdessen B<poll>(2) oder " |
| 185 |
"B<epoll>(7) verwenden, die dieser Beschränkung nicht unterliegen." |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
msgid "" |
| 191 |
"B<select>() allows a program to monitor multiple file descriptors, waiting " |
| 192 |
"until one or more of the file descriptors become \"ready\" for some class of " |
| 193 |
"I/O operation (e.g., input possible). A file descriptor is considered ready " |
| 194 |
"if it is possible to perform a corresponding I/O operation (e.g., " |
| 195 |
"B<read>(2), or a sufficiently small B<write>(2)) without blocking." |
| 196 |
msgstr "" |
| 197 |
"Mit der Funktion B<select>() kann ein Programm mehrere Dateideskriptoren " |
| 198 |
"überwachen und warten, bis ein oder mehrere der Dateideskriptoren »bereit« " |
| 199 |
"für eine Klasse von E/A-Aktionen sind (z.\\ B. Eingabe möglich). Ein " |
| 200 |
"Dateideskriptor gilt als bereit, wenn es möglich ist, eine entsprechende E/A-" |
| 201 |
"Aktionen (z.B. B<read> (2) oder ein hinreichend kleines B<write>(2) ohne zu " |
| 202 |
"blockieren) durchzuführen." |
| 203 |
|
| 204 |
#. type: SS |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
#, no-wrap |
| 208 |
msgid "fd_set" |
| 209 |
msgstr "fd_set" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 213 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 214 |
msgid "" |
| 215 |
"A structure type that can represent a set of file descriptors. According to " |
| 216 |
"POSIX, the maximum number of file descriptors in an I<fd_set> structure is " |
| 217 |
"the value of the macro B<FD_SETSIZE>." |
| 218 |
msgstr "" |
| 219 |
"Ein Strukturtyp, der eine Reihe von Dateideskriptoren darstellen kann. Gemäß " |
| 220 |
"POSIX ist die maximale Anzahl an Dateideskriptoren in einer Struktur " |
| 221 |
"I<fd_set> der Wert des Makros B<FD_SETSIZE>." |
| 222 |
|
| 223 |
#. type: SS |
| 224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 225 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
#, no-wrap |
| 227 |
msgid "File descriptor sets" |
| 228 |
msgstr "Dateideskriptor-Gruppen" |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
msgid "" |
| 234 |
"The principal arguments of B<select>() are three \"sets\" of file " |
| 235 |
"descriptors (declared with the type I<fd_set>), which allow the caller to " |
| 236 |
"wait for three classes of events on the specified set of file descriptors. " |
| 237 |
"Each of the I<fd_set> arguments may be specified as NULL if no file " |
| 238 |
"descriptors are to be watched for the corresponding class of events." |
| 239 |
msgstr "" |
| 240 |
"Die hauptsächlichen Argumente von B<select>() sind drei »Gruppen« von " |
| 241 |
"Dateideskriptoren (mit dem Typ I<fd_set> deklariert), die es dem Aufrufenden " |
| 242 |
"erlauben, auf drei Ereignisklassen von der festgelegten Menge an " |
| 243 |
"Dateideskriptoren zu warten. Jedes der I<fd_set>-Argumente kann als NULL " |
| 244 |
"angegeben werden, falls keine Dateideskriptoren für die entsprechende " |
| 245 |
"Ereignisklasse beobachtet werden soll." |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "" |
| 251 |
"B<Note well>: Upon return, each of the file descriptor sets is modified in " |
| 252 |
"place to indicate which file descriptors are currently \"ready\". Thus, if " |
| 253 |
"using B<select>() within a loop, the sets I<must be reinitialized> before " |
| 254 |
"each call." |
| 255 |
msgstr "" |
| 256 |
"B<Beachten Sie gut>: Bei der Rückkehr wird jede der Dateideskriptor-Gruppen " |
| 257 |
"so verändert, dass sie anzeigen, welche Datei-Deskriptoren derzeit »bereit« " |
| 258 |
"sind. Falls Sie daher B<select>() innerhalb einer Schleife verwenden, " |
| 259 |
"I<müssen> die Gruppen vor jedem Aufruf I<neu initialisiert> werden." |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
msgid "" |
| 265 |
"The contents of a file descriptor set can be manipulated using the following " |
| 266 |
"macros:" |
| 267 |
msgstr "" |
| 268 |
"Der Inhalt einer Dateideskriptor-Gruppe kann mit den folgenden Makros " |
| 269 |
"bearbeitet werden:" |
| 270 |
|
| 271 |
#. type: TP |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
#, no-wrap |
| 275 |
msgid "B<FD_ZERO>()" |
| 276 |
msgstr "B<FD_ZERO>()" |
| 277 |
|
| 278 |
#. type: Plain text |
| 279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 280 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 281 |
msgid "" |
| 282 |
"This macro clears (removes all file descriptors from) I<set>. It should be " |
| 283 |
"employed as the first step in initializing a file descriptor set." |
| 284 |
msgstr "" |
| 285 |
"Dieses Makro löscht (entfernt alle Dateideskriptoren aus) I<gruppe>. Es " |
| 286 |
"sollte als erster Schritt beim Initialisieren einer Dateideskriptor-Gruppe " |
| 287 |
"eingebunden werden." |
| 288 |
|
| 289 |
#. type: TP |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
#, no-wrap |
| 293 |
msgid "B<FD_SET>()" |
| 294 |
msgstr "B<FD_SET>()" |
| 295 |
|
| 296 |
#. type: Plain text |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
msgid "" |
| 300 |
"This macro adds the file descriptor I<fd> to I<set>. Adding a file " |
| 301 |
"descriptor that is already present in the set is a no-op, and does not " |
| 302 |
"produce an error." |
| 303 |
msgstr "" |
| 304 |
"Dieses Makro fügt den Dateideskriptor I<dd> zu I<gruppe> hinzu. Das " |
| 305 |
"Hinzufügen eines bereits in I<gruppe> vorhandenen Dateideskriptors ist ein " |
| 306 |
"Leerbefehl und löst keinen Fehler aus." |
| 307 |
|
| 308 |
#. type: TP |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
#, no-wrap |
| 312 |
msgid "B<FD_CLR>()" |
| 313 |
msgstr "B<FD_CLR>()" |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "" |
| 319 |
"This macro removes the file descriptor I<fd> from I<set>. Removing a file " |
| 320 |
"descriptor that is not present in the set is a no-op, and does not produce " |
| 321 |
"an error." |
| 322 |
msgstr "" |
| 323 |
"Dieses Makro entfernt den Dateideskriptor I<dd> aus I<gruppe>. Das " |
| 324 |
"Hinzufügen eines nicht in I<gruppe> vorhandenen Dateideskriptors ist ein " |
| 325 |
"Leerbefehl und löst keinen Fehler aus." |
| 326 |
|
| 327 |
#. type: TP |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, no-wrap |
| 331 |
msgid "B<FD_ISSET>()" |
| 332 |
msgstr "B<FD_ISSET>()" |
| 333 |
|
| 334 |
#. type: Plain text |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
msgid "" |
| 338 |
"B<select>() modifies the contents of the sets according to the rules " |
| 339 |
"described below. After calling B<select>(), the B<FD_ISSET>() macro can be " |
| 340 |
"used to test if a file descriptor is still present in a set. B<FD_ISSET>() " |
| 341 |
"returns nonzero if the file descriptor I<fd> is present in I<set>, and zero " |
| 342 |
"if it is not." |
| 343 |
msgstr "" |
| 344 |
"B<select>() modifiziert den Inhalt der Gruppen entsprechend der nachfolgend " |
| 345 |
"bschriebenen Regeln. Nach dem Aufruf von B<select>() kann mit dem Makro " |
| 346 |
"B<FD_ISSET>() überprüft werden, ob ein Dateideskriptor noch in einer Gruppe " |
| 347 |
"vorhanden ist. B<FD_ISSET>() gibt einen von 0 verschiedenen Wert zurück, " |
| 348 |
"falls der Dateideskriptor I<dd> in I<gruppe> vorhanden ist; falls nicht, " |
| 349 |
"wird 0 zurückgegeben." |
| 350 |
|
| 351 |
#. type: SS |
| 352 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 353 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 354 |
#, no-wrap |
| 355 |
msgid "Arguments" |
| 356 |
msgstr "Argumente" |
| 357 |
|
| 358 |
#. type: Plain text |
| 359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 360 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 361 |
msgid "The arguments of B<select>() are as follows:" |
| 362 |
msgstr "Die Argumente von B<select>() im Einzelnen:" |
| 363 |
|
| 364 |
#. type: TP |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
#, no-wrap |
| 368 |
msgid "I<readfds>" |
| 369 |
msgstr "I<lesedd>" |
| 370 |
|
| 371 |
#. type: Plain text |
| 372 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 373 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 374 |
msgid "" |
| 375 |
"The file descriptors in this set are watched to see if they are ready for " |
| 376 |
"reading. A file descriptor is ready for reading if a read operation will " |
| 377 |
"not block; in particular, a file descriptor is also ready on end-of-file." |
| 378 |
msgstr "" |
| 379 |
"Die Dateideskriptoren in dieser Gruppe werden überwacht, um festzustellen, " |
| 380 |
"ob sie bereit zum Lesen sind. Ein Dateideskriptor ist bereit zum Lesen, wenn " |
| 381 |
"ein Lesevorgang nicht blockiert; insbesondere ist ein Dateideskriptor auch " |
| 382 |
"bereit, wenn das Dateiende erreicht ist." |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
msgid "" |
| 388 |
"After B<select>() has returned, I<readfds> will be cleared of all file " |
| 389 |
"descriptors except for those that are ready for reading." |
| 390 |
msgstr "" |
| 391 |
"Nachdem B<select>() zurückgekehrt ist, werden alle Dateideskriptoren aus " |
| 392 |
"I<lesedd> entfernt, außer jene, die bereit zum Lesen sind." |
| 393 |
|
| 394 |
#. type: TP |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
#, no-wrap |
| 398 |
msgid "I<writefds>" |
| 399 |
msgstr "I<schreibedd>" |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
msgid "" |
| 405 |
"The file descriptors in this set are watched to see if they are ready for " |
| 406 |
"writing. A file descriptor is ready for writing if a write operation will " |
| 407 |
"not block. However, even if a file descriptor indicates as writable, a " |
| 408 |
"large write may still block." |
| 409 |
msgstr "" |
| 410 |
"Die Dateideskriptoren in dieser Gruppe werden überwacht, um festzustellen, " |
| 411 |
"ob sie bereit zum Schreiben sind. Ein Dateideskriptor ist bereit zum " |
| 412 |
"Schreiben, wenn ein Schreibvorgang nicht blockiert. Dennoch könnte ein " |
| 413 |
"großer Schreibvorgang noch immer blockieren, selbst wenn ein Dateideskriptor " |
| 414 |
"als schreibbar angezeigt wird." |
| 415 |
|
| 416 |
#. type: Plain text |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
msgid "" |
| 420 |
"After B<select>() has returned, I<writefds> will be cleared of all file " |
| 421 |
"descriptors except for those that are ready for writing." |
| 422 |
msgstr "" |
| 423 |
"Nachdem B<select>() zurückgekehrt ist, werden alle Dateideskriptoren aus " |
| 424 |
"I<schreibedd> entfernt, außer jene, die bereit zum Schreiben sind." |
| 425 |
|
| 426 |
#. type: TP |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
#, no-wrap |
| 430 |
msgid "I<exceptfds>" |
| 431 |
msgstr "I<ausnahmedd>" |
| 432 |
|
| 433 |
#. type: Plain text |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
msgid "" |
| 437 |
"The file descriptors in this set are watched for \"exceptional " |
| 438 |
"conditions\". For examples of some exceptional conditions, see the " |
| 439 |
"discussion of B<POLLPRI> in B<poll>(2)." |
| 440 |
msgstr "" |
| 441 |
"Die Dateideskriptoren in dieser Gruppe werden auf »Ausnahmebedingungen« " |
| 442 |
"überwacht. Einige Beispiele für Ausnahmebedingungen finden Sie in den " |
| 443 |
"Erläuterungen zu B<POLLPRI> in B<poll>(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 "" |
| 449 |
"After B<select>() has returned, I<exceptfds> will be cleared of all file " |
| 450 |
"descriptors except for those for which an exceptional condition has occurred." |
| 451 |
msgstr "" |
| 452 |
"Nachdem B<select>() zurückgekehrt ist, werden alle Dateideskriptoren aus " |
| 453 |
"I<ausnahmedd> entfernt, außer jene, bei denen Ausnahmebedingungen " |
| 454 |
"aufgetreten sind." |
| 455 |
|
| 456 |
#. type: TP |
| 457 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 458 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 459 |
#, no-wrap |
| 460 |
msgid "I<nfds>" |
| 461 |
msgstr "I<azdd>" |
| 462 |
|
| 463 |
#. type: Plain text |
| 464 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 465 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 466 |
msgid "" |
| 467 |
"This argument should be set to the highest-numbered file descriptor in any " |
| 468 |
"of the three sets, plus 1. The indicated file descriptors in each set are " |
| 469 |
"checked, up to this limit (but see BUGS)." |
| 470 |
msgstr "" |
| 471 |
"Dieses Argument sollte auf die Nummer des am höchsten nummerierten " |
| 472 |
"Dateideskriptors in allen drei Gruppen plus 1 gesetzt werden. Der " |
| 473 |
"gekennzeichnete Dateideskriptor in jeder der drei Gruppen wird bis zu dieser " |
| 474 |
"Begrenzung geprüft (siehe aber FEHLER)." |
| 475 |
|
| 476 |
#. type: TP |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
#, no-wrap |
| 480 |
msgid "I<timeout>" |
| 481 |
msgstr "I<wartezeit>" |
| 482 |
|
| 483 |
#. type: Plain text |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
msgid "" |
| 487 |
"The I<timeout> argument is a I<timeval> structure (shown below) that " |
| 488 |
"specifies the interval that B<select>() should block waiting for a file " |
| 489 |
"descriptor to become ready. The call will block until either:" |
| 490 |
msgstr "" |
| 491 |
"Das Argument I<wartezeit> ist eine I<timeval>-Struktur (nachfolgend " |
| 492 |
"beschrieben), welche das Intervall angibt, das B<select>() warten sollte, " |
| 493 |
"bis ein Dateideskriptor bereit wird. Der Aufruf wird blockieren, bis " |
| 494 |
"entweder:" |
| 495 |
|
| 496 |
#. type: IP |
| 497 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 498 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 499 |
#, no-wrap |
| 500 |
msgid "\\[bu]" |
| 501 |
msgstr "\\[bu]" |
| 502 |
|
| 503 |
#. type: Plain text |
| 504 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 505 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 506 |
msgid "a file descriptor becomes ready;" |
| 507 |
msgstr "ein Dateideskriptor bereit wird," |
| 508 |
|
| 509 |
#. type: Plain text |
| 510 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 511 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 512 |
msgid "the call is interrupted by a signal handler; or" |
| 513 |
msgstr "der Aufruf durch einen Signal-Handler unterbrochen wird, oder" |
| 514 |
|
| 515 |
#. type: Plain text |
| 516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 517 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 518 |
msgid "the timeout expires." |
| 519 |
msgstr "die Wartezeit abläuft." |
| 520 |
|
| 521 |
#. type: Plain text |
| 522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 523 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 524 |
msgid "" |
| 525 |
"Note that the I<timeout> interval will be rounded up to the system clock " |
| 526 |
"granularity, and kernel scheduling delays mean that the blocking interval " |
| 527 |
"may overrun by a small amount." |
| 528 |
msgstr "" |
| 529 |
"Beachten Sie, das das Intervall I<wartezeit> auf die Auflösung der Systemuhr " |
| 530 |
"aufgerundet wird. Durch Verzögerungen beim Kernel-Scheduling kann dieser " |
| 531 |
"Wert nochmals etwas größer werden." |
| 532 |
|
| 533 |
#. type: Plain text |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
msgid "" |
| 537 |
"If both fields of the I<timeval> structure are zero, then B<select>() " |
| 538 |
"returns immediately. (This is useful for polling.)" |
| 539 |
msgstr "" |
| 540 |
"Falls beide Felder der Struktur I<timeval> gleich 0 sind, kehrt B<select>() " |
| 541 |
"sofort zurück. (Das ist praktisch für Polling)." |
| 542 |
|
| 543 |
#. type: Plain text |
| 544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 545 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 546 |
msgid "" |
| 547 |
"If I<timeout> is specified as NULL, B<select>() blocks indefinitely waiting " |
| 548 |
"for a file descriptor to become ready." |
| 549 |
msgstr "" |
| 550 |
"Falls I<wartezeit> als NULL angegeben wurde, wird B<select>() unendlich " |
| 551 |
"warten, bis ein Dateideskriptor bereit wird." |
| 552 |
|
| 553 |
#. type: SS |
| 554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 555 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 556 |
#, no-wrap |
| 557 |
msgid "pselect()" |
| 558 |
msgstr "pselect()" |
| 559 |
|
| 560 |
#. type: Plain text |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
msgid "" |
| 564 |
"The B<pselect>() system call allows an application to safely wait until " |
| 565 |
"either a file descriptor becomes ready or until a signal is caught." |
| 566 |
msgstr "" |
| 567 |
"Der Systemaufruf B<pselect>() ermöglicht einer Anwendung, sicher zu warten, " |
| 568 |
"bis entweder ein Dateideskriptor bereit wird oder bis ein Signal empfangen " |
| 569 |
"wird." |
| 570 |
|
| 571 |
#. type: Plain text |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
msgid "" |
| 575 |
"The operation of B<select>() and B<pselect>() is identical, other than " |
| 576 |
"these three differences:" |
| 577 |
msgstr "" |
| 578 |
"Das Verhalten von B<select>() und B<pselect>() ist bis die folgenden drei " |
| 579 |
"Unterschiede identisch:" |
| 580 |
|
| 581 |
#. type: Plain text |
| 582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 583 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 584 |
msgid "" |
| 585 |
"B<select>() uses a timeout that is a I<struct timeval> (with seconds and " |
| 586 |
"microseconds), while B<pselect>() uses a I<struct timespec> (with seconds " |
| 587 |
"and nanoseconds)." |
| 588 |
msgstr "" |
| 589 |
"B<select>() verwendet für Wartezeiten ein I<struct timeval> (mit Sekunden " |
| 590 |
"und Mikrosekunden), während B<pselect>() stattdessen ein I<struct timespec> " |
| 591 |
"(mit Sekunden und Nanosekunden) verwendet." |
| 592 |
|
| 593 |
#. type: Plain text |
| 594 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 595 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 596 |
msgid "" |
| 597 |
"B<select>() may update the I<timeout> argument to indicate how much time " |
| 598 |
"was left. B<pselect>() does not change this argument." |
| 599 |
msgstr "" |
| 600 |
"Während B<select>() das Argument I<wartezeit> ändern darf, um die " |
| 601 |
"verbleibende Zeit anzugeben, verändert B<pselect>() dieses Argument nicht." |
| 602 |
|
| 603 |
#. type: Plain text |
| 604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
msgid "" |
| 607 |
"B<select>() has no I<sigmask> argument, and behaves as B<pselect>() called " |
| 608 |
"with NULL I<sigmask>." |
| 609 |
msgstr "" |
| 610 |
"Die Funktion B<select>() hat keinen Parameter I<sigmask> und verhält sich " |
| 611 |
"wie B<pselect>, wenn ihr für I<sigmask> ein NULL übergeben wird." |
| 612 |
|
| 613 |
#. type: Plain text |
| 614 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 615 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 616 |
msgid "" |
| 617 |
"I<sigmask> is a pointer to a signal mask (see B<sigprocmask>(2)); if it is " |
| 618 |
"not NULL, then B<pselect>() first replaces the current signal mask by the " |
| 619 |
"one pointed to by I<sigmask>, then does the \"select\" function, and then " |
| 620 |
"restores the original signal mask. (If I<sigmask> is NULL, the signal mask " |
| 621 |
"is not modified during the B<pselect>() call.)" |
| 622 |
msgstr "" |
| 623 |
"I<sigmask> ist ein Zeiger auf eine Signalmaske (siehe B<sigprocmask>(2)); " |
| 624 |
"falls er ungleich NULL ist, ersetzt B<pselect>() zuerst die aktuelle " |
| 625 |
"Signalmaske durch diejenige, auf die I<sigmask> weist, erledigt danach die " |
| 626 |
"»select«-Funktion und stellt als Letztes die ursprüngliche Signalmaske " |
| 627 |
"wieder her. (Falls I<sigmask> nicht NULL ist, wird die Signalmaske während " |
| 628 |
"des B<pselect>()-Aufrufs nicht verändert.)" |
| 629 |
|
| 630 |
#. type: Plain text |
| 631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 632 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
msgid "" |
| 634 |
"Other than the difference in the precision of the I<timeout> argument, the " |
| 635 |
"following B<pselect>() call:" |
| 636 |
msgstr "" |
| 637 |
"Abgesehen von der unterschiedlichen Genauigkeit des I<wartezeit>-Arguments " |
| 638 |
"ist der B<pselect>()-Aufruf" |
| 639 |
|
| 640 |
#. type: Plain text |
| 641 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 642 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 643 |
#, no-wrap |
| 644 |
msgid "" |
| 645 |
"ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n" |
| 646 |
" timeout, &sigmask);\n" |
| 647 |
msgstr "" |
| 648 |
"ready = pselect(azdd, &lesedd, &schreibedd, &ausnahmedd,\n" |
| 649 |
" wartezeit, &sigmask);\n" |
| 650 |
|
| 651 |
#. type: Plain text |
| 652 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 653 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 654 |
msgid "is equivalent to I<atomically> executing the following calls:" |
| 655 |
msgstr "ist äquivalent zur I<atomaren> Ausführung der folgenden Aufrufe:" |
| 656 |
|
| 657 |
#. type: Plain text |
| 658 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 659 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 660 |
#, no-wrap |
| 661 |
msgid "" |
| 662 |
"sigset_t origmask;\n" |
| 663 |
"\\&\n" |
| 664 |
"pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n" |
| 665 |
"ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" |
| 666 |
"pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n" |
| 667 |
msgstr "" |
| 668 |
"sigset_t origmask;\n" |
| 669 |
"\\&\n" |
| 670 |
"pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n" |
| 671 |
"ready = select(azdd, &lesedd, &schreibedd, &ausnahmedd, wartezeit);\n" |
| 672 |
"pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n" |
| 673 |
|
| 674 |
#. type: Plain text |
| 675 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 676 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 677 |
msgid "" |
| 678 |
"The reason that B<pselect>() is needed is that if one wants to wait for " |
| 679 |
"either a signal or for a file descriptor to become ready, then an atomic " |
| 680 |
"test is needed to prevent race conditions. (Suppose the signal handler sets " |
| 681 |
"a global flag and returns. Then a test of this global flag followed by a " |
| 682 |
"call of B<select>() could hang indefinitely if the signal arrived just " |
| 683 |
"after the test but just before the call. By contrast, B<pselect>() allows " |
| 684 |
"one to first block signals, handle the signals that have come in, then call " |
| 685 |
"B<pselect>() with the desired I<sigmask>, avoiding the race.)" |
| 686 |
msgstr "" |
| 687 |
"Falls man auf die Verfügbarkeit eines Signals oder eines Dateideskriptors " |
| 688 |
"warten möchte, ist zur Vermeidung von Wettlaufsituationen (race conditions) " |
| 689 |
"eine atomare Prüfung erforderlich, die von B<pselect>() erledigt wird. " |
| 690 |
"(Angenommen, der Signal Handler setzt einen globalen Schalter und kehrt " |
| 691 |
"zurück. Dann könnte eine Prüfung dieses globalen Schalters gefolgt von einem " |
| 692 |
"Aufruf von B<select>() auf unbestimmte Zeit hängen, wenn das Signal zwischen " |
| 693 |
"der Prüfung und vor dem Aufruf von B<select>() eintrifft. Im Gegensatz dazu " |
| 694 |
"ermöglicht es B<pselect>() zuerst Signale zu blockieren, die eingetroffenen " |
| 695 |
"Signale abzuarbeiten und anschließend B<pselect>() mit der gewünschten " |
| 696 |
"I<sigmask> aufzurufen, um Race Conditions zu vermeiden.)" |
| 697 |
|
| 698 |
#. type: SS |
| 699 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 700 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 701 |
#, no-wrap |
| 702 |
msgid "The timeout" |
| 703 |
msgstr "Die Wartezeit (timeout)" |
| 704 |
|
| 705 |
#. type: Plain text |
| 706 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 707 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 708 |
msgid "" |
| 709 |
"The I<timeout> argument for B<select>() is a structure of the following " |
| 710 |
"type:" |
| 711 |
msgstr "" |
| 712 |
"Das Argument I<wartezeit> für B<select>() ist eine Struktur des folgenden " |
| 713 |
"Typs:" |
| 714 |
|
| 715 |
#. type: Plain text |
| 716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 717 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 718 |
#, no-wrap |
| 719 |
msgid "" |
| 720 |
"struct timeval {\n" |
| 721 |
" time_t tv_sec; /* seconds */\n" |
| 722 |
" suseconds_t tv_usec; /* microseconds */\n" |
| 723 |
"};\n" |
| 724 |
msgstr "" |
| 725 |
"struct timeval {\n" |
| 726 |
" time_t tv_sec; /* Sekunden */\n" |
| 727 |
" suseconds_t tv_usec; /* Mikrosekunden */\n" |
| 728 |
"};\n" |
| 729 |
|
| 730 |
#. type: Plain text |
| 731 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 732 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 733 |
msgid "" |
| 734 |
"The corresponding argument for B<pselect>() is a B<timespec>(3) structure." |
| 735 |
msgstr "" |
| 736 |
"Das korrespondierende Argument für B<pselect>() ist eine B<timespec>(3)-" |
| 737 |
"Struktur." |
| 738 |
|
| 739 |
#. .P - it is rumored that: |
| 740 |
#. On BSD, when a timeout occurs, the file descriptor bits are not changed. |
| 741 |
#. - it is certainly true that: |
| 742 |
#. Linux follows SUSv2 and sets the bit masks to zero upon a timeout. |
| 743 |
#. type: Plain text |
| 744 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 745 |
#: opensuse-tumbleweed |
| 746 |
msgid "" |
| 747 |
"On Linux, B<select>() modifies I<timeout> to reflect the amount of time not " |
| 748 |
"slept; most other implementations do not do this. (POSIX.1 permits either " |
| 749 |
"behavior.) This causes problems both when Linux code which reads I<timeout> " |
| 750 |
"is ported to other operating systems, and when code is ported to Linux that " |
| 751 |
"reuses a I<struct\\ timeval> for multiple B<select>()s in a loop without " |
| 752 |
"reinitializing it. Consider I<timeout> to be undefined after B<select>() " |
| 753 |
"returns." |
| 754 |
msgstr "" |
| 755 |
"Unter Linux modifiziert B<select>() I<wartezeit>, um die nicht schlafend " |
| 756 |
"verbrachte Zeit anzuzeigen; die meisten anderen Implementierungen tun das " |
| 757 |
"nicht. (POSIX.1 lässt beiderlei Verhalten zu.) Dies führt zu Problemen " |
| 758 |
"sowohl bei der Portierung von Linux-Code, der I<wartezeit> liest, auf andere " |
| 759 |
"Betriebssysteme als auch bei der Portierung von Code nach Linux, der eine " |
| 760 |
"I<struct\\ timeval> in einer Schleife für mehrfache Aufrufe von B<select>() " |
| 761 |
"nutzt, ohne sie erneut zu initialisieren. Gehen Sie davon aus, dass " |
| 762 |
"I<wartezeit> nach der Rückkehr aus B<select>() nicht definiert ist." |
| 763 |
|
| 764 |
#. type: SH |
| 765 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 766 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 767 |
#, no-wrap |
| 768 |
msgid "RETURN VALUE" |
| 769 |
msgstr "RÜCKGABEWERT" |
| 770 |
|
| 771 |
#. type: Plain text |
| 772 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 773 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 774 |
msgid "" |
| 775 |
"On success, B<select>() and B<pselect>() return the number of file " |
| 776 |
"descriptors contained in the three returned descriptor sets (that is, the " |
| 777 |
"total number of bits that are set in I<readfds>, I<writefds>, " |
| 778 |
"I<exceptfds>). The return value may be zero if the timeout expired before " |
| 779 |
"any file descriptors became ready." |
| 780 |
msgstr "" |
| 781 |
"Bei Erfolg geben B<select>() und B<pselect>() die Anzahl der Datei-" |
| 782 |
"Deskriptoren in den drei zurückgegebenen Deskriptor-Gruppen zurück. (Das " |
| 783 |
"entspricht der Gesamtzahl von Bits, die in I<lesedd>, I<schreibedd> und " |
| 784 |
"I<ausnahmedd> gesetzt sind.) Der Rückgabewert kann 0 sein, falls die " |
| 785 |
"Wartezeit ablief, bevor der Dateideskriptor bereitstand." |
| 786 |
|
| 787 |
#. type: Plain text |
| 788 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 789 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 790 |
msgid "" |
| 791 |
"On error, -1 is returned, and I<errno> is set to indicate the error; the " |
| 792 |
"file descriptor sets are unmodified, and I<timeout> becomes undefined." |
| 793 |
msgstr "" |
| 794 |
"Bei einem Fehler wird -1 zurückgegeben und I<errno> wird gesetzt, um den " |
| 795 |
"Fehler anzuzeigen; die Dateideskriptor-Gruppen werden nicht verändert und " |
| 796 |
"I<wartezeit> wird undefiniert." |
| 797 |
|
| 798 |
#. type: SH |
| 799 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 800 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 801 |
#, no-wrap |
| 802 |
msgid "ERRORS" |
| 803 |
msgstr "FEHLER" |
| 804 |
|
| 805 |
#. type: TP |
| 806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 807 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 808 |
#, no-wrap |
| 809 |
msgid "B<EBADF>" |
| 810 |
msgstr "B<EBADF>" |
| 811 |
|
| 812 |
#. type: Plain text |
| 813 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 814 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 815 |
msgid "" |
| 816 |
"An invalid file descriptor was given in one of the sets. (Perhaps a file " |
| 817 |
"descriptor that was already closed, or one on which an error has occurred.) " |
| 818 |
"However, see BUGS." |
| 819 |
msgstr "" |
| 820 |
"In einer der Gruppen wurde ein ungültiger Dateideskriptor angegeben. " |
| 821 |
"(Vielleicht war es ein schon geschlossener Dateideskriptor oder einer, bei " |
| 822 |
"dem ein Fehler aufgetreten ist.) Lesen Sie aber auch FEHLER." |
| 823 |
|
| 824 |
#. type: TP |
| 825 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 826 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 827 |
#, no-wrap |
| 828 |
msgid "B<EINTR>" |
| 829 |
msgstr "B<EINTR>" |
| 830 |
|
| 831 |
#. type: Plain text |
| 832 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 833 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 834 |
msgid "A signal was caught; see B<signal>(7)." |
| 835 |
msgstr "Ein Signal wurde abgefangen; siehe B<signal>(7)." |
| 836 |
|
| 837 |
#. type: TP |
| 838 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 839 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 840 |
#, no-wrap |
| 841 |
msgid "B<EINVAL>" |
| 842 |
msgstr "B<EINVAL>" |
| 843 |
|
| 844 |
#. type: Plain text |
| 845 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 846 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 847 |
msgid "" |
| 848 |
"I<nfds> is negative or exceeds the B<RLIMIT_NOFILE> resource limit (see " |
| 849 |
"B<getrlimit>(2))." |
| 850 |
msgstr "" |
| 851 |
"I<azdd> ist negativ oder übersteigt die Ressourcenbegrenzung " |
| 852 |
"B<RLIMIT_NOFILE> (siehe B<getrlimit>(2))." |
| 853 |
|
| 854 |
#. type: Plain text |
| 855 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 856 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 857 |
msgid "The value contained within I<timeout> is invalid." |
| 858 |
msgstr "Der Wert von I<wartezeit> ist ungültig." |
| 859 |
|
| 860 |
#. type: TP |
| 861 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 862 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 863 |
#, no-wrap |
| 864 |
msgid "B<ENOMEM>" |
| 865 |
msgstr "B<ENOMEM>" |
| 866 |
|
| 867 |
#. type: Plain text |
| 868 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 869 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 870 |
msgid "Unable to allocate memory for internal tables." |
| 871 |
msgstr "Speicher für interne Tabellen konnte nicht bereitgestellt werden." |
| 872 |
|
| 873 |
#. type: SH |
| 874 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 875 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 876 |
#, no-wrap |
| 877 |
msgid "VERSIONS" |
| 878 |
msgstr "VERSIONEN" |
| 879 |
|
| 880 |
#. Darwin, according to a report by Jeremy Sequoia, relayed by Josh Triplett |
| 881 |
#. type: Plain text |
| 882 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 883 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 884 |
msgid "" |
| 885 |
"On some other UNIX systems, B<select>() can fail with the error B<EAGAIN> " |
| 886 |
"if the system fails to allocate kernel-internal resources, rather than " |
| 887 |
"B<ENOMEM> as Linux does. POSIX specifies this error for B<poll>(2), but not " |
| 888 |
"for B<select>(). Portable programs may wish to check for B<EAGAIN> and " |
| 889 |
"loop, just as with B<EINTR>." |
| 890 |
msgstr "" |
| 891 |
"Unter einigen UNIX-Systemen kann B<select>() mit dem Fehler B<EAGAIN> " |
| 892 |
"fehlschlagen, falls es dem System nicht gelingt, kernelinterne Ressourcen " |
| 893 |
"zuzuweisen. Linux verwendet hierbei B<ENOMEM>. POSIX legt diesen Fehler für " |
| 894 |
"B<poll>(2) aber nicht für B<select>() fest. Portable Anwendungen könnten in " |
| 895 |
"einer Schleife auf B<EAGAIN> (wie auch auf B<EINTR>) prüfen." |
| 896 |
|
| 897 |
#. type: SH |
| 898 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 899 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 900 |
#, no-wrap |
| 901 |
msgid "STANDARDS" |
| 902 |
msgstr "STANDARDS" |
| 903 |
|
| 904 |
#. type: Plain text |
| 905 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 906 |
#: opensuse-tumbleweed |
| 907 |
msgid "POSIX.1-2024." |
| 908 |
msgstr "POSIX.1-2024." |
| 909 |
|
| 910 |
#. type: SH |
| 911 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 912 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 913 |
#, no-wrap |
| 914 |
msgid "HISTORY" |
| 915 |
msgstr "GESCHICHTE" |
| 916 |
|
| 917 |
#. type: TP |
| 918 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 919 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 920 |
#, no-wrap |
| 921 |
msgid "B<select>()" |
| 922 |
msgstr "B<select>()" |
| 923 |
|
| 924 |
#. type: Plain text |
| 925 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 926 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 927 |
msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)." |
| 928 |
msgstr "POSIX.1-2001, 4.4BSD (erschien zuerst in 4.2BSD)." |
| 929 |
|
| 930 |
#. type: Plain text |
| 931 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 932 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 933 |
msgid "" |
| 934 |
"Generally portable to/from non-BSD systems supporting clones of the BSD " |
| 935 |
"socket layer (including System\\ V variants). However, note that the " |
| 936 |
"System\\ V variant typically sets the timeout variable before returning, but " |
| 937 |
"the BSD variant does not." |
| 938 |
msgstr "" |
| 939 |
"Im Allgemeinen von/nach nicht BSD-Systeme portabel, unterstützt Klone der " |
| 940 |
"BSD-Socket-Schicht (einschließlich System-V-Varianten). Beachten Sie " |
| 941 |
"allerdings, dass System-V-Varianten typischerweise die Variable »wartezeit« " |
| 942 |
"vor dem Zurückkehren setzen, die BSD-Variante aber nicht." |
| 943 |
|
| 944 |
#. type: TP |
| 945 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 946 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 947 |
#, no-wrap |
| 948 |
msgid "B<pselect>()" |
| 949 |
msgstr "B<pselect>()" |
| 950 |
|
| 951 |
#. type: Plain text |
| 952 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 953 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 954 |
msgid "Linux 2.6.16. POSIX.1g, POSIX.1-2001." |
| 955 |
msgstr "Linux 2.6.16. POSIX.1g, POSIX.1-2001." |
| 956 |
|
| 957 |
#. type: Plain text |
| 958 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 959 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 960 |
msgid "Prior to this, it was emulated in glibc (but see BUGS)." |
| 961 |
msgstr "Vorher wurde es in der Glibc emuliert (siehe aber FEHLER)." |
| 962 |
|
| 963 |
#. type: TP |
| 964 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 965 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 966 |
#, no-wrap |
| 967 |
msgid "B<fd_set>" |
| 968 |
msgstr "B<fd_set>" |
| 969 |
|
| 970 |
#. type: Plain text |
| 971 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 972 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 973 |
msgid "POSIX.1-2001." |
| 974 |
msgstr "POSIX.1-2001." |
| 975 |
|
| 976 |
#. type: SH |
| 977 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 978 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 979 |
#, no-wrap |
| 980 |
msgid "NOTES" |
| 981 |
msgstr "ANMERKUNGEN" |
| 982 |
|
| 983 |
#. type: Plain text |
| 984 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 985 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 986 |
msgid "" |
| 987 |
"The following header also provides the I<fd_set> type: I<E<lt>sys/" |
| 988 |
"time.hE<gt>>." |
| 989 |
msgstr "" |
| 990 |
"Der folgende Header stellt auch den Typ I<fd_set> bereit: I<E<lt>sys/" |
| 991 |
"time.hE<gt>>." |
| 992 |
|
| 993 |
#. type: Plain text |
| 994 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 995 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 996 |
msgid "" |
| 997 |
"An I<fd_set> is a fixed size buffer. Executing B<FD_CLR>() or B<FD_SET>() " |
| 998 |
"with a value of I<fd> that is negative or is equal to or larger than " |
| 999 |
"B<FD_SETSIZE> will result in undefined behavior. Moreover, POSIX requires " |
| 1000 |
"I<fd> to be a valid file descriptor." |
| 1001 |
msgstr "" |
| 1002 |
"Ein I<fd_set> ist ein Puffer fester Größe. Wird B<FD_CLR>() oder B<FD_SET>() " |
| 1003 |
"mit einem Wert für I<dd>, der negativ, gleich groß oder größer als " |
| 1004 |
"B<FD_SETSIZE> ist, ausgeführt, führt dies zu nicht definiertem Verhalten. " |
| 1005 |
"Desweiteren verlangt POSIX, dass I<dd> ein gültiger Dateideskriptor ist." |
| 1006 |
|
| 1007 |
#. type: Plain text |
| 1008 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1009 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1010 |
msgid "" |
| 1011 |
"The operation of B<select>() and B<pselect>() is not affected by the " |
| 1012 |
"B<O_NONBLOCK> flag." |
| 1013 |
msgstr "" |
| 1014 |
"Das Verhalten von B<select>() und B<pselect>() ist von dem Schalter " |
| 1015 |
"B<O_NONBLOCK> nicht betroffen." |
| 1016 |
|
| 1017 |
#. type: SS |
| 1018 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1019 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1020 |
#, no-wrap |
| 1021 |
msgid "The self-pipe trick" |
| 1022 |
msgstr "Der Selbst-Pipe-Trick" |
| 1023 |
|
| 1024 |
#. type: Plain text |
| 1025 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1026 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1027 |
msgid "" |
| 1028 |
"On systems that lack B<pselect>(), reliable (and more portable) signal " |
| 1029 |
"trapping can be achieved using the self-pipe trick. In this technique, a " |
| 1030 |
"signal handler writes a byte to a pipe whose other end is monitored by " |
| 1031 |
"B<select>() in the main program. (To avoid possibly blocking when writing " |
| 1032 |
"to a pipe that may be full or reading from a pipe that may be empty, " |
| 1033 |
"nonblocking I/O is used when reading from and writing to the pipe.)" |
| 1034 |
msgstr "" |
| 1035 |
"Auf Systemen, auf denen B<pselect>() fehlt, kann ein zuverlässiges (und " |
| 1036 |
"portableres) Abfangen von Signalen mit dem Selbst-Pipe-Trick erreicht " |
| 1037 |
"werden. Bei dieser Technik schreibt ein Signal-Handler ein Byte in eine " |
| 1038 |
"Pipe, dessen anderes Ende von B<select>() im Hauptprogramm überwacht wird. " |
| 1039 |
"(Um mögliches Blockieren beim Schreiben in eine Pipe, die voll sein könnte, " |
| 1040 |
"oder Lesen aus einer Pipe, die leer sein könnte, zu vermeiden, wird nicht " |
| 1041 |
"blockierende E/A beim Auslesen und Schreiben in die Pipe verwandt.)" |
| 1042 |
|
| 1043 |
#. type: SS |
| 1044 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1045 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1046 |
#, no-wrap |
| 1047 |
msgid "Emulating usleep(3)" |
| 1048 |
msgstr "Emulieren von usleep(3)" |
| 1049 |
|
| 1050 |
#. type: Plain text |
| 1051 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1052 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1053 |
msgid "" |
| 1054 |
"Before the advent of B<usleep>(3), some code employed a call to B<select>() " |
| 1055 |
"with all three sets empty, I<nfds> zero, and a non-NULL I<timeout> as a " |
| 1056 |
"fairly portable way to sleep with subsecond precision." |
| 1057 |
msgstr "" |
| 1058 |
"Vor dem Aufkommen von B<usleep>(3) gab es Code, der B<select> wie folgt " |
| 1059 |
"aufrief: alle drei Deskriptor-Gruppen leer, I<azdd> gleich 0 und ein von " |
| 1060 |
"NULL verschiedenes I<wartezeit> als recht portabler Weg, um mit Auflösungen " |
| 1061 |
"unterhalb einer Sekunde zu schlafen." |
| 1062 |
|
| 1063 |
#. type: SS |
| 1064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1065 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1066 |
#, no-wrap |
| 1067 |
msgid "Correspondence between select() and poll() notifications" |
| 1068 |
msgstr "Korrespondenz zwischen den Benachrichtigungen select() und poll()" |
| 1069 |
|
| 1070 |
#. fs/select.c |
| 1071 |
#. type: Plain text |
| 1072 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1073 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1074 |
msgid "" |
| 1075 |
"Within the Linux kernel source, we find the following definitions which show " |
| 1076 |
"the correspondence between the readable, writable, and exceptional condition " |
| 1077 |
"notifications of B<select>() and the event notifications provided by " |
| 1078 |
"B<poll>(2) and B<epoll>(7):" |
| 1079 |
msgstr "" |
| 1080 |
"Innerhalb der Linux-Kernelquellen finden wir die folgenden Definitionen, die " |
| 1081 |
"die Korrespondenz zwischen den lesbaren, schreibbaren und außerordentlichen " |
| 1082 |
"Zustandsbenachrichtigungen von B<select>() und den durch B<poll>(2) (und " |
| 1083 |
"B<epoll>(7)) bereitgestellten Ereignisbenachrichtigungen zeigt:" |
| 1084 |
|
| 1085 |
#. type: Plain text |
| 1086 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1087 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1088 |
#, no-wrap |
| 1089 |
msgid "" |
| 1090 |
"#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |\n" |
| 1091 |
" EPOLLHUP | EPOLLERR)\n" |
| 1092 |
" /* Ready for reading */\n" |
| 1093 |
"#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |\n" |
| 1094 |
" EPOLLERR)\n" |
| 1095 |
" /* Ready for writing */\n" |
| 1096 |
"#define POLLEX_SET (EPOLLPRI)\n" |
| 1097 |
" /* Exceptional condition */\n" |
| 1098 |
msgstr "" |
| 1099 |
"#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |\n" |
| 1100 |
" EPOLLHUP | EPOLLERR)\n" |
| 1101 |
" /* Bereit zum Lesen */\n" |
| 1102 |
"#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |\n" |
| 1103 |
" EPOLLERR)\n" |
| 1104 |
" /* Bereit zum Schreiben */\n" |
| 1105 |
"#define POLLEX_SET (EPOLLPRI)\n" |
| 1106 |
" /* Außergewöhnliche Bedingung */\n" |
| 1107 |
|
| 1108 |
#. type: SS |
| 1109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1111 |
#, no-wrap |
| 1112 |
msgid "Multithreaded applications" |
| 1113 |
msgstr "Multithreaded Anwendungen" |
| 1114 |
|
| 1115 |
#. type: Plain text |
| 1116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1118 |
msgid "" |
| 1119 |
"If a file descriptor being monitored by B<select>() is closed in another " |
| 1120 |
"thread, the result is unspecified. On some UNIX systems, B<select>() " |
| 1121 |
"unblocks and returns, with an indication that the file descriptor is ready " |
| 1122 |
"(a subsequent I/O operation will likely fail with an error, unless another " |
| 1123 |
"process reopens the file descriptor between the time B<select>() returned " |
| 1124 |
"and the I/O operation is performed). On Linux (and some other systems), " |
| 1125 |
"closing the file descriptor in another thread has no effect on B<select>(). " |
| 1126 |
"In summary, any application that relies on a particular behavior in this " |
| 1127 |
"scenario must be considered buggy." |
| 1128 |
msgstr "" |
| 1129 |
"Falls ein Dateideskriptor, der durch B<select>() überwacht wird, in einem " |
| 1130 |
"anderen Thread geschlossen wird, ist das Ergebnis nicht spezifiziert. Auf " |
| 1131 |
"einigen UNIX-Systemen entblockt B<select>() und kehrt mit einer Information " |
| 1132 |
"zurück, dass der Dateideskriptor bereit ist (eine nachfolgende E/A-Aktion " |
| 1133 |
"wird wahrscheinlich mit einem Fehler fehlschlagen, außer ein anderer Prozess " |
| 1134 |
"hat den Dateideskriptor zwischen dem Zeitpunkt, zu dem B<select>() " |
| 1135 |
"zurückkehrte, und dem Zeitpunkt, zu der die E/A-Aktion stattfindet, wieder " |
| 1136 |
"geöffnet). Unter Linux (und einigen anderen Systemen) hat das Schließen des " |
| 1137 |
"Dateideskriptors in einem anderen Thread keinen Effekt auf B<select>(). " |
| 1138 |
"Zusammenfassend sollte jede Anwendung, die sich auf ein bestimmtes Verhalten " |
| 1139 |
"in diesem Szenario abstützt, als fehlerhaft betrachtet werden." |
| 1140 |
|
| 1141 |
#. type: SS |
| 1142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1144 |
#, no-wrap |
| 1145 |
msgid "C library/kernel differences" |
| 1146 |
msgstr "Unterschiede C-Bibliothek/Kernel" |
| 1147 |
|
| 1148 |
#. type: Plain text |
| 1149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1151 |
msgid "" |
| 1152 |
"The Linux kernel allows file descriptor sets of arbitrary size, determining " |
| 1153 |
"the length of the sets to be checked from the value of I<nfds>. However, in " |
| 1154 |
"the glibc implementation, the I<fd_set> type is fixed in size. See also " |
| 1155 |
"BUGS." |
| 1156 |
msgstr "" |
| 1157 |
"Der Linux-Kernel erlaubt Dateideskriptor-Gruppen beliebiger Größe und " |
| 1158 |
"bestimmt die Größe der zu prüfenden Gruppen durch den Wert von I<azdd>. In " |
| 1159 |
"der Glibc-Implementierung ist der Typ I<fd_set> allerdings von fester Größe. " |
| 1160 |
"Siehe auch FEHLER." |
| 1161 |
|
| 1162 |
#. type: Plain text |
| 1163 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1164 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1165 |
msgid "" |
| 1166 |
"The B<pselect>() interface described in this page is implemented by glibc. " |
| 1167 |
"The underlying Linux system call is named B<pselect6>(). This system call " |
| 1168 |
"has somewhat different behavior from the glibc wrapper function." |
| 1169 |
msgstr "" |
| 1170 |
"Die in dieser Seite beschriebene Schnittstelle von B<pselect>() wird durch " |
| 1171 |
"Glibc implementiert. Der darunterliegende Systemaufruf heißt B<pselect6>(). " |
| 1172 |
"Dieser Systemaufruf hat ein etwas anderes Verhalten als die Glibc-Wrapper-" |
| 1173 |
"Funktion." |
| 1174 |
|
| 1175 |
#. type: Plain text |
| 1176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1178 |
msgid "" |
| 1179 |
"The Linux B<pselect6>() system call modifies its I<timeout> argument. " |
| 1180 |
"However, the glibc wrapper function hides this behavior by using a local " |
| 1181 |
"variable for the timeout argument that is passed to the system call. Thus, " |
| 1182 |
"the glibc B<pselect>() function does not modify its I<timeout> argument; " |
| 1183 |
"this is the behavior required by POSIX.1-2001." |
| 1184 |
msgstr "" |
| 1185 |
"Der Systemaufruf B<pselect6>() von Linux verändert das Argument " |
| 1186 |
"I<wartezeit>. Die Glibc-Wrapper-Funktion versteckt dieses Verhalten durch " |
| 1187 |
"Verwendung einer lokalen Variablen für das Argument »wartezeit«, die an den " |
| 1188 |
"Systemaufruf übergeben wird. Daher verändert die Glibc-Funktion B<pselect>() " |
| 1189 |
"nicht ihr Argument I<wartezeit>; dies ist das von POSIX.1-2001 verlangte " |
| 1190 |
"Verhalten." |
| 1191 |
|
| 1192 |
#. type: Plain text |
| 1193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1195 |
msgid "" |
| 1196 |
"The final argument of the B<pselect6>() system call is not a I<sigset_t\\ " |
| 1197 |
"*> pointer, but is instead a structure of the form:" |
| 1198 |
msgstr "" |
| 1199 |
"Das finale Argument des Systemaufrufs B<pselect6>() ist kein I<sigset_t\\ *>-" |
| 1200 |
"Zeiger, sondern eine Struktur der folgenden Form:" |
| 1201 |
|
| 1202 |
#. type: Plain text |
| 1203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1204 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1205 |
#, no-wrap |
| 1206 |
msgid "" |
| 1207 |
"struct {\n" |
| 1208 |
" const kernel_sigset_t *ss; /* Pointer to signal set */\n" |
| 1209 |
" size_t ss_len; /* Size (in bytes) of object\n" |
| 1210 |
" pointed to by \\[aq]ss\\[aq] */\n" |
| 1211 |
"};\n" |
| 1212 |
msgstr "" |
| 1213 |
"struct {\n" |
| 1214 |
" const kernel_sigset_t *ss; /* Zeiger auf Signalgruppe */\n" |
| 1215 |
" size_t ss_len; /* Größe (in Bytes) des Objekts,\n" |
| 1216 |
" auf das durch »ss« gezeigt wird */\n" |
| 1217 |
"};\n" |
| 1218 |
|
| 1219 |
#. type: Plain text |
| 1220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1222 |
msgid "" |
| 1223 |
"This allows the system call to obtain both a pointer to the signal set and " |
| 1224 |
"its size, while allowing for the fact that most architectures support a " |
| 1225 |
"maximum of 6 arguments to a system call. See B<sigprocmask>(2) for a " |
| 1226 |
"discussion of the difference between the kernel and libc notion of the " |
| 1227 |
"signal set." |
| 1228 |
msgstr "" |
| 1229 |
"Dies erlaubt es dem Systemaufruf, sowohl einen Zeiger auf die Signalgruppe " |
| 1230 |
"als auch seine Größe zu ermitteln und dabei zu berücksichtigen, dass die " |
| 1231 |
"meisten Architekturen eine maximale Anzahl von 6 Argumenten für einen " |
| 1232 |
"Systemaufruf erlauben. Siehe B<sigprocmask>(2) für eine Diskussion der " |
| 1233 |
"Unterschiede zwischen der Ansicht des Kernels und der Ansicht der Libc " |
| 1234 |
"bezüglich der Singalmenge." |
| 1235 |
|
| 1236 |
#. type: SS |
| 1237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1239 |
#, no-wrap |
| 1240 |
msgid "Historical glibc details" |
| 1241 |
msgstr "Geschichtliche Glibc-Details" |
| 1242 |
|
| 1243 |
#. type: Plain text |
| 1244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1246 |
msgid "" |
| 1247 |
"glibc 2.0 provided an incorrect version of B<pselect>() that did not take a " |
| 1248 |
"I<sigmask> argument." |
| 1249 |
msgstr "" |
| 1250 |
"Glibc 2.0 stellte eine inkorrekte Version von B<pselect>() bereit, die das " |
| 1251 |
"Argument I<sigmask> nicht akzeptierte." |
| 1252 |
|
| 1253 |
#. type: Plain text |
| 1254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1255 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1256 |
msgid "" |
| 1257 |
"From glibc 2.1 to glibc 2.2.1, one must define B<_GNU_SOURCE> in order to " |
| 1258 |
"obtain the declaration of B<pselect>() from I<E<lt>sys/select.hE<gt>>." |
| 1259 |
msgstr "" |
| 1260 |
"In den Glibc-Versionen von 2.1 bis 2.2.1 musste B<_GNU_SOURCE> definiert " |
| 1261 |
"werden, um die Deklaration von B<pselect>() aus I<E<lt>sys/select.hE<gt>> zu " |
| 1262 |
"erhalten." |
| 1263 |
|
| 1264 |
#. type: SH |
| 1265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1267 |
#, no-wrap |
| 1268 |
msgid "BUGS" |
| 1269 |
msgstr "FEHLER" |
| 1270 |
|
| 1271 |
#. type: Plain text |
| 1272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1274 |
msgid "" |
| 1275 |
"POSIX allows an implementation to define an upper limit, advertised via the " |
| 1276 |
"constant B<FD_SETSIZE>, on the range of file descriptors that can be " |
| 1277 |
"specified in a file descriptor set. The Linux kernel imposes no fixed " |
| 1278 |
"limit, but the glibc implementation makes I<fd_set> a fixed-size type, with " |
| 1279 |
"B<FD_SETSIZE> defined as 1024, and the B<FD_*>() macros operating according " |
| 1280 |
"to that limit. To monitor file descriptors greater than 1023, use " |
| 1281 |
"B<poll>(2) or B<epoll>(7) instead." |
| 1282 |
msgstr "" |
| 1283 |
"POSIX erlaubt einer Implementierung, eine oberer Begrenzung für den Bereich " |
| 1284 |
"von Dateideskriptoren, die in einer Dateideskriptor-Gruppe festgelegt werden " |
| 1285 |
"können, zu definieren. Diese Begrenzung soll mittels der Konstanten " |
| 1286 |
"B<FD_SETSIZE> bekannt gemacht werden. Der Linux-Kernel erzwingt keine feste " |
| 1287 |
"Begrenzung, aber die Glibc-Implementierung macht I<fd_set> zu einem Typ " |
| 1288 |
"fester Größe, wobei B<FD_SETSIZE> als 1024 definiert ist und die Makros " |
| 1289 |
"B<FD_*>() arbeiten entsprechend dieser Begrenzung. Um Dateideskriptoren " |
| 1290 |
"größer als 1024 zu überwachen, verwenden Sie stattdessen B<poll>(2) oder " |
| 1291 |
"B<epoll>(7)." |
| 1292 |
|
| 1293 |
#. type: Plain text |
| 1294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1296 |
msgid "" |
| 1297 |
"The implementation of the I<fd_set> arguments as value-result arguments is a " |
| 1298 |
"design error that is avoided in B<poll>(2) and B<epoll>(7)." |
| 1299 |
msgstr "" |
| 1300 |
"Die Implementierung der Argumente I<fd_set> als Wert-Ergebnis-Argumente ist " |
| 1301 |
"ein Design-Fehler, der in B<poll>(2) und B<epoll>(7) vermieden wurde." |
| 1302 |
|
| 1303 |
#. type: Plain text |
| 1304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1306 |
msgid "" |
| 1307 |
"According to POSIX, B<select>() should check all specified file descriptors " |
| 1308 |
"in the three file descriptor sets, up to the limit I<nfds-1>. However, the " |
| 1309 |
"current implementation ignores any file descriptor in these sets that is " |
| 1310 |
"greater than the maximum file descriptor number that the process currently " |
| 1311 |
"has open. According to POSIX, any such file descriptor that is specified in " |
| 1312 |
"one of the sets should result in the error B<EBADF>." |
| 1313 |
msgstr "" |
| 1314 |
"Laut POSIX sollte B<select>() alle festgelegten Dateideskriptoren in den " |
| 1315 |
"drei Dateideskriptor-Gruppen bis zur Grenze I<azdd-1> prüfen. Allerdings " |
| 1316 |
"ignoriert die aktuelle Implementierung jeden Dateideskriptor in diesen " |
| 1317 |
"Gruppen, der größer als die maximale Dateideskriptorennummer ist, die der " |
| 1318 |
"Prozess derzeit offen hat. Laut POSIX sollte jeder solcher " |
| 1319 |
"Dateideskriptoren, der in einer der drei Gruppen festgelegt ist, zu einem " |
| 1320 |
"Fehler B<EBADF> führen." |
| 1321 |
|
| 1322 |
#. type: Plain text |
| 1323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1325 |
msgid "" |
| 1326 |
"Starting with glibc 2.1, glibc provided an emulation of B<pselect>() that " |
| 1327 |
"was implemented using B<sigprocmask>(2) and B<select>(). This " |
| 1328 |
"implementation remained vulnerable to the very race condition that " |
| 1329 |
"B<pselect>() was designed to prevent. Modern versions of glibc use the " |
| 1330 |
"(race-free) B<pselect>() system call on kernels where it is provided." |
| 1331 |
msgstr "" |
| 1332 |
"Beginnend mit Version 2.1 stellt Glibc eine Emulation von B<pselect>() " |
| 1333 |
"bereit, die mittels B<sigprocmask>(2) und B<select>() implementiert wurde. " |
| 1334 |
"Diese Implementierung blieb für den starken Ressourcenwettlauf verwundbar, " |
| 1335 |
"der durch das Design von B<pselect>() vermieden werden sollte. Moderne " |
| 1336 |
"Versionen der Glibc verwenden den (ressourcenwettlauffreien) B<pselect>()-" |
| 1337 |
"Systemaufruf auf Kerneln, die ihn bereitstellen." |
| 1338 |
|
| 1339 |
#. Stevens discusses a case where accept can block after select |
| 1340 |
#. returns successfully because of an intervening RST from the client. |
| 1341 |
#. Maybe the kernel should have returned EIO in such a situation? |
| 1342 |
#. type: Plain text |
| 1343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1345 |
msgid "" |
| 1346 |
"On Linux, B<select>() may report a socket file descriptor as \"ready for " |
| 1347 |
"reading\", while nevertheless a subsequent read blocks. This could for " |
| 1348 |
"example happen when data has arrived but upon examination has the wrong " |
| 1349 |
"checksum and is discarded. There may be other circumstances in which a file " |
| 1350 |
"descriptor is spuriously reported as ready. Thus it may be safer to use " |
| 1351 |
"B<O_NONBLOCK> on sockets that should not block." |
| 1352 |
msgstr "" |
| 1353 |
"Unter Linux könnte B<select>() einen Socket-Dateideskriptor als »bereit zum " |
| 1354 |
"Lesen« melden, obwohl trotzdem ein folgendes Lesen blockiert. Dies könnte " |
| 1355 |
"beispielsweise passieren, wenn Daten angekommen sind, aber bei genauerer " |
| 1356 |
"Prüfung die falsche Prüfsumme haben und daher verworfen werden. Es mag " |
| 1357 |
"andere Umstände geben, in denen ein Dateideskriptor fälschlicherweise als " |
| 1358 |
"bereit berichtet werden könnte. Daher mag es sicherer sein, B<O_NONBLOCK> " |
| 1359 |
"bei Sockets zu benutzen, die nicht blockieren sollen." |
| 1360 |
|
| 1361 |
#. type: Plain text |
| 1362 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1363 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1364 |
msgid "" |
| 1365 |
"On Linux, B<select>() also modifies I<timeout> if the call is interrupted " |
| 1366 |
"by a signal handler (i.e., the B<EINTR> error return). This is not " |
| 1367 |
"permitted by POSIX.1. The Linux B<pselect>() system call has the same " |
| 1368 |
"behavior, but the glibc wrapper hides this behavior by internally copying " |
| 1369 |
"the I<timeout> to a local variable and passing that variable to the system " |
| 1370 |
"call." |
| 1371 |
msgstr "" |
| 1372 |
"Unter Linux verändert B<select>() auch I<wartezeit> falls der Aufruf durch " |
| 1373 |
"ein Signal-Handler unterbrochen wird (d.h. den Fehler B<EINTR> " |
| 1374 |
"zurückliefert). Dies wird von POSIX.1 nicht erlaubt. Der Linux-Systemaufruf " |
| 1375 |
"B<pselect>() zeigt das gleiche Verhalten, aber der Glibc-Wrapper versteckt " |
| 1376 |
"das Verhalten, indem er intern I<wartezeit> in eine lokale Variable kopiert " |
| 1377 |
"und diese Variable an den Systemaufruf übergibt." |
| 1378 |
|
| 1379 |
#. type: SH |
| 1380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1382 |
#, no-wrap |
| 1383 |
msgid "EXAMPLES" |
| 1384 |
msgstr "BEISPIELE" |
| 1385 |
|
| 1386 |
#. type: Plain text |
| 1387 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1388 |
#: opensuse-tumbleweed |
| 1389 |
#, no-wrap |
| 1390 |
msgid "" |
| 1391 |
"#include E<lt>stdio.hE<gt>\n" |
| 1392 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1393 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1394 |
"#include E<lt>sys/time.hE<gt>\n" |
| 1395 |
"\\&\n" |
| 1396 |
"int\n" |
| 1397 |
"main(void)\n" |
| 1398 |
"{\n" |
| 1399 |
" int retval;\n" |
| 1400 |
" fd_set rfds;\n" |
| 1401 |
" struct timeval tv;\n" |
| 1402 |
"\\&\n" |
| 1403 |
" /* Watch stdin (fd 0) to see when it has input. */\n" |
| 1404 |
"\\&\n" |
| 1405 |
" FD_ZERO(&rfds);\n" |
| 1406 |
" FD_SET(0, &rfds);\n" |
| 1407 |
"\\&\n" |
| 1408 |
" /* Wait up to five seconds. */\n" |
| 1409 |
"\\&\n" |
| 1410 |
" tv.tv_sec = 5;\n" |
| 1411 |
" tv.tv_usec = 0;\n" |
| 1412 |
"\\&\n" |
| 1413 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1414 |
" /* Don\\[aq]t rely on the value of tv now! */\n" |
| 1415 |
"\\&\n" |
| 1416 |
" if (retval == -1)\n" |
| 1417 |
" perror(\"select()\");\n" |
| 1418 |
" else if (retval)\n" |
| 1419 |
" printf(\"Data is available now.\\[rs]n\");\n" |
| 1420 |
" /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1421 |
" else\n" |
| 1422 |
" printf(\"No data within five seconds.\\[rs]n\");\n" |
| 1423 |
"\\&\n" |
| 1424 |
" exit(EXIT_SUCCESS);\n" |
| 1425 |
"}\n" |
| 1426 |
msgstr "" |
| 1427 |
"#include E<lt>stdio.hE<gt>\n" |
| 1428 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1429 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1430 |
"#include E<lt>sys/time.hE<gt>\n" |
| 1431 |
"\\&\n" |
| 1432 |
"int\n" |
| 1433 |
"main(void)\n" |
| 1434 |
"{\n" |
| 1435 |
" int retval;\n" |
| 1436 |
" fd_set rfds;\n" |
| 1437 |
" struct timeval tv;\n" |
| 1438 |
"\\&\n" |
| 1439 |
" /* stdin (fd 0) auf Eingaben überwachen. */\n" |
| 1440 |
"\\&\n" |
| 1441 |
" FD_ZERO(&rfds);\n" |
| 1442 |
" FD_SET(0, &rfds);\n" |
| 1443 |
"\\&\n" |
| 1444 |
" /* Bis zu fünf Sekunden warten. */\n" |
| 1445 |
"\\&\n" |
| 1446 |
" tv.tv_sec = 5;\n" |
| 1447 |
" tv.tv_usec = 0;\n" |
| 1448 |
"\\&\n" |
| 1449 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1450 |
" /* Nicht auf den Wert von tv beziehen! */\n" |
| 1451 |
"\\&\n" |
| 1452 |
" if (retval == -1)\n" |
| 1453 |
" perror(\"select()\");\n" |
| 1454 |
" else if (retval)\n" |
| 1455 |
" printf(\"Daten sind jetzt verfügbar.\\[rs]n\");\n" |
| 1456 |
" /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1457 |
" else\n" |
| 1458 |
" printf(\"Keine Daten innerhalb von fünf Sekunden.\\[rs]n\");\n" |
| 1459 |
"\\&\n" |
| 1460 |
" exit(EXIT_SUCCESS);\n" |
| 1461 |
"}\n" |
| 1462 |
|
| 1463 |
#. SRC END |
| 1464 |
#. type: SH |
| 1465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1467 |
#, no-wrap |
| 1468 |
msgid "SEE ALSO" |
| 1469 |
msgstr "SIEHE AUCH" |
| 1470 |
|
| 1471 |
#. type: Plain text |
| 1472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1474 |
msgid "" |
| 1475 |
"B<accept>(2), B<connect>(2), B<poll>(2), B<read>(2), B<recv>(2), " |
| 1476 |
"B<restart_syscall>(2), B<send>(2), B<sigprocmask>(2), B<write>(2), " |
| 1477 |
"B<timespec>(3), B<epoll>(7), B<time>(7)" |
| 1478 |
msgstr "" |
| 1479 |
"B<accept>(2), B<connect>(2), B<poll>(2), B<read>(2), B<recv>(2), " |
| 1480 |
"B<restart_syscall>(2), B<send>(2), B<sigprocmask>(2), B<write>(2), " |
| 1481 |
"B<timespec>(3), B<epoll>(7), B<time>(7)" |
| 1482 |
|
| 1483 |
#. type: Plain text |
| 1484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1486 |
msgid "For a tutorial with discussion and examples, see B<select_tut>(2)." |
| 1487 |
msgstr "" |
| 1488 |
"Für eine Anleitung mit Diskussionen und Beispielen lesen Sie " |
| 1489 |
"B<select_tut>(2)." |
| 1490 |
|
| 1491 |
#. type: TH |
| 1492 |
#: debian-trixie |
| 1493 |
#, no-wrap |
| 1494 |
msgid "2024-06-15" |
| 1495 |
msgstr "15. Juni 2024" |
| 1496 |
|
| 1497 |
#. type: TH |
| 1498 |
#: debian-trixie |
| 1499 |
#, no-wrap |
| 1500 |
msgid "Linux man-pages 6.9.1" |
| 1501 |
msgstr "Linux man-pages 6.9.1" |
| 1502 |
|
| 1503 |
#. type: Plain text |
| 1504 |
#: debian-trixie |
| 1505 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1506 |
msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)" |
| 1507 |
|
| 1508 |
#. type: Plain text |
| 1509 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1510 |
#, no-wrap |
| 1511 |
msgid "B<typedef> /* ... */ B<fd_set;>\n" |
| 1512 |
msgstr "B<typedef> /* … */ B<fd_set;>\n" |
| 1513 |
|
| 1514 |
#. type: Plain text |
| 1515 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1516 |
#, no-wrap |
| 1517 |
msgid "" |
| 1518 |
"B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 1519 |
"B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 1520 |
"B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 1521 |
"B<void FD_ZERO(fd_set *>I<set>B<);>\n" |
| 1522 |
msgstr "" |
| 1523 |
"B<void FD_CLR(int >I<dd>B<, fd_set *>I<gruppe>B<);>\n" |
| 1524 |
"B<int FD_ISSET(int >I<dd>B<, fd_set *>I<gruppe>B<);>\n" |
| 1525 |
"B<void FD_SET(int >I<dd>B<, fd_set *>I<gruppe>B<);>\n" |
| 1526 |
"B<void FD_ZERO(fd_set *>I<gruppe>B<);>\n" |
| 1527 |
|
| 1528 |
#. .P - it is rumored that: |
| 1529 |
#. On BSD, when a timeout occurs, the file descriptor bits are not changed. |
| 1530 |
#. - it is certainly true that: |
| 1531 |
#. Linux follows SUSv2 and sets the bit masks to zero upon a timeout. |
| 1532 |
#. type: Plain text |
| 1533 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1534 |
msgid "" |
| 1535 |
"On Linux, B<select>() modifies I<timeout> to reflect the amount of time not " |
| 1536 |
"slept; most other implementations do not do this. (POSIX.1 permits either " |
| 1537 |
"behavior.) This causes problems both when Linux code which reads I<timeout> " |
| 1538 |
"is ported to other operating systems, and when code is ported to Linux that " |
| 1539 |
"reuses a I<struct timeval> for multiple B<select>()s in a loop without " |
| 1540 |
"reinitializing it. Consider I<timeout> to be undefined after B<select>() " |
| 1541 |
"returns." |
| 1542 |
msgstr "" |
| 1543 |
"Unter Linux modifiziert B<select>() I<wartezeit>, um die nicht schlafend " |
| 1544 |
"verbrachte Zeit anzuzeigen; die meisten anderen Implementierungen tun das " |
| 1545 |
"nicht. (POSIX.1 lässt beiderlei Verhalten zu.) Dies führt zu Problemen " |
| 1546 |
"sowohl bei der Portierung von Linux-Code, der I<wartezeit> liest, auf andere " |
| 1547 |
"Betriebssysteme als auch bei der Portierung von Code nach Linux, der eine " |
| 1548 |
"I<struct timeval> in einer Schleife für mehrfache Aufrufe von B<select>() " |
| 1549 |
"nutzt, ohne sie erneut zu initialisieren. Gehen Sie davon aus, dass " |
| 1550 |
"I<wartezeit> nach der Rückkehr aus B<select>() nicht definiert ist." |
| 1551 |
|
| 1552 |
#. type: Plain text |
| 1553 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1554 |
msgid "POSIX.1-2008." |
| 1555 |
msgstr "POSIX.1-2008." |
| 1556 |
|
| 1557 |
#. type: Plain text |
| 1558 |
#: debian-trixie |
| 1559 |
#, no-wrap |
| 1560 |
msgid "" |
| 1561 |
"#include E<lt>stdio.hE<gt>\n" |
| 1562 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1563 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1564 |
"\\&\n" |
| 1565 |
"int\n" |
| 1566 |
"main(void)\n" |
| 1567 |
"{\n" |
| 1568 |
" int retval;\n" |
| 1569 |
" fd_set rfds;\n" |
| 1570 |
" struct timeval tv;\n" |
| 1571 |
"\\&\n" |
| 1572 |
" /* Watch stdin (fd 0) to see when it has input. */\n" |
| 1573 |
"\\&\n" |
| 1574 |
" FD_ZERO(&rfds);\n" |
| 1575 |
" FD_SET(0, &rfds);\n" |
| 1576 |
"\\&\n" |
| 1577 |
" /* Wait up to five seconds. */\n" |
| 1578 |
"\\&\n" |
| 1579 |
" tv.tv_sec = 5;\n" |
| 1580 |
" tv.tv_usec = 0;\n" |
| 1581 |
"\\&\n" |
| 1582 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1583 |
" /* Don\\[aq]t rely on the value of tv now! */\n" |
| 1584 |
"\\&\n" |
| 1585 |
" if (retval == -1)\n" |
| 1586 |
" perror(\"select()\");\n" |
| 1587 |
" else if (retval)\n" |
| 1588 |
" printf(\"Data is available now.\\[rs]n\");\n" |
| 1589 |
" /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1590 |
" else\n" |
| 1591 |
" printf(\"No data within five seconds.\\[rs]n\");\n" |
| 1592 |
"\\&\n" |
| 1593 |
" exit(EXIT_SUCCESS);\n" |
| 1594 |
"}\n" |
| 1595 |
msgstr "" |
| 1596 |
"#include E<lt>stdio.hE<gt>\n" |
| 1597 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1598 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1599 |
"\\&\n" |
| 1600 |
"int\n" |
| 1601 |
"main(void)\n" |
| 1602 |
"{\n" |
| 1603 |
" int retval;\n" |
| 1604 |
" fd_set rfds;\n" |
| 1605 |
" struct timeval tv;\n" |
| 1606 |
"\\&\n" |
| 1607 |
" /* stdin (fd 0) auf Eingaben überwachen. */\n" |
| 1608 |
"\\&\n" |
| 1609 |
" FD_ZERO(&rfds);\n" |
| 1610 |
" FD_SET(0, &rfds);\n" |
| 1611 |
"\\&\n" |
| 1612 |
" /* Bis zu fünf Sekunden warten. */\n" |
| 1613 |
"\\&\n" |
| 1614 |
" tv.tv_sec = 5;\n" |
| 1615 |
" tv.tv_usec = 0;\n" |
| 1616 |
"\\&\n" |
| 1617 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1618 |
" /* Nicht auf den Wert von tv beziehen! */\n" |
| 1619 |
"\\&\n" |
| 1620 |
" if (retval == -1)\n" |
| 1621 |
" perror(\"select()\");\n" |
| 1622 |
" else if (retval)\n" |
| 1623 |
" printf(\"Daten sind jetzt verfügbar.\\[rs]n\");\n" |
| 1624 |
" /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1625 |
" else\n" |
| 1626 |
" printf(\"Keine Daten innerhalb von fünf Sekunden.\\[rs]n\");\n" |
| 1627 |
"\\&\n" |
| 1628 |
" exit(EXIT_SUCCESS);\n" |
| 1629 |
"}\n" |
| 1630 |
|
| 1631 |
#. type: TH |
| 1632 |
#: fedora-44 fedora-rawhide |
| 1633 |
#, no-wrap |
| 1634 |
msgid "2024-11-03" |
| 1635 |
msgstr "3. November 2024" |
| 1636 |
|
| 1637 |
#. type: TH |
| 1638 |
#: fedora-44 fedora-rawhide |
| 1639 |
#, no-wrap |
| 1640 |
msgid "Linux man-pages 6.13" |
| 1641 |
msgstr "Linux man-pages 6.13" |
| 1642 |
|
| 1643 |
#. type: Plain text |
| 1644 |
#: fedora-44 fedora-rawhide |
| 1645 |
#, no-wrap |
| 1646 |
msgid "" |
| 1647 |
"#include E<lt>stdio.hE<gt>\n" |
| 1648 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1649 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1650 |
"#include E<lt>sys/time.hE<gt>\n" |
| 1651 |
"\\&\n" |
| 1652 |
"int\n" |
| 1653 |
"main(void)\n" |
| 1654 |
"{\n" |
| 1655 |
" int retval;\n" |
| 1656 |
" fd_set rfds;\n" |
| 1657 |
" struct timeval tv;\n" |
| 1658 |
"\\&\n" |
| 1659 |
" /* Watch stdin (fd 0) to see when it has input. */\n" |
| 1660 |
"\\&\n" |
| 1661 |
" FD_ZERO(&rfds);\n" |
| 1662 |
" FD_SET(0, &rfds);\n" |
| 1663 |
"\\&\n" |
| 1664 |
" /* Wait up to five seconds. */\n" |
| 1665 |
"\\&\n" |
| 1666 |
" tv.tv_sec = 5;\n" |
| 1667 |
" tv.tv_usec = 0;\n" |
| 1668 |
"\\&\n" |
| 1669 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1670 |
" /* Don\\[aq]t rely on the value of tv now! */\n" |
| 1671 |
"\\&\n" |
| 1672 |
" if (retval == -1)\n" |
| 1673 |
" perror(\"select()\");\n" |
| 1674 |
" else if (retval)\n" |
| 1675 |
" printf(\"Data is available now.\\[rs]n\");\n" |
| 1676 |
" /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1677 |
" else\n" |
| 1678 |
" printf(\"No data within five seconds.\\[rs]n\");\n" |
| 1679 |
"\\&\n" |
| 1680 |
" exit(EXIT_SUCCESS);\n" |
| 1681 |
"}\n" |
| 1682 |
msgstr "" |
| 1683 |
"#include E<lt>stdio.hE<gt>\n" |
| 1684 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1685 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1686 |
"#include E<lt>sys/time.hE<gt>\n" |
| 1687 |
"\\&\n" |
| 1688 |
"int\n" |
| 1689 |
"main(void)\n" |
| 1690 |
"{\n" |
| 1691 |
" int retval;\n" |
| 1692 |
" fd_set rfds;\n" |
| 1693 |
" struct timeval tv;\n" |
| 1694 |
"\\&\n" |
| 1695 |
" /* stdin (fd 0) auf Eingaben überwachen. */\n" |
| 1696 |
"\\&\n" |
| 1697 |
" FD_ZERO(&rfds);\n" |
| 1698 |
" FD_SET(0, &rfds);\n" |
| 1699 |
"\\&\n" |
| 1700 |
" /* Bis zu fünf Sekunden warten. */\n" |
| 1701 |
"\\&\n" |
| 1702 |
" tv.tv_sec = 5;\n" |
| 1703 |
" tv.tv_usec = 0;\n" |
| 1704 |
"\\&\n" |
| 1705 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1706 |
" /* Nicht auf den Wert von tv beziehen! */\n" |
| 1707 |
"\\&\n" |
| 1708 |
" if (retval == -1)\n" |
| 1709 |
" perror(\"select()\");\n" |
| 1710 |
" else if (retval)\n" |
| 1711 |
" printf(\"Daten sind jetzt verfügbar.\\[rs]n\");\n" |
| 1712 |
" /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1713 |
" else\n" |
| 1714 |
" printf(\"Keine Daten innerhalb von fünf Sekunden.\\[rs]n\");\n" |
| 1715 |
"\\&\n" |
| 1716 |
" exit(EXIT_SUCCESS);\n" |
| 1717 |
"}\n" |
| 1718 |
|
| 1719 |
#. type: TH |
| 1720 |
#: mageia-cauldron |
| 1721 |
#, no-wrap |
| 1722 |
msgid "Linux man-pages 6.17" |
| 1723 |
msgstr "Linux man-pages 6.17" |
| 1724 |
|
| 1725 |
#. type: TH |
| 1726 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1727 |
#, no-wrap |
| 1728 |
msgid "Linux man-pages (unreleased)" |
| 1729 |
msgstr "Linux man-pages (unveröffentlicht)" |