| 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 |
# Patrick Rother <[email protected]>, 1997. |
| 5 |
# Martin Eberhard Schauer <[email protected]>, 2012. |
| 6 |
# Mario Blättermann <[email protected]>, 2014, 2020, 2021, 2022, 2023. |
| 7 |
# Helge Kreutzmann <[email protected]>, 2012, 2017, 2020, 2021, 2025. |
| 8 |
msgid "" |
| 9 |
msgstr "" |
| 10 |
"Project-Id-Version: manpages-l10n 4.30.2\n" |
| 11 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 12 |
"PO-Revision-Date: 2026-06-05 11:11+0200\n" |
| 13 |
"Last-Translator: Mario Blättermann <[email protected]>\n" |
| 14 |
"Language-Team: German <[email protected]>\n" |
| 15 |
"Language: de\n" |
| 16 |
"MIME-Version: 1.0\n" |
| 17 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 18 |
"Content-Transfer-Encoding: 8bit\n" |
| 19 |
"Plural-Forms: nplurals=2; plural=n != 1;\n" |
| 20 |
"X-Generator: Lokalize 23.04.3\n" |
| 21 |
|
| 22 |
#. type: TH |
| 23 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 24 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 25 |
#, no-wrap |
| 26 |
msgid "getopt" |
| 27 |
msgstr "getopt" |
| 28 |
|
| 29 |
#. type: TH |
| 30 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 31 |
#: opensuse-tumbleweed |
| 32 |
#, no-wrap |
| 33 |
msgid "2026-02-08" |
| 34 |
msgstr "8. Februar 2026" |
| 35 |
|
| 36 |
#. type: TH |
| 37 |
#: archlinux debian-unstable |
| 38 |
#, no-wrap |
| 39 |
msgid "Linux man-pages 6.18" |
| 40 |
msgstr "Linux man-pages 6.18" |
| 41 |
|
| 42 |
#. type: SH |
| 43 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 44 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 45 |
#, no-wrap |
| 46 |
msgid "NAME" |
| 47 |
msgstr "BEZEICHNUNG" |
| 48 |
|
| 49 |
#. type: Plain text |
| 50 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 51 |
#: opensuse-tumbleweed |
| 52 |
msgid "getopt, optarg, optind, opterr, optopt - Parse command-line options" |
| 53 |
msgstr "" |
| 54 |
"getopt, optarg, optind, opterr, optopt - Befehlszeilenoptionen auswerten" |
| 55 |
|
| 56 |
#. type: SH |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
#, no-wrap |
| 60 |
msgid "LIBRARY" |
| 61 |
msgstr "BIBLIOTHEK" |
| 62 |
|
| 63 |
#. type: Plain text |
| 64 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 65 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 66 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 67 |
msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)" |
| 68 |
|
| 69 |
#. type: SH |
| 70 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 71 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
#, no-wrap |
| 73 |
msgid "SYNOPSIS" |
| 74 |
msgstr "ÜBERSICHT" |
| 75 |
|
| 76 |
#. type: Plain text |
| 77 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 78 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 79 |
#, no-wrap |
| 80 |
msgid "B<#include E<lt>unistd.hE<gt>>\n" |
| 81 |
msgstr "B<#include E<lt>unistd.hE<gt>>\n" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 85 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
#, no-wrap |
| 87 |
msgid "" |
| 88 |
"B<int getopt(int >I<argc>B<, char *>I<argv>B<[],>\n" |
| 89 |
"B< const char *>I<optstring>B<);>\n" |
| 90 |
msgstr "" |
| 91 |
"B<int getopt(int >I<argz>B<, char *>I<argv>B<[],>\n" |
| 92 |
"B< const char *>I<optzeichenk>B<);>\n" |
| 93 |
|
| 94 |
#. type: Plain text |
| 95 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 96 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 97 |
#, no-wrap |
| 98 |
msgid "" |
| 99 |
"B<extern char *>I<optarg>B<;>\n" |
| 100 |
"B<extern int >I<optind>B<, >I<opterr>B<, >I<optopt>B<;>\n" |
| 101 |
msgstr "" |
| 102 |
"B<extern char *>I<optarg>B<;>\n" |
| 103 |
"B<extern int >I<optind>B<, >I<optfeh>B<, >I<optopt>B<;>\n" |
| 104 |
|
| 105 |
#. type: Plain text |
| 106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 107 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 108 |
msgid "" |
| 109 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 110 |
msgstr "" |
| 111 |
"Mit Glibc erforderliche Feature-Test-Makros (siehe " |
| 112 |
"B<feature_test_macros>(7)):" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
msgid "B<getopt>():" |
| 118 |
msgstr "B<getopt>():" |
| 119 |
|
| 120 |
#. type: Plain text |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
#, no-wrap |
| 124 |
msgid " _POSIX_C_SOURCE E<gt>= 2 || _XOPEN_SOURCE\n" |
| 125 |
msgstr " _POSIX_C_SOURCE E<gt>= 2 || _XOPEN_SOURCE\n" |
| 126 |
|
| 127 |
#. type: SH |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
#, no-wrap |
| 131 |
msgid "DESCRIPTION" |
| 132 |
msgstr "BESCHREIBUNG" |
| 133 |
|
| 134 |
#. type: Plain text |
| 135 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 136 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 137 |
msgid "" |
| 138 |
"The B<getopt>() function parses the command-line arguments. Its arguments " |
| 139 |
"I<argc> and I<argv> are the argument count and array as passed to the " |
| 140 |
"I<main>() function on program invocation. An element of I<argv> that " |
| 141 |
"starts with \\[aq]-\\[aq] (and is not exactly \"-\" or \"--\") is an option " |
| 142 |
"element. The characters of this element (aside from the initial \\[aq]-\\" |
| 143 |
"[aq]) are option characters. If B<getopt>() is called repeatedly, it " |
| 144 |
"returns successively each of the option characters from each of the option " |
| 145 |
"elements." |
| 146 |
msgstr "" |
| 147 |
"Die Funktion B<getopt>() wertet die Befehlszeilenoptionen aus. Ihre " |
| 148 |
"Argumente I<argz> und I<argv> sind die Argumentanzahl und das Argumentenfeld " |
| 149 |
"wie zur Funktion B<main>() bei Programmaufruf übergeben. Ein Element von " |
| 150 |
"I<argv>, das mit »-« beginnt (und nicht exakt »-« oder »--«) ist, ist ein " |
| 151 |
"Optionselement. Die Zeichen dieses Elementes (ohne das einleitende »-«) sind " |
| 152 |
"Optionszeichen. Falls B<getopt>() wiederholt aufgerufen wird, gibt sie " |
| 153 |
"aufeinanderfolgend jedes der Optionszeichen von jedem Optionselement zurück." |
| 154 |
|
| 155 |
# Das Argumentfeld ist wörtlich eher ein Argumentvektor? |
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "" |
| 160 |
"The variable I<optind> is the index of the next element to be processed in " |
| 161 |
"I<argv>. The system initializes this value to 1. The caller can reset it " |
| 162 |
"to 1 to restart scanning of the same I<argv>, or when scanning a new " |
| 163 |
"argument vector." |
| 164 |
msgstr "" |
| 165 |
"Die Variable I<optind> ist der Index des nächsten zu verarbeitenden Elements " |
| 166 |
"in I<argv>. Das System initialisiert diesen Wert mit 1. Der Aufrufende kann " |
| 167 |
"ihn auf 1 zurücksetzen, um das Durchsuchen des gleichen I<argv> erneut zu " |
| 168 |
"beginnen oder beim Durchsuchen eines neuen Argumentenfeldes." |
| 169 |
|
| 170 |
#. type: Plain text |
| 171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 172 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 173 |
msgid "" |
| 174 |
"If B<getopt>() finds another option character, it returns that character, " |
| 175 |
"updating the external variable I<optind> and a static variable I<nextchar> " |
| 176 |
"so that the next call to B<getopt>() can resume the scan with the following " |
| 177 |
"option character or I<argv>-element." |
| 178 |
msgstr "" |
| 179 |
"Falls B<getopt>() ein weiteres Optionszeichen findet, gibt sie dieses " |
| 180 |
"Zeichen zurück, wobei die externe Variable I<optind> und eine statische " |
| 181 |
"Variable I<nextchar> auf neuen Stand gesetzt werden, so dass der nächste " |
| 182 |
"Aufruf von B<getopt>() die Suche mit dem folgenden Optionszeichen oder " |
| 183 |
"I<argv>-Element fortsetzen kann." |
| 184 |
|
| 185 |
#. type: Plain text |
| 186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 188 |
msgid "" |
| 189 |
"If there are no more option characters, B<getopt>() returns -1. Then " |
| 190 |
"I<optind> is the index in I<argv> of the first I<argv>-element that is not " |
| 191 |
"an option." |
| 192 |
msgstr "" |
| 193 |
"Falls es keine weiteren Optionszeichen gibt, gibt B<getopt>() -1 zurück. " |
| 194 |
"Dann ist I<optind> der Index des ersten I<argv>-Elementes in I<argv>, das " |
| 195 |
"keine Option ist." |
| 196 |
|
| 197 |
# s/die die/welche die/? |
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
msgid "" |
| 202 |
"I<optstring> is a string containing the legitimate option characters. A " |
| 203 |
"legitimate option character is any visible one byte B<ascii>(7) character " |
| 204 |
"(for which B<isgraph>(3) would return nonzero) that is not \\[aq]-\\[aq], \\" |
| 205 |
"[aq]:\\[aq], or \\[aq];\\[aq]. If such a character is followed by a colon, " |
| 206 |
"the option requires an argument, so B<getopt>() places a pointer to the " |
| 207 |
"following text in the same I<argv>-element, or the text of the following " |
| 208 |
"I<argv>-element, in I<optarg>. Two colons mean an option takes an optional " |
| 209 |
"arg; if there is text in the current I<argv>-element (i.e., in the same word " |
| 210 |
"as the option name itself, for example, \"-oarg\"), then it is returned in " |
| 211 |
"I<optarg>, otherwise I<optarg> is set to zero. This is a GNU extension. If " |
| 212 |
"I<optstring> contains B<W> followed by a semicolon, then B<-W foo> is " |
| 213 |
"treated as the long option B<--foo>. (The B<-W> option is reserved by " |
| 214 |
"POSIX.2 for implementation extensions.) This behavior is a GNU extension, " |
| 215 |
"not available with libraries before glibc 2." |
| 216 |
msgstr "" |
| 217 |
"I<optzeichenk> ist eine Zeichenkette, die die gültigen Optionszeichen " |
| 218 |
"enthält. Ein berechtigtes Optionszeichen ist jedes sichtbar B<ascii>(7)-" |
| 219 |
"Zeichen aus einem Byte (für das B<isgraph>(3) einen von Null verschiedenen " |
| 220 |
"Wert liefern würde), das weder »-«, »:« noch »;« ist. Falls solch ein " |
| 221 |
"Zeichen von einem Doppelpunkt gefolgt wird, benötigt diese Option ein " |
| 222 |
"Argument, weswegen B<getopt>() einen Zeiger auf den folgenden Text in dem " |
| 223 |
"selben I<argv>-Element oder den Text des folgenden I<argv>-Elementes in " |
| 224 |
"I<optarg> platziert. Zwei Doppelpunkte bedeuten, dass diese Option ein " |
| 225 |
"optionales Argument erwartet; falls es Text im aktuellen I<argv>-Element " |
| 226 |
"gibt, wird er in I<optarg> zurückgegeben, anderenfalls wird I<optarg> auf " |
| 227 |
"numerisch Null gesetzt. Dieses ist eine GNU-Erweiterung. Falls " |
| 228 |
"I<optzeichenk> B<W> gefolgt von einem Semikolon enthält, wird B<-W foo> als " |
| 229 |
"lange Option B<--foo> interpretiert. (Die Option B<-W> ist von POSIX.2 für " |
| 230 |
"die Implementierung von Erweiterungen reserviert.) Dieses Verhalten ist eine " |
| 231 |
"GNU-Erweiterung, die nicht in Bibliotheken vor GNU Glibc 2 verfügbar war." |
| 232 |
|
| 233 |
#. type: Plain text |
| 234 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 235 |
#: opensuse-tumbleweed |
| 236 |
msgid "" |
| 237 |
"By default, B<getopt>() permutes the contents of I<argv> as it scans, so " |
| 238 |
"that eventually all the nonoptions are at the end. Two other scanning modes " |
| 239 |
"are also implemented. If the first character of I<optstring> is \\[aq]+\\" |
| 240 |
"[aq] or the environment variable B<\\%POSIXLY_CORRECT> is set, then option " |
| 241 |
"processing stops as soon as a nonoption argument is encountered. If \\[aq]+" |
| 242 |
"\\[aq] is not the first character of I<optstring>, it is treated as a normal " |
| 243 |
"option. If B<\\%POSIXLY_CORRECT> behavior is required in this case " |
| 244 |
"I<optstring> will contain two \\[aq]+\\[aq] symbols. If the first character " |
| 245 |
"of I<optstring> is \\[aq]-\\[aq], then each nonoption I<argv>-element is " |
| 246 |
"handled as if it were the argument of an option with character code 1. " |
| 247 |
"(This is used by programs that were written to expect options and other " |
| 248 |
"I<argv>-elements in any order and that care about the ordering of the two.) " |
| 249 |
"The special argument \"--\" forces an end of option-scanning regardless of " |
| 250 |
"the scanning mode." |
| 251 |
msgstr "" |
| 252 |
"Standardmäßig vertauscht B<getopt>() den Inhalt von I<argv> beim " |
| 253 |
"Durchsuchen, so dass schließlich alle Nichtoptionen am Ende stehen. Zwei " |
| 254 |
"weitere Suchmodi sind ebenfalls implementiert. Falls das erste Zeichen von " |
| 255 |
"I<optzeichenk> ein »+« ist oder die Umgebungsvariable B<\\%POSIXLY_CORRECT> " |
| 256 |
"gesetzt ist, dann stoppt die Optionsbearbeitung sobald ein Argument " |
| 257 |
"auftritt, das keine Option ist. Falls »+« nicht das erste Zeichen von " |
| 258 |
"I<optzeichenk> ist, wird es als normale Option aufgefasst. Sollte in diesem " |
| 259 |
"Fall ein B<\\%POSIXLY_CORRECT>-Verhalten erforderlich sein, dann wird " |
| 260 |
"I<optzeichenk> zwei »+«-Symbole enthalten. Falls das erste Zeichen von " |
| 261 |
"I<optzeichenk> ein »-« ist, dann wird jedes Argument von I<argv>, das keine " |
| 262 |
"Option ist, so behandelt, als ob es Argument einer Option mit dem " |
| 263 |
"Zeichencode 1 wäre. (Dies wird von Programmen benutzt, die Optionen und " |
| 264 |
"andere I<argv>-Elemente in beliebiger Reihenfolge erwarten, und die Wert auf " |
| 265 |
"die Reihenfolge der beiden legen.) Das besondere Argument »--« erzwingt die " |
| 266 |
"Beendigung der Suche nach Optionen unabhängig von der Suchmethode." |
| 267 |
|
| 268 |
#. type: Plain text |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
msgid "" |
| 272 |
"While processing the option list, B<getopt>() can detect two kinds of " |
| 273 |
"errors: (1) an option character that was not specified in I<optstring> and " |
| 274 |
"(2) a missing option argument (i.e., an option at the end of the command " |
| 275 |
"line without an expected argument). Such errors are handled and reported as " |
| 276 |
"follows:" |
| 277 |
msgstr "" |
| 278 |
"Beim Verarbeiten der Optionsliste kann B<getopt>() zwei Arten von Fehler " |
| 279 |
"erkennen: (1) ein Optionszeichen, das nicht in I<optzeichenk> angegeben " |
| 280 |
"wurde und (2) ein fehlendes Optionsargument (d.h. eine Option am Ende der " |
| 281 |
"Befehlszeile ohne ein erwartetes Argument). Solche Fehler werden wie folgt " |
| 282 |
"verarbeitet und berichtet:" |
| 283 |
|
| 284 |
#. type: IP |
| 285 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 286 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 287 |
#, no-wrap |
| 288 |
msgid "\\[bu]" |
| 289 |
msgstr "\\[bu]" |
| 290 |
|
| 291 |
#. type: Plain text |
| 292 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 293 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 294 |
msgid "" |
| 295 |
"By default, B<getopt>() prints an error message on standard error, places " |
| 296 |
"the erroneous option character in I<optopt>, and returns \\[aq]?\\[aq] as " |
| 297 |
"the function result." |
| 298 |
msgstr "" |
| 299 |
"Standardmäßig gibt B<getopt>() eine Fehlermeldung auf der " |
| 300 |
"Standardfehlerausgabe aus, stellt das fehlerhafte Optionszeichen in " |
| 301 |
"I<optopt> und liefert »?« as Funktionsergebnis zurück." |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
msgid "" |
| 307 |
"If the caller has set the global variable I<opterr> to zero, then " |
| 308 |
"B<getopt>() does not print an error message. The caller can determine that " |
| 309 |
"there was an error by testing whether the function return value is \\[aq]?\\" |
| 310 |
"[aq]. (By default, I<opterr> has a nonzero value.)" |
| 311 |
msgstr "" |
| 312 |
"Falls der Aufrufende die globale Variable I<optfeh> auf Null gesetzt hat, " |
| 313 |
"dann gibt B<getopt>() keine Fehlermeldung aus. Der Aufrufende kann durch " |
| 314 |
"Testen, ob der Funktionsrückgabewert »?« ist, ermitteln, ob es einen Fehler " |
| 315 |
"gab. (Standardmäßig hat I<optfeh> einen von Null verschiedenen Wert)." |
| 316 |
|
| 317 |
#. type: Plain text |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
msgid "" |
| 321 |
"If the first character (following any optional \\[aq]+\\[aq] or \\[aq]-\\" |
| 322 |
"[aq] described above) of I<optstring> is a colon (\\[aq]:\\[aq]), then " |
| 323 |
"B<getopt>() likewise does not print an error message. In addition, it " |
| 324 |
"returns \\[aq]:\\[aq] instead of \\[aq]?\\[aq] to indicate a missing option " |
| 325 |
"argument. This allows the caller to distinguish the two different types of " |
| 326 |
"errors." |
| 327 |
msgstr "" |
| 328 |
"Falls das erste Zeichen im I<optzeichenk> (nach einem optionalen »+« oder " |
| 329 |
"»-« wie oben beschrieben) ein Doppelpunkt (»:«) ist, dann gibt B<getopt>() " |
| 330 |
"analog auch keine Fehlermeldung aus. Zusätzlich wird es »:« statt »?« " |
| 331 |
"zurückliefern, um ein fehlendes Argument anzuzeigen. Dies ermöglicht es dem " |
| 332 |
"Aufrufenden, die zwei Arten von Fehlern zu unterscheiden." |
| 333 |
|
| 334 |
#. type: SH |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
#, no-wrap |
| 338 |
msgid "RETURN VALUE" |
| 339 |
msgstr "RÜCKGABEWERT" |
| 340 |
|
| 341 |
#. type: Plain text |
| 342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 344 |
msgid "" |
| 345 |
"If an option was successfully found, then B<getopt>() returns the option " |
| 346 |
"character. If all command-line options have been parsed, then B<getopt>() " |
| 347 |
"returns -1. If B<getopt>() encounters an option character that was not in " |
| 348 |
"I<optstring>, then \\[aq]?\\[aq] is returned. If B<getopt>() encounters an " |
| 349 |
"option with a missing argument, then the return value depends on the first " |
| 350 |
"character in I<optstring>: if it is \\[aq]:\\[aq], then \\[aq]:\\[aq] is " |
| 351 |
"returned; otherwise \\[aq]?\\[aq] is returned." |
| 352 |
msgstr "" |
| 353 |
"Falls eine Option erfolgreich gefunden wurde, gibt B<getopt>() das " |
| 354 |
"Optionszeichen zurück. Falls alle Befehlszeilenargumente erfolgreich " |
| 355 |
"ausgewertet wurden, gibt B<getopt>() -1 zurück. Falls B<getopt>() ein " |
| 356 |
"Optionszeichen antrifft, das nicht in I<optzeichenk> enthalten war, wird »?« " |
| 357 |
"zurückgegeben. Falls B<getopt>() auf eine Option trifft, der ein Argument " |
| 358 |
"fehlt, hängt der Rückgabewert vom ersten Zeichen in I<optzeichenk> ab: Falls " |
| 359 |
"es ein »:« ist, wird »:« zurückgegeben; anderenfalls »?«." |
| 360 |
|
| 361 |
#. type: SH |
| 362 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 363 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 364 |
#, no-wrap |
| 365 |
msgid "ENVIRONMENT" |
| 366 |
msgstr "UMGEBUNGSVARIABLEN" |
| 367 |
|
| 368 |
#. type: TP |
| 369 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 370 |
#: opensuse-tumbleweed |
| 371 |
#, no-wrap |
| 372 |
msgid "B<\\%POSIXLY_CORRECT>" |
| 373 |
msgstr "B<\\%POSIXLY_CORRECT>" |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
msgid "" |
| 379 |
"If this is set, then option processing stops as soon as a nonoption argument " |
| 380 |
"is encountered." |
| 381 |
msgstr "" |
| 382 |
"Falls sie gesetzt ist, dann stoppt die Optionsbearbeitung, sobald ein " |
| 383 |
"Argument auftritt, das keine Option ist." |
| 384 |
|
| 385 |
#. type: SH |
| 386 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 387 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 388 |
#, no-wrap |
| 389 |
msgid "ATTRIBUTES" |
| 390 |
msgstr "ATTRIBUTE" |
| 391 |
|
| 392 |
#. type: Plain text |
| 393 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 394 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 395 |
msgid "" |
| 396 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 397 |
msgstr "" |
| 398 |
"Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt " |
| 399 |
"verwandten Ausdrücke." |
| 400 |
|
| 401 |
#. type: tbl table |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
#, no-wrap |
| 405 |
msgid "Interface" |
| 406 |
msgstr "Schnittstelle" |
| 407 |
|
| 408 |
#. type: tbl table |
| 409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 411 |
#, no-wrap |
| 412 |
msgid "Attribute" |
| 413 |
msgstr "Attribut" |
| 414 |
|
| 415 |
#. type: tbl table |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
#, no-wrap |
| 419 |
msgid "Value" |
| 420 |
msgstr "Wert" |
| 421 |
|
| 422 |
#. type: tbl table |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
#, no-wrap |
| 426 |
msgid ".na\n" |
| 427 |
msgstr ".na\n" |
| 428 |
|
| 429 |
#. type: tbl table |
| 430 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 431 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 432 |
#, no-wrap |
| 433 |
msgid ".nh\n" |
| 434 |
msgstr ".nh\n" |
| 435 |
|
| 436 |
#. type: TP |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
#, no-wrap |
| 440 |
msgid "B<getopt>()" |
| 441 |
msgstr "B<getopt>()" |
| 442 |
|
| 443 |
#. type: tbl table |
| 444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 445 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 446 |
#, no-wrap |
| 447 |
msgid "Thread safety" |
| 448 |
msgstr "Multithread-Fähigkeit" |
| 449 |
|
| 450 |
#. type: tbl table |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
#, no-wrap |
| 454 |
msgid "MT-Unsafe race:getopt env" |
| 455 |
msgstr "MT-Unsicher race:getopt env" |
| 456 |
|
| 457 |
#. type: SH |
| 458 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 459 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 460 |
#, no-wrap |
| 461 |
msgid "VERSIONS" |
| 462 |
msgstr "VERSIONEN" |
| 463 |
|
| 464 |
#. type: Plain text |
| 465 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 466 |
#: opensuse-tumbleweed |
| 467 |
msgid "" |
| 468 |
"POSIX specifies that the I<argv> array argument should be I<const>, but " |
| 469 |
"these functions permute its elements unless the environment variable B<\\" |
| 470 |
"%POSIXLY_CORRECT> is set. I<const> is used in the actual prototype to be " |
| 471 |
"compatible with other systems; however, this page doesn't show the " |
| 472 |
"qualifier, to avoid confusing readers." |
| 473 |
msgstr "" |
| 474 |
"POSIX spezifiziert, dass das Array-Argument I<argv> vom Typ I<const> sein " |
| 475 |
"soll, aber diese Funktionen permutieren ihre Elemente, außer die " |
| 476 |
"Umgebungsvariable B<\\%POSIXLY_CORRECT> ist gesetzt. I<const> wird im " |
| 477 |
"eigentlichen Prototyp zur Kompatibilität mit anderen Systemen gesetzt, " |
| 478 |
"allerdings zeigt diese Seite den Kennzeichner nicht, um den Leser nicht " |
| 479 |
"durcheinanderzubringen." |
| 480 |
|
| 481 |
#. type: SH |
| 482 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 483 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 484 |
#, no-wrap |
| 485 |
msgid "STANDARDS" |
| 486 |
msgstr "STANDARDS" |
| 487 |
|
| 488 |
#. type: Plain text |
| 489 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 490 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 491 |
msgid "POSIX.1-2008." |
| 492 |
msgstr "POSIX.1-2008." |
| 493 |
|
| 494 |
#. type: Plain text |
| 495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 496 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 497 |
msgid "" |
| 498 |
"The use of \\[aq]+\\[aq] and \\[aq]-\\[aq] in I<optstring> is a GNU " |
| 499 |
"extension." |
| 500 |
msgstr "" |
| 501 |
"Die Verwendung von »+« und »-« in I<optzeichenk> ist eine GNU-Erweiterung." |
| 502 |
|
| 503 |
#. type: SH |
| 504 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 505 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 506 |
#, no-wrap |
| 507 |
msgid "HISTORY" |
| 508 |
msgstr "GESCHICHTE" |
| 509 |
|
| 510 |
#. type: Plain text |
| 511 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 512 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 513 |
msgid "POSIX.1-2001, and POSIX.2." |
| 514 |
msgstr "POSIX.1-2001 und POSIX.2." |
| 515 |
|
| 516 |
#. type: Plain text |
| 517 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 518 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 519 |
msgid "" |
| 520 |
"On some older implementations, B<getopt>() was declared in " |
| 521 |
"I<E<lt>stdio.hE<gt>>. SUSv1 permitted the declaration to appear in either " |
| 522 |
"I<E<lt>unistd.hE<gt>> or I<E<lt>stdio.hE<gt>>. POSIX.1-1996 marked the use " |
| 523 |
"of I<E<lt>stdio.hE<gt>> for this purpose as LEGACY. POSIX.1-2001 does not " |
| 524 |
"require the declaration to appear in I<E<lt>stdio.hE<gt>>." |
| 525 |
msgstr "" |
| 526 |
"In einigen älteren Implementierungen wurde B<getopt>() in " |
| 527 |
"I<E<lt>stdio.hE<gt>> deklariert. SUSv1 gestattete die Deklaration entweder " |
| 528 |
"in I<E<lt>unistd.hE<gt>> oder I<E<lt>stdio.hE<gt>>. POSIX.1-1995 " |
| 529 |
"kennzeichnete die Verwendung von I<E<lt>stdio.hE<gt>> zu diesem Zweck als " |
| 530 |
"LEGACY. POSIX.1-2001 verlangt nicht, dass diese Deklaration in " |
| 531 |
"I<E<lt>stdio.hE<gt>> enthalten ist." |
| 532 |
|
| 533 |
#. type: Plain text |
| 534 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 535 |
#: opensuse-tumbleweed |
| 536 |
msgid "" |
| 537 |
"Very old versions of glibc were affected by a E<.UR https:\\://" |
| 538 |
"\\:sourceware.org/\\:git/\\:?" |
| 539 |
"p=glibc.git;a=commitdiff;h=bf079e19f50d64aa5e05> B<\\" |
| 540 |
"%_>I<PID>B<_GNU_nonoption_argv_flags_> environment variable E<.UE .>" |
| 541 |
msgstr "" |
| 542 |
"Sehr alte Versionen von Glibc wurden von der E<.UR https:\\://" |
| 543 |
"\\:sourceware.org/\\:git/\\:?" |
| 544 |
"p=glibc.git;a=commitdiff;h=bf079e19f50d64aa5e05> Umgebungsvariablen B<\\" |
| 545 |
"%_>I<PID>B<_GNU_nonoption_argv_flags_> E<.UE> beeinflusst." |
| 546 |
|
| 547 |
#. type: SH |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
#, no-wrap |
| 551 |
msgid "NOTES" |
| 552 |
msgstr "ANMERKUNGEN" |
| 553 |
|
| 554 |
#. type: Plain text |
| 555 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 556 |
#: opensuse-tumbleweed |
| 557 |
msgid "" |
| 558 |
"A program that scans multiple argument vectors, or rescans the same vector " |
| 559 |
"more than once, and wants to make use of GNU extensions such as \\[aq]+\\" |
| 560 |
"[aq] and \\[aq]-\\[aq] at the start of I<optstring>, or changes the value of " |
| 561 |
"B<\\%POSIXLY_CORRECT> between scans, must reinitialize B<getopt>() by " |
| 562 |
"resetting I<optind> to 0, rather than the traditional value of 1. " |
| 563 |
"(Resetting to 0 forces the invocation of an internal initialization routine " |
| 564 |
"that rechecks B<\\%POSIXLY_CORRECT> and checks for GNU extensions in " |
| 565 |
"I<optstring>.)" |
| 566 |
msgstr "" |
| 567 |
"Ein Programm, das mehrere Argumentvektoren oder denselben Argumentvektor " |
| 568 |
"mehrfach auswertet und GNU-Erweiterungen wie beispielsweise »+« und »-« am " |
| 569 |
"Anfang von I<optzeichenk> nutzen möchte oder zwischen den Auswertungen den " |
| 570 |
"Wert von B<\\%POSIXLY_CORRECT> ändert, muss B<getopt>() neu initialisieren, " |
| 571 |
"indem es I<optind> auf 0 statt des traditionellen Wertes 1 setzt. (Das " |
| 572 |
"Rücksetzen auf 0 erzwingt den Aufruf einer internen Initialisierungsroutine, " |
| 573 |
"die erneut B<\\%POSIXLY_CORRECT> prüft und in I<optzeichenk> nach GNU-" |
| 574 |
"Erweiterungen sucht.)" |
| 575 |
|
| 576 |
#. type: Plain text |
| 577 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 578 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 579 |
msgid "" |
| 580 |
"Command-line arguments are parsed in strict order meaning that an option " |
| 581 |
"requiring an argument will consume the next argument, regardless of whether " |
| 582 |
"that argument is the correctly specified option argument or simply the next " |
| 583 |
"option (in the scenario the user mis-specifies the command line). For " |
| 584 |
"example, if I<optstring> is specified as \"1n:\" and the user specifies the " |
| 585 |
"command line arguments incorrectly as I<prog\\ -n\\ -1>, the I<-n> option " |
| 586 |
"will be given the B<optarg> value \"-1\", and the I<-1> option will be " |
| 587 |
"considered to have not been specified." |
| 588 |
msgstr "" |
| 589 |
"Befehlszeilenargumente werden streng in der Reihenfolge ausgewertet. Das " |
| 590 |
"bedeutet, dass eine Option, die ein Argument erwartet, das nächste Argument " |
| 591 |
"verwenden wird, unabhängig davon, ob das Argument ein korrekt angegebenes " |
| 592 |
"Optionsargument ist oder einfach nur die nächste Option (falls der Benutzer " |
| 593 |
"die Befehlszeile falsch angegeben hat). Falls beispielsweise I<optzeichenk> " |
| 594 |
"als »1n:« festgelegt ist und der Benutzer die Befehlszeile inkorrekt als " |
| 595 |
"I<prog\\ -n\\ -1> angibt, dann wird der Option I<-n> der B<optarg>-Wert »-1« " |
| 596 |
"gegeben und die Option I<-1> wird als nicht angegeben betrachtet." |
| 597 |
|
| 598 |
#. type: SH |
| 599 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 600 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 601 |
#, no-wrap |
| 602 |
msgid "EXAMPLES" |
| 603 |
msgstr "BEISPIELE" |
| 604 |
|
| 605 |
#. type: SS |
| 606 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 607 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 608 |
#, no-wrap |
| 609 |
msgid "getopt()" |
| 610 |
msgstr "getopt()" |
| 611 |
|
| 612 |
#. type: Plain text |
| 613 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 614 |
#: opensuse-tumbleweed |
| 615 |
msgid "" |
| 616 |
"The following trivial example program uses B<getopt>() to handle two " |
| 617 |
"program options: I<-n>, with no associated value; and I<-t\\ val>, which " |
| 618 |
"expects an associated value." |
| 619 |
msgstr "" |
| 620 |
"Das folgende triviale Beispielprogramm verwendet B<getopt>(), um zwei " |
| 621 |
"Programmoptionen zu verarbeiten: I<-n> ohne zugehörigen Wert und I<-t Wert>, " |
| 622 |
"die einen zugehörigen Wert erwartet." |
| 623 |
|
| 624 |
# nsecs übersetzen ? |
| 625 |
# # Ende von Teil 2 der formatierten Ausgabe: Zeile 246 |
| 626 |
#. type: Plain text |
| 627 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 628 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 629 |
#, no-wrap |
| 630 |
msgid "" |
| 631 |
"#include E<lt>stdio.hE<gt>\n" |
| 632 |
"#include E<lt>stdlib.hE<gt>\n" |
| 633 |
"#include E<lt>unistd.hE<gt>\n" |
| 634 |
"\\&\n" |
| 635 |
"int\n" |
| 636 |
"main(int argc, char *argv[])\n" |
| 637 |
"{\n" |
| 638 |
" int flags, opt;\n" |
| 639 |
" int nsecs, tfnd;\n" |
| 640 |
"\\&\n" |
| 641 |
" nsecs = 0;\n" |
| 642 |
" tfnd = 0;\n" |
| 643 |
" flags = 0;\n" |
| 644 |
" while ((opt = getopt(argc, argv, \"nt:\")) != -1) {\n" |
| 645 |
" switch (opt) {\n" |
| 646 |
" case \\[aq]n\\[aq]:\n" |
| 647 |
" flags = 1;\n" |
| 648 |
" break;\n" |
| 649 |
" case \\[aq]t\\[aq]:\n" |
| 650 |
" nsecs = atoi(optarg);\n" |
| 651 |
" tfnd = 1;\n" |
| 652 |
" break;\n" |
| 653 |
" default: /* \\[aq]?\\[aq] */\n" |
| 654 |
" fprintf(stderr, \"Usage: %s [-t nsecs] [-n] name\\[rs]n\",\n" |
| 655 |
" argv[0]);\n" |
| 656 |
" exit(EXIT_FAILURE);\n" |
| 657 |
" }\n" |
| 658 |
" }\n" |
| 659 |
"\\&\n" |
| 660 |
" printf(\"flags=%d; tfnd=%d; nsecs=%d; optind=%d\\[rs]n\",\n" |
| 661 |
" flags, tfnd, nsecs, optind);\n" |
| 662 |
"\\&\n" |
| 663 |
" if (optind E<gt>= argc) {\n" |
| 664 |
" fprintf(stderr, \"Expected argument after options\\[rs]n\");\n" |
| 665 |
" exit(EXIT_FAILURE);\n" |
| 666 |
" }\n" |
| 667 |
"\\&\n" |
| 668 |
" printf(\"name argument = %s\\[rs]n\", argv[optind]);\n" |
| 669 |
"\\&\n" |
| 670 |
" /* Other code omitted */\n" |
| 671 |
"\\&\n" |
| 672 |
" exit(EXIT_SUCCESS);\n" |
| 673 |
"}\n" |
| 674 |
msgstr "" |
| 675 |
"#include E<lt>stdio.hE<gt>\n" |
| 676 |
"#include E<lt>stdlib.hE<gt>\n" |
| 677 |
"#include E<lt>unistd.hE<gt>\n" |
| 678 |
"\\&\n" |
| 679 |
"int\n" |
| 680 |
"main(int argc, char *argv[])\n" |
| 681 |
"{\n" |
| 682 |
" int flags, opt;\n" |
| 683 |
" int nsecs, tfnd;\n" |
| 684 |
"\\&\n" |
| 685 |
" nsecs = 0;\n" |
| 686 |
" tfnd = 0;\n" |
| 687 |
" flags = 0;\n" |
| 688 |
" while ((opt = getopt(argc, argv, \"nt:\")) != -1) {\n" |
| 689 |
" switch (opt) {\n" |
| 690 |
" case \\[aq]n\\[aq]:\n" |
| 691 |
" flags = 1;\n" |
| 692 |
" break;\n" |
| 693 |
" case \\[aq]t\\[aq]:\n" |
| 694 |
" nsecs = atoi(optarg);\n" |
| 695 |
" tfnd = 1;\n" |
| 696 |
" break;\n" |
| 697 |
" default: /* \\[aq]?\\[aq] */\n" |
| 698 |
" fprintf(stderr, \"Verwendung: %s [-t nsecs] [-n] name\\[rs]n\",\n" |
| 699 |
" argv[0]);\n" |
| 700 |
" exit(EXIT_FAILURE);\n" |
| 701 |
" }\n" |
| 702 |
" }\n" |
| 703 |
"\\&\n" |
| 704 |
" printf(\"flags=%d; tfnd=%d; nsecs=%d; optind=%d\\[rs]n\",\n" |
| 705 |
" flags, tfnd, nsecs, optind);\n" |
| 706 |
"\\&\n" |
| 707 |
" if (optind E<gt>= argc) {\n" |
| 708 |
" fprintf(stderr, \"Erwartete Argumente nach den Optionen\\[rs]n\");\n" |
| 709 |
" exit(EXIT_FAILURE);\n" |
| 710 |
" }\n" |
| 711 |
"\\&\n" |
| 712 |
" printf(\"name argument = %s\\[rs]n\", argv[optind]);\n" |
| 713 |
"\\&\n" |
| 714 |
" /* Weiterer Code weggelassen */\n" |
| 715 |
"\\&\n" |
| 716 |
" exit(EXIT_SUCCESS);\n" |
| 717 |
"}\n" |
| 718 |
|
| 719 |
#. SRC END |
| 720 |
#. type: SH |
| 721 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 722 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 723 |
#, no-wrap |
| 724 |
msgid "SEE ALSO" |
| 725 |
msgstr "SIEHE AUCH" |
| 726 |
|
| 727 |
#. type: Plain text |
| 728 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 729 |
#: opensuse-tumbleweed |
| 730 |
msgid "" |
| 731 |
"B<getopt>(1), B<getopt_long>(3), B<getopt_long_only>(3), B<getsubopt>(3)" |
| 732 |
msgstr "" |
| 733 |
"B<getopt>(1), B<getopt_long>(3), B<getopt_long_only>(3), B<getsubopt>(3)" |
| 734 |
|
| 735 |
#. type: TH |
| 736 |
#: debian-trixie |
| 737 |
#, no-wrap |
| 738 |
msgid "2024-06-15" |
| 739 |
msgstr "15. Juni 2024" |
| 740 |
|
| 741 |
#. type: TH |
| 742 |
#: debian-trixie |
| 743 |
#, no-wrap |
| 744 |
msgid "Linux man-pages 6.9.1" |
| 745 |
msgstr "Linux man-pages 6.9.1" |
| 746 |
|
| 747 |
#. type: Plain text |
| 748 |
#: debian-trixie fedora-44 fedora-rawhide |
| 749 |
msgid "" |
| 750 |
"getopt, getopt_long, getopt_long_only, optarg, optind, opterr, optopt - " |
| 751 |
"Parse command-line options" |
| 752 |
msgstr "" |
| 753 |
"getopt, getopt_long, getopt_long_only, optarg, optind, opterr, optopt - " |
| 754 |
"Befehlszeilenoptionen auswerten" |
| 755 |
|
| 756 |
#. type: Plain text |
| 757 |
#: debian-trixie |
| 758 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 759 |
msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)" |
| 760 |
|
| 761 |
#. type: Plain text |
| 762 |
#: debian-trixie fedora-44 fedora-rawhide |
| 763 |
#, no-wrap |
| 764 |
msgid "B<#include E<lt>getopt.hE<gt>>\n" |
| 765 |
msgstr "B<#include E<lt>getopt.hE<gt>>\n" |
| 766 |
|
| 767 |
#. type: Plain text |
| 768 |
#: debian-trixie fedora-44 fedora-rawhide |
| 769 |
#, no-wrap |
| 770 |
msgid "" |
| 771 |
"B<int getopt_long(int >I<argc>B<, char *>I<argv>B<[],>\n" |
| 772 |
"B< const char *>I<optstring>B<,>\n" |
| 773 |
"B< const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n" |
| 774 |
"B<int getopt_long_only(int >I<argc>B<, char *>I<argv>B<[],>\n" |
| 775 |
"B< const char *>I<optstring>B<,>\n" |
| 776 |
"B< const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n" |
| 777 |
msgstr "" |
| 778 |
"B<int getopt_long(int >I<argz>B<, char *>I<argv>B<[],>\n" |
| 779 |
"B< const char *>I<optzeichenk>B<,>\n" |
| 780 |
"B< const struct option *>I<langopt>B<, int *>I<langindex>B<);>\n" |
| 781 |
"B<int getopt_long_only(int >I<argz>B<, char *>I<argv>B<[],>\n" |
| 782 |
"B< const char *>I<optzeichenk>B<,>\n" |
| 783 |
"B< const struct option *>I<langopt>B<, int *>I<langindex>B<);>\n" |
| 784 |
|
| 785 |
#. type: Plain text |
| 786 |
#: debian-trixie fedora-44 fedora-rawhide |
| 787 |
msgid "B<getopt_long>(), B<getopt_long_only>():" |
| 788 |
msgstr "B<getopt_long>(), B<getopt_long_only>():" |
| 789 |
|
| 790 |
#. type: Plain text |
| 791 |
#: debian-trixie fedora-44 fedora-rawhide |
| 792 |
#, no-wrap |
| 793 |
msgid " _GNU_SOURCE\n" |
| 794 |
msgstr " _GNU_SOURCE\n" |
| 795 |
|
| 796 |
# FIXME behaviour → behavior (according man-pages(7) american English is used) |
| 797 |
#. type: Plain text |
| 798 |
#: debian-trixie fedora-44 fedora-rawhide |
| 799 |
msgid "" |
| 800 |
"By default, B<getopt>() permutes the contents of I<argv> as it scans, so " |
| 801 |
"that eventually all the nonoptions are at the end. Two other scanning modes " |
| 802 |
"are also implemented. If the first character of I<optstring> is \\[aq]+\\" |
| 803 |
"[aq] or the environment variable B<POSIXLY_CORRECT> is set, then option " |
| 804 |
"processing stops as soon as a nonoption argument is encountered. If \\[aq]+" |
| 805 |
"\\[aq] is not the first character of I<optstring>, it is treated as a normal " |
| 806 |
"option. If B<POSIXLY_CORRECT> behaviour is required in this case " |
| 807 |
"I<optstring> will contain two \\[aq]+\\[aq] symbols. If the first character " |
| 808 |
"of I<optstring> is \\[aq]-\\[aq], then each nonoption I<argv>-element is " |
| 809 |
"handled as if it were the argument of an option with character code 1. " |
| 810 |
"(This is used by programs that were written to expect options and other " |
| 811 |
"I<argv>-elements in any order and that care about the ordering of the two.) " |
| 812 |
"The special argument \"--\" forces an end of option-scanning regardless of " |
| 813 |
"the scanning mode." |
| 814 |
msgstr "" |
| 815 |
"Standardmäßig vertauscht B<getopt>() den Inhalt von I<argv> beim " |
| 816 |
"Durchsuchen, so dass schließlich alle Nichtoptionen am Ende stehen. Zwei " |
| 817 |
"weitere Suchmodi sind ebenfalls implementiert. Falls das erste Zeichen von " |
| 818 |
"I<optzeichenk> ein »+« ist oder die Umgebungsvariable B<POSIXLY_CORRECT> " |
| 819 |
"gesetzt ist, dann stoppt die Optionsbearbeitung sobald ein Argument " |
| 820 |
"auftritt, das keine Option ist. Falls »+« nicht das erste Zeichen von " |
| 821 |
"I<optzeichenk> ist, wird es als normale Option aufgefasst. Sollte in diesem " |
| 822 |
"Fall ein B<POSIXLY_CORRECT>-Verhalten erforderlich sein, dann wird " |
| 823 |
"I<optzeichenk> zwei »+«-Symbole enthalten. Falls das erste Zeichen von " |
| 824 |
"I<optzeichenk> ein »-« ist, dann wird jedes Argument von I<argv>, das keine " |
| 825 |
"Option ist, so behandelt, als ob es Argument einer Option mit dem " |
| 826 |
"Zeichencode 1 wäre. (Dies wird von Programmen benutzt, die Optionen und " |
| 827 |
"andere I<argv>-Elemente in beliebiger Reihenfolge erwarten, und die Wert auf " |
| 828 |
"die Reihenfolge der beiden legen.) Das besondere Argument »--« erzwingt die " |
| 829 |
"Beendigung der Suche nach Optionen unabhängig von der Suchmethode." |
| 830 |
|
| 831 |
#. type: SS |
| 832 |
#: debian-trixie fedora-44 fedora-rawhide |
| 833 |
#, no-wrap |
| 834 |
msgid "getopt_long() and getopt_long_only()" |
| 835 |
msgstr "getopt_long() und getopt_long_only()" |
| 836 |
|
| 837 |
#. type: Plain text |
| 838 |
#: debian-trixie fedora-44 fedora-rawhide |
| 839 |
msgid "" |
| 840 |
"The B<getopt_long>() function works like B<getopt>() except that it also " |
| 841 |
"accepts long options, started with two dashes. (If the program accepts only " |
| 842 |
"long options, then I<optstring> should be specified as an empty string " |
| 843 |
"(\"\"), not NULL.) Long option names may be abbreviated if the abbreviation " |
| 844 |
"is unique or is an exact match for some defined option. A long option may " |
| 845 |
"take a parameter, of the form B<--arg=param> or B<--arg param>." |
| 846 |
msgstr "" |
| 847 |
"Die Funktion B<getopt_long>() arbeitet wie B<getopt>(), außer dass sie auch " |
| 848 |
"lange Optionsnamen unterstützt, die mit zwei Minuszeichen beginnen. (Falls " |
| 849 |
"das Programm nur lange Optionen unterstützt, dann sollte I<optzeichenk> als " |
| 850 |
"leere Zeichenkette (\"\") und nicht als NULL angegeben werden). Lange " |
| 851 |
"Optionsnamen dürfen abgekürzt werden, wenn die Abkürzung eindeutig ist oder " |
| 852 |
"genau einer definierten Option entspricht. Eine lange Option darf einen " |
| 853 |
"Parameter der Form B<--arg=param> oder B<--arg param> akzeptieren." |
| 854 |
|
| 855 |
#. type: Plain text |
| 856 |
#: debian-trixie fedora-44 fedora-rawhide |
| 857 |
msgid "" |
| 858 |
"I<longopts> is a pointer to the first element of an array of I<struct " |
| 859 |
"option> declared in I<E<lt>getopt.hE<gt>> as" |
| 860 |
msgstr "" |
| 861 |
"I<langopt> ist ein Zeiger auf das erste Element eines Feldes von Strukturen " |
| 862 |
"B<struct option>, die in B<E<lt>getopt.hE<gt>> deklariert ist als" |
| 863 |
|
| 864 |
#. type: Plain text |
| 865 |
#: debian-trixie fedora-44 fedora-rawhide |
| 866 |
#, no-wrap |
| 867 |
msgid "" |
| 868 |
"struct option {\n" |
| 869 |
" const char *name;\n" |
| 870 |
" int has_arg;\n" |
| 871 |
" int *flag;\n" |
| 872 |
" int val;\n" |
| 873 |
"};\n" |
| 874 |
msgstr "" |
| 875 |
"struct option {\n" |
| 876 |
" const char *name;\n" |
| 877 |
" int has_arg;\n" |
| 878 |
" int *flag;\n" |
| 879 |
" int val;\n" |
| 880 |
"};\n" |
| 881 |
|
| 882 |
# #-#-#-#-# min-003-occurences.po (manpages-l10n) #-#-#-#-# |
| 883 |
# # Ende von Teil 1 der formatierten Ausgabe: Zeile 120 |
| 884 |
#. type: Plain text |
| 885 |
#: debian-trixie fedora-44 fedora-rawhide |
| 886 |
msgid "The meanings of the different fields are:" |
| 887 |
msgstr "Die Bedeutungen der einzelnen Felder sind:" |
| 888 |
|
| 889 |
#. type: TP |
| 890 |
#: debian-trixie fedora-44 fedora-rawhide |
| 891 |
#, no-wrap |
| 892 |
msgid "I<name>" |
| 893 |
msgstr "I<name>" |
| 894 |
|
| 895 |
#. type: Plain text |
| 896 |
#: debian-trixie fedora-44 fedora-rawhide |
| 897 |
msgid "is the name of the long option." |
| 898 |
msgstr "ist der Name der langen Option." |
| 899 |
|
| 900 |
#. type: TP |
| 901 |
#: debian-trixie fedora-44 fedora-rawhide |
| 902 |
#, no-wrap |
| 903 |
msgid "I<has_arg>" |
| 904 |
msgstr "I<has_arg>" |
| 905 |
|
| 906 |
#. type: Plain text |
| 907 |
#: debian-trixie fedora-44 fedora-rawhide |
| 908 |
msgid "" |
| 909 |
"is: B<no_argument> (or 0) if the option does not take an argument; " |
| 910 |
"B<required_argument> (or 1) if the option requires an argument; or " |
| 911 |
"B<optional_argument> (or 2) if the option takes an optional argument." |
| 912 |
msgstr "" |
| 913 |
"ist: B<no_argument> (oder 0), falls die Option kein Argument erwartet, " |
| 914 |
"B<required_argument> (oder 1), falls die Option ein Argument benötigt oder " |
| 915 |
"B<optional_argument> (oder 2), falls die Option ein optionales Argument " |
| 916 |
"erwartet." |
| 917 |
|
| 918 |
#. type: TP |
| 919 |
#: debian-trixie fedora-44 fedora-rawhide |
| 920 |
#, no-wrap |
| 921 |
msgid "I<flag>" |
| 922 |
msgstr "I<flag>" |
| 923 |
|
| 924 |
#. type: Plain text |
| 925 |
#: debian-trixie fedora-44 fedora-rawhide |
| 926 |
msgid "" |
| 927 |
"specifies how results are returned for a long option. If I<flag> is NULL, " |
| 928 |
"then B<getopt_long>() returns I<val>. (For example, the calling program " |
| 929 |
"may set I<val> to the equivalent short option character.) Otherwise, " |
| 930 |
"B<getopt_long>() returns 0, and I<flag> points to a variable which is set " |
| 931 |
"to I<val> if the option is found, but left unchanged if the option is not " |
| 932 |
"found." |
| 933 |
msgstr "" |
| 934 |
"gibt an, wie für eine lange Option Ergebnisse zurückgegeben werden. Falls " |
| 935 |
"I<flag> NULL ist, dann gibt B<getopt_long>() I<val> zurück. (Zum Beispiel " |
| 936 |
"kann das aufrufende Programm I<val> auf das Zeichen der äquivalenten " |
| 937 |
"Kurzoption setzen.) Anderenfalls gibt B<getopt_long>() 0 zurück und I<flag> " |
| 938 |
"zeigt auf eine Variable, die auf I<val> gesetzt wird, falls die Option " |
| 939 |
"gefunden wird, und die unverändert gelassen wird, falls die Option nicht " |
| 940 |
"gefunden wird." |
| 941 |
|
| 942 |
#. type: TP |
| 943 |
#: debian-trixie fedora-44 fedora-rawhide |
| 944 |
#, no-wrap |
| 945 |
msgid "I<val>" |
| 946 |
msgstr "I<val> " |
| 947 |
|
| 948 |
#. type: Plain text |
| 949 |
#: debian-trixie fedora-44 fedora-rawhide |
| 950 |
msgid "" |
| 951 |
"is the value to return, or to load into the variable pointed to by I<flag>." |
| 952 |
msgstr "" |
| 953 |
"ist der Wert, der zurückzugeben oder in die Variable zu laden ist, auf die " |
| 954 |
"I<flag> zeigt." |
| 955 |
|
| 956 |
#. type: Plain text |
| 957 |
#: debian-trixie fedora-44 fedora-rawhide |
| 958 |
msgid "The last element of the array has to be filled with zeros." |
| 959 |
msgstr "Das letzte Element des Feldes muss mit Nullen gefüllt werden." |
| 960 |
|
| 961 |
# #-#-#-#-# min-003-occurences.po (manpages-l10n) #-#-#-#-# |
| 962 |
# s/wird/ist/? |
| 963 |
#. type: Plain text |
| 964 |
#: debian-trixie fedora-44 fedora-rawhide |
| 965 |
msgid "" |
| 966 |
"If I<longindex> is not NULL, it points to a variable which is set to the " |
| 967 |
"index of the long option relative to I<longopts>." |
| 968 |
msgstr "" |
| 969 |
"Falls I<langindex> nicht B<NULL> ist, zeigt er auf eine Variable, welche auf " |
| 970 |
"den Index der langen Option relativ zu I<langopt> gesetzt wird." |
| 971 |
|
| 972 |
#. type: Plain text |
| 973 |
#: debian-trixie fedora-44 fedora-rawhide |
| 974 |
msgid "" |
| 975 |
"B<getopt_long_only>() is like B<getopt_long>(), but \\[aq]-\\[aq] as well " |
| 976 |
"as \"--\" can indicate a long option. If an option that starts with \\[aq]-" |
| 977 |
"\\[aq] (not \"--\") doesn't match a long option, but does match a short " |
| 978 |
"option, it is parsed as a short option instead." |
| 979 |
msgstr "" |
| 980 |
"B<getopt_long_only>() ist wie B<getopt_long>(), jedoch kann »-« ebenso wie " |
| 981 |
"»--« eine lange Option anzeigen. Falls eine Option, die mit »-« anfängt " |
| 982 |
"(nicht »--«), zu keiner langen Option passt, jedoch zu einer kurzen Option, " |
| 983 |
"so wird sie wie eine kurze Option behandelt." |
| 984 |
|
| 985 |
#. type: Plain text |
| 986 |
#: debian-trixie fedora-44 fedora-rawhide |
| 987 |
msgid "" |
| 988 |
"B<getopt_long>() and B<getopt_long_only>() also return the option " |
| 989 |
"character when a short option is recognized. For a long option, they return " |
| 990 |
"I<val> if I<flag> is NULL, and 0 otherwise. Error and -1 returns are the " |
| 991 |
"same as for B<getopt>(), plus \\[aq]?\\[aq] for an ambiguous match or an " |
| 992 |
"extraneous parameter." |
| 993 |
msgstr "" |
| 994 |
"B<getopt_long>() und B<getopt_long_only>() geben auch das Optionszeichen " |
| 995 |
"zurück, wenn eine kurze Option gefunden wurde. Für eine lange Option geben " |
| 996 |
"sie I<val> zurück, wenn I<flag> B<NULL> ist, anderenfalls 0. Fehler- und -1-" |
| 997 |
"Rückgaben sind wie bei B<getopt>(), zusätzlich jedoch »-« für eine " |
| 998 |
"unzureichende Übereinstimmung oder einen überzähligen Parameter." |
| 999 |
|
| 1000 |
#. type: TP |
| 1001 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1002 |
#, no-wrap |
| 1003 |
msgid "B<POSIXLY_CORRECT>" |
| 1004 |
msgstr "B<POSIXLY_CORRECT>" |
| 1005 |
|
| 1006 |
#. type: TP |
| 1007 |
#: debian-trixie |
| 1008 |
#, no-wrap |
| 1009 |
msgid "B<_E<lt>PIDE<gt>_GNU_nonoption_argv_flags_>" |
| 1010 |
msgstr "B<_E<lt>PIDE<gt>_GNU_nonoption_argv_flags_>" |
| 1011 |
|
| 1012 |
#. type: Plain text |
| 1013 |
#: debian-trixie |
| 1014 |
msgid "" |
| 1015 |
"This variable was used by B<bash>(1) 2.0 to communicate to glibc which " |
| 1016 |
"arguments are the results of wildcard expansion and so should not be " |
| 1017 |
"considered as options. This behavior was removed in B<bash>(1) 2.01, but " |
| 1018 |
"the support remains in glibc." |
| 1019 |
msgstr "" |
| 1020 |
"Diese Variable wurde von der B<bash>(1)-Version 2.0 genutzt, um der Glibc " |
| 1021 |
"mitzuteilen, welche Argumente Ergebnis der Ersetzung von Platzhaltern und " |
| 1022 |
"somit nicht als Optionen anzusehen sind. Dieses Verhalten wurde in der " |
| 1023 |
"B<bash>(1)-Version 2.01 entfernt, wird aber weiterhin von der Glibc " |
| 1024 |
"unterstützt." |
| 1025 |
|
| 1026 |
#. type: tbl table |
| 1027 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1028 |
#, no-wrap |
| 1029 |
msgid "" |
| 1030 |
"B<getopt>(),\n" |
| 1031 |
"B<getopt_long>(),\n" |
| 1032 |
"B<getopt_long_only>()" |
| 1033 |
msgstr "" |
| 1034 |
"B<getopt>(),\n" |
| 1035 |
"B<getopt_long>(),\n" |
| 1036 |
"B<getopt_long_only>()" |
| 1037 |
|
| 1038 |
#. type: Plain text |
| 1039 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1040 |
msgid "" |
| 1041 |
"POSIX specifies that the I<argv> array argument should be I<const>, but " |
| 1042 |
"these functions permute its elements unless the environment variable " |
| 1043 |
"B<POSIXLY_CORRECT> is set. I<const> is used in the actual prototype to be " |
| 1044 |
"compatible with other systems; however, this page doesn't show the " |
| 1045 |
"qualifier, to avoid confusing readers." |
| 1046 |
msgstr "" |
| 1047 |
"POSIX spezifiziert, dass das Array-Argument I<argv> vom Typ I<const> sein " |
| 1048 |
"soll, aber diese Funktionen permutieren ihre Elemente, außer die " |
| 1049 |
"Umgebungsvariable B<POSIXLY_CORRECT> ist gesetzt. I<const> wird im " |
| 1050 |
"eigentlichen Prototyp zur Kompatibilität mit anderen Systemen gesetzt, " |
| 1051 |
"allerdings zeigt diese Seite den Kennzeichner nicht, um den Leser nicht " |
| 1052 |
"durcheinanderzubringen." |
| 1053 |
|
| 1054 |
#. type: TP |
| 1055 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1056 |
#, no-wrap |
| 1057 |
msgid "B<getopt_long>()" |
| 1058 |
msgstr "B<getopt_long>()" |
| 1059 |
|
| 1060 |
#. type: TQ |
| 1061 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1062 |
#, no-wrap |
| 1063 |
msgid "B<getopt_long_only>()" |
| 1064 |
msgstr "B<getopt_long_only>()" |
| 1065 |
|
| 1066 |
#. type: Plain text |
| 1067 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1068 |
msgid "GNU." |
| 1069 |
msgstr "GNU." |
| 1070 |
|
| 1071 |
#. type: Plain text |
| 1072 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1073 |
msgid "" |
| 1074 |
"A program that scans multiple argument vectors, or rescans the same vector " |
| 1075 |
"more than once, and wants to make use of GNU extensions such as \\[aq]+\\" |
| 1076 |
"[aq] and \\[aq]-\\[aq] at the start of I<optstring>, or changes the value of " |
| 1077 |
"B<POSIXLY_CORRECT> between scans, must reinitialize B<getopt>() by " |
| 1078 |
"resetting I<optind> to 0, rather than the traditional value of 1. " |
| 1079 |
"(Resetting to 0 forces the invocation of an internal initialization routine " |
| 1080 |
"that rechecks B<POSIXLY_CORRECT> and checks for GNU extensions in " |
| 1081 |
"I<optstring>.)" |
| 1082 |
msgstr "" |
| 1083 |
"Ein Programm, das mehrere Argumentvektoren oder denselben Argumentvektor " |
| 1084 |
"mehrfach auswertet und GNU-Erweiterungen wie beispielsweise »+« und »-« am " |
| 1085 |
"Anfang von I<optzeichenk> nutzen möchte oder zwischen den Auswertungen den " |
| 1086 |
"Wert von B<POSIXLY_CORRECT> ändert, muss B<getopt>() neu initialisieren, " |
| 1087 |
"indem es I<optind> auf 0 statt des traditionellen Wertes 1 setzt. (Das " |
| 1088 |
"Rücksetzen auf 0 erzwingt den Aufruf einer internen Initialisierungsroutine, " |
| 1089 |
"die erneut B<POSIXLY_CORRECT> prüft und in I<optzeichenk> nach GNU-" |
| 1090 |
"Erweiterungen sucht.)" |
| 1091 |
|
| 1092 |
#. type: Plain text |
| 1093 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1094 |
msgid "" |
| 1095 |
"The following trivial example program uses B<getopt>() to handle two " |
| 1096 |
"program options: I<-n>, with no associated value; and I<-t val>, which " |
| 1097 |
"expects an associated value." |
| 1098 |
msgstr "" |
| 1099 |
"Das folgende triviale Beispielprogramm verwendet B<getopt>(), um zwei " |
| 1100 |
"Programmoptionen zu verarbeiten: I<-n> ohne zugehörigen Wert und I<-t Wert>, " |
| 1101 |
"die einen zugehörigen Wert erwartet." |
| 1102 |
|
| 1103 |
#. SRC END |
| 1104 |
#. type: SS |
| 1105 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1106 |
#, no-wrap |
| 1107 |
msgid "getopt_long()" |
| 1108 |
msgstr "getopt_long()" |
| 1109 |
|
| 1110 |
#. type: Plain text |
| 1111 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1112 |
msgid "" |
| 1113 |
"The following example program illustrates the use of B<getopt_long>() with " |
| 1114 |
"most of its features." |
| 1115 |
msgstr "" |
| 1116 |
"Das folgende Beispielprogramm veranschaulicht die Benutzung von " |
| 1117 |
"B<getopt_long>() mit der Mehrzahl ihrer Funktionalitäten." |
| 1118 |
|
| 1119 |
#. type: Plain text |
| 1120 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1121 |
#, no-wrap |
| 1122 |
msgid "" |
| 1123 |
"#include E<lt>getopt.hE<gt>\n" |
| 1124 |
"#include E<lt>stdio.hE<gt> /* for printf */\n" |
| 1125 |
"#include E<lt>stdlib.hE<gt> /* for exit */\n" |
| 1126 |
"\\&\n" |
| 1127 |
"int\n" |
| 1128 |
"main(int argc, char *argv[])\n" |
| 1129 |
"{\n" |
| 1130 |
" int c;\n" |
| 1131 |
" int digit_optind = 0;\n" |
| 1132 |
"\\&\n" |
| 1133 |
" while (1) {\n" |
| 1134 |
" int this_option_optind = optind ? optind : 1;\n" |
| 1135 |
" int option_index = 0;\n" |
| 1136 |
" static struct option long_options[] = {\n" |
| 1137 |
" {\"add\", required_argument, 0, 0 },\n" |
| 1138 |
" {\"append\", no_argument, 0, 0 },\n" |
| 1139 |
" {\"delete\", required_argument, 0, 0 },\n" |
| 1140 |
" {\"verbose\", no_argument, 0, 0 },\n" |
| 1141 |
" {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n" |
| 1142 |
" {\"file\", required_argument, 0, 0 },\n" |
| 1143 |
" {0, 0, 0, 0 }\n" |
| 1144 |
" };\n" |
| 1145 |
"\\&\n" |
| 1146 |
" c = getopt_long(argc, argv, \"abc:d:012\",\n" |
| 1147 |
" long_options, &option_index);\n" |
| 1148 |
" if (c == -1)\n" |
| 1149 |
" break;\n" |
| 1150 |
"\\&\n" |
| 1151 |
" switch (c) {\n" |
| 1152 |
" case 0:\n" |
| 1153 |
" printf(\"option %s\", long_options[option_index].name);\n" |
| 1154 |
" if (optarg)\n" |
| 1155 |
" printf(\" with arg %s\", optarg);\n" |
| 1156 |
" printf(\"\\[rs]n\");\n" |
| 1157 |
" break;\n" |
| 1158 |
"\\&\n" |
| 1159 |
" case \\[aq]0\\[aq]:\n" |
| 1160 |
" case \\[aq]1\\[aq]:\n" |
| 1161 |
" case \\[aq]2\\[aq]:\n" |
| 1162 |
" if (digit_optind != 0 && digit_optind != this_option_optind)\n" |
| 1163 |
" printf(\"digits occur in two different argv-elements.\\[rs]n\");\n" |
| 1164 |
" digit_optind = this_option_optind;\n" |
| 1165 |
" printf(\"option %c\\[rs]n\", c);\n" |
| 1166 |
" break;\n" |
| 1167 |
"\\&\n" |
| 1168 |
" case \\[aq]a\\[aq]:\n" |
| 1169 |
" printf(\"option a\\[rs]n\");\n" |
| 1170 |
" break;\n" |
| 1171 |
"\\&\n" |
| 1172 |
" case \\[aq]b\\[aq]:\n" |
| 1173 |
" printf(\"option b\\[rs]n\");\n" |
| 1174 |
" break;\n" |
| 1175 |
"\\&\n" |
| 1176 |
" case \\[aq]c\\[aq]:\n" |
| 1177 |
" printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 1178 |
" break;\n" |
| 1179 |
"\\&\n" |
| 1180 |
" case \\[aq]d\\[aq]:\n" |
| 1181 |
" printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 1182 |
" break;\n" |
| 1183 |
"\\&\n" |
| 1184 |
" case \\[aq]?\\[aq]:\n" |
| 1185 |
" break;\n" |
| 1186 |
"\\&\n" |
| 1187 |
" default:\n" |
| 1188 |
" printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n" |
| 1189 |
" }\n" |
| 1190 |
" }\n" |
| 1191 |
"\\&\n" |
| 1192 |
" if (optind E<lt> argc) {\n" |
| 1193 |
" printf(\"non-option ARGV-elements: \");\n" |
| 1194 |
" while (optind E<lt> argc)\n" |
| 1195 |
" printf(\"%s \", argv[optind++]);\n" |
| 1196 |
" printf(\"\\[rs]n\");\n" |
| 1197 |
" }\n" |
| 1198 |
"\\&\n" |
| 1199 |
" exit(EXIT_SUCCESS);\n" |
| 1200 |
"}\n" |
| 1201 |
msgstr "" |
| 1202 |
"#include E<lt>getopt.hE<gt>\n" |
| 1203 |
"#include E<lt>stdio.hE<gt> /* für printf */\n" |
| 1204 |
"#include E<lt>stdlib.hE<gt> /* für exit */\n" |
| 1205 |
"\\&\n" |
| 1206 |
"int\n" |
| 1207 |
"main(int argc, char *argv[])\n" |
| 1208 |
"{\n" |
| 1209 |
" int c;\n" |
| 1210 |
" int digit_optind = 0;\n" |
| 1211 |
"\\&\n" |
| 1212 |
" while (1) {\n" |
| 1213 |
" int this_option_optind = optind ? optind : 1;\n" |
| 1214 |
" int option_index = 0;\n" |
| 1215 |
" static struct option long_options[] = {\n" |
| 1216 |
" {\"add\", required_argument, 0, 0 },\n" |
| 1217 |
" {\"append\", no_argument, 0, 0 },\n" |
| 1218 |
" {\"delete\", required_argument, 0, 0 },\n" |
| 1219 |
" {\"verbose\", no_argument, 0, 0 },\n" |
| 1220 |
" {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n" |
| 1221 |
" {\"file\", required_argument, 0, 0 },\n" |
| 1222 |
" {0, 0, 0, 0 }\n" |
| 1223 |
" };\n" |
| 1224 |
"\\&\n" |
| 1225 |
" c = getopt_long(argc, argv, \"abc:d:012\",\n" |
| 1226 |
" long_options, &option_index);\n" |
| 1227 |
" if (c == -1)\n" |
| 1228 |
" break;\n" |
| 1229 |
"\\&\n" |
| 1230 |
" switch (c) {\n" |
| 1231 |
" case 0:\n" |
| 1232 |
" printf(\"option %s\", long_options[option_index].name);\n" |
| 1233 |
" if (optarg)\n" |
| 1234 |
" printf(\" mit arg %s\", optarg);\n" |
| 1235 |
" printf(\"\\[rs]n\");\n" |
| 1236 |
" break;\n" |
| 1237 |
"\\&\n" |
| 1238 |
" case \\[aq]0\\[aq]:\n" |
| 1239 |
" case \\[aq]1\\[aq]:\n" |
| 1240 |
" case \\[aq]2\\[aq]:\n" |
| 1241 |
" if (digit_optind != 0 && digit_optind != this_option_optind)\n" |
| 1242 |
" printf(\"digits occur in two different argv-elements.\\[rs]n\");\n" |
| 1243 |
" digit_optind = this_option_optind;\n" |
| 1244 |
" printf(\"option %c\\[rs]n\", c);\n" |
| 1245 |
" break;\n" |
| 1246 |
"\\&\n" |
| 1247 |
" case \\[aq]a\\[aq]:\n" |
| 1248 |
" printf(\"option a\\[rs]n\");\n" |
| 1249 |
" break;\n" |
| 1250 |
"\\&\n" |
| 1251 |
" case \\[aq]b\\[aq]:\n" |
| 1252 |
" printf(\"option b\\[rs]n\");\n" |
| 1253 |
" break;\n" |
| 1254 |
"\\&\n" |
| 1255 |
" case \\[aq]c\\[aq]:\n" |
| 1256 |
" printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 1257 |
" break;\n" |
| 1258 |
"\\&\n" |
| 1259 |
" case \\[aq]d\\[aq]:\n" |
| 1260 |
" printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 1261 |
" break;\n" |
| 1262 |
"\\&\n" |
| 1263 |
" case \\[aq]?\\[aq]:\n" |
| 1264 |
" break;\n" |
| 1265 |
"\\&\n" |
| 1266 |
" default:\n" |
| 1267 |
" printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n" |
| 1268 |
" }\n" |
| 1269 |
" }\n" |
| 1270 |
"\\&\n" |
| 1271 |
" if (optind E<lt> argc) {\n" |
| 1272 |
" printf(\"non-option ARGV-elements: \");\n" |
| 1273 |
" while (optind E<lt> argc)\n" |
| 1274 |
" printf(\"%s \", argv[optind++]);\n" |
| 1275 |
" printf(\"\\[rs]n\");\n" |
| 1276 |
" }\n" |
| 1277 |
"\\&\n" |
| 1278 |
" exit(EXIT_SUCCESS);\n" |
| 1279 |
"}\n" |
| 1280 |
|
| 1281 |
#. type: Plain text |
| 1282 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1283 |
msgid "B<getopt>(1), B<getsubopt>(3)" |
| 1284 |
msgstr "B<getopt>(1), B<getsubopt>(3)" |
| 1285 |
|
| 1286 |
#. type: TH |
| 1287 |
#: fedora-44 fedora-rawhide |
| 1288 |
#, no-wrap |
| 1289 |
msgid "2024-12-19" |
| 1290 |
msgstr "19. Dezember 2024" |
| 1291 |
|
| 1292 |
#. type: TH |
| 1293 |
#: fedora-44 fedora-rawhide |
| 1294 |
#, no-wrap |
| 1295 |
msgid "Linux man-pages 6.13" |
| 1296 |
msgstr "Linux man-pages 6.13" |
| 1297 |
|
| 1298 |
#. type: Plain text |
| 1299 |
#: fedora-44 fedora-rawhide |
| 1300 |
msgid "" |
| 1301 |
"Very old versions of glibc were affected by a E<.UR https://" |
| 1302 |
"\\:sourceware.org/\\:git/\\:?" |
| 1303 |
"p=glibc.git;a=commitdiff;h=bf079e19f50d64aa5e05> " |
| 1304 |
"B<_>I<PID>B<_GNU_nonoption_argv_flags_> environment variable E<.UE .>" |
| 1305 |
msgstr "" |
| 1306 |
"Sehr alte Versionen von Glibc wurden von der E<.UR https://\\:sourceware.org/" |
| 1307 |
"\\:git/\\:?p=glibc.git;a=commitdiff;h=bf079e19f50d64aa5e05> " |
| 1308 |
"Umgebungsvariablen B<_>I<PID>B<_GNU_nonoption_argv_flags_> E<.UE> " |
| 1309 |
"beeinflusst." |
| 1310 |
|
| 1311 |
#. type: TH |
| 1312 |
#: mageia-cauldron |
| 1313 |
#, no-wrap |
| 1314 |
msgid "Linux man-pages 6.17" |
| 1315 |
msgstr "Linux man-pages 6.17" |
| 1316 |
|
| 1317 |
#. type: TH |
| 1318 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1319 |
#, no-wrap |
| 1320 |
msgid "Linux man-pages (unreleased)" |
| 1321 |
msgstr "Linux man-pages (unveröffentlicht)" |