Debian Codegraph @

po/de/man3/hsearch.3.po

raw
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 Eberhard Schauer <[email protected]>, 2012.
5 # Mario Blättermann <[email protected]>, 2020, 2021, 2022, 2023.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n 4.25.1\n"
9 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
10 "PO-Revision-Date: 2025-02-01 12:50+0100\n"
11 "Last-Translator: Mario Blättermann <[email protected]>\n"
12 "Language-Team: German <[email protected]>\n"
13 "Language: de\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "X-Generator: Lokalize 23.04.3\n"
18 "Plural-Forms: nplurals=2; plural=n != 1;\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "hsearch"
25 msgstr "hsearch"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8. Februar 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Linux man-pages 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "BEZEICHNUNG"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid ""
51 "hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r - hash table "
52 "management"
53 msgstr ""
54 "hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r - Verwaltung "
55 "von Hash-Tabellen"
56
57 #. type: SH
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, no-wrap
61 msgid "LIBRARY"
62 msgstr "BIBLIOTHEK"
63
64 #. type: Plain text
65 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
66 #: opensuse-leap-16-1 opensuse-tumbleweed
67 msgid "Standard C library (I<libc>,\\ I<-lc>)"
68 msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "SYNOPSIS"
75 msgstr "ÜBERSICHT"
76
77 #. type: Plain text
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "B<#include E<lt>search.hE<gt>>\n"
82 msgstr "B<#include E<lt>search.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid ""
89 "B<int hcreate(size_t >I<nel>B<);>\n"
90 "B<void hdestroy(void);>\n"
91 msgstr ""
92 "B<int hcreate(size_t >I<nel>B<);>\n"
93 "B<void hdestroy(void);>\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 "B<ENTRY *hsearch(ENTRY >I<item>B<, ACTION >I<action>B<);>\n"
100 msgstr "B<ENTRY *hsearch(ENTRY >I<eintrag>B<, ACTION >I<aktion>B<);>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid ""
107 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
108 "B<#include E<lt>search.hE<gt>>\n"
109 msgstr ""
110 "B<#define _GNU_SOURCE> /* siehe feature_test_macros(7) */\n"
111 "B<#include E<lt>search.hE<gt>>\n"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 #, no-wrap
117 msgid ""
118 "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
119 "B<void hdestroy_r(struct hsearch_data *>I<htab>B<);>\n"
120 msgstr ""
121 "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
122 "B<void hdestroy_r(struct hsearch_data *>I<htab>B<);>\n"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 "B<int hsearch_r(ENTRY >I<item>B<, ACTION >I<action>B<, ENTRY **>I<retval>B<,>\n"
130 "B< struct hsearch_data *>I<htab>B<);>\n"
131 msgstr ""
132 "B<int hsearch_r(ENTRY >I<eintrag>B<, ACTION >I<aktion>B<, ENTRY **>I<rückwert>B<,>\n"
133 "B< struct hsearch_data *>I<htab>B<);>\n"
134
135 #. type: SH
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid "DESCRIPTION"
140 msgstr "BESCHREIBUNG"
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 "The three functions B<hcreate>(), B<hsearch>(), and B<hdestroy>() allow the "
147 "caller to create and manage a hash search table containing entries "
148 "consisting of a key (a string) and associated data. Using these functions, "
149 "only one hash table can be used at a time."
150 msgstr ""
151 "Die drei Funktionen B<hcreate>(), B<hsearch>() und B<hdestroy>() ermöglichen "
152 "dem Aufrufer die Erstellung und Verwaltung einer Hash-Suchtabelle. Deren "
153 "Einträge sind Paare aus einem Schlüssel (eine Zeichenkette) und zugeordneten "
154 "Daten. Mit diesen Funktionen kann immer nur eine Hash-Tabelle genutzt werden."
155
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 three functions B<hcreate_r>(), B<hsearch_r>(), B<hdestroy_r>() are "
161 "reentrant versions that allow a program to use more than one hash search "
162 "table at the same time. The last argument, I<htab>, points to a structure "
163 "that describes the table on which the function is to operate. The "
164 "programmer should treat this structure as opaque (i.e., do not attempt to "
165 "directly access or modify the fields in this structure)."
166 msgstr ""
167 "Die drei Funktionen B<hcreate_r>(), B<hsearch_r>(), B<hdestroy_r>() sind "
168 "ablaufinvariante Funktionen, die überdies Programmen ermöglichen, mit "
169 "mehreren Hash-Tabellen gleichzeitig zu arbeiten. Das letzte Argument, "
170 "I<htab>, zeigt auf eine Struktur mit der Beschreibung der Hash-Tabelle, die "
171 "die Funktion verwenden soll. Der Programmierer sollte diese Struktur als "
172 "»undurchsichtig« behandeln (d.h. er sollte nicht versuchen, direkt auf "
173 "Felder der Struktur zuzugreifen oder zu verändern)."
174
175 #. e.g., in glibc it is raised to the next higher prime number
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "First a hash table must be created using B<hcreate>(). The argument I<nel> "
181 "specifies the maximum number of entries in the table. (This maximum cannot "
182 "be changed later, so choose it wisely.) The implementation may adjust this "
183 "value upward to improve the performance of the resulting hash table."
184 msgstr ""
185 "Zuerst muss mittels B<hcreate>() eine Hash-Tabelle erzeugt werden. Das "
186 "Argument I<nel> gibt die Maximalzahl der Einträge in der Tabelle an. (Dieses "
187 "Maximum kann in der Folge nicht geändert werden, wählen Sie es also mit "
188 "Bedacht.) Es ist möglich, dass die Implementierung diesen Wert nach oben "
189 "anpasst, um die Leistungsfähigkeit der resultierenden Hash-Tabelle zu "
190 "verbessern."
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "The B<hcreate_r>() function performs the same task as B<hcreate>(), but for "
197 "the table described by the structure I<*htab>. The structure pointed to by "
198 "I<htab> must be zeroed before the first call to B<hcreate_r>()."
199 msgstr ""
200 "Die Funktion B<hcreate_r>() erledigt die gleiche Aufgabe wie B<hcreate>(), "
201 "tut das aber für die Tabelle, die durch die Struktur I<*htab> beschrieben "
202 "wird. Vor dem ersten Aufruf von B<hcreate_r>() muss die Struktur I<htab> mit "
203 "Nullen initialisiert werden."
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "The function B<hdestroy>() frees the memory occupied by the hash table that "
210 "was created by B<hcreate>(). After calling B<hdestroy>(), a new hash table "
211 "can be created using B<hcreate>(). The B<hdestroy_r>() function performs "
212 "the analogous task for a hash table described by I<*htab>, which was "
213 "previously created using B<hcreate_r>()."
214 msgstr ""
215 "Die Funktion B<hdestroy>() gibt den Speicher frei, den die von B<hcreate>() "
216 "erzeugte Hash-Tabelle beansprucht. Nach dem Aufruf von B<hdestroy>() kann "
217 "mittels B<hcreate>() eine neue Hash-Tabelle erzeugt werden. Die Funktion "
218 "B<hdestroy_r>() erledigt die analoge Aufgabe für die durch I<*htab> "
219 "beschriebene Hash-Tabelle, die zuvor mittels B<hcreate_r>() erzeugt wurde."
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid ""
225 "The B<hsearch>() function searches the hash table for an item with the same "
226 "key as I<item> (where \"the same\" is determined using B<strcmp>(3)), and if "
227 "successful returns a pointer to it."
228 msgstr ""
229 "Die Funktion B<hsearch>() durchsucht die Hash-Tabelle nach einem Eintrag mit "
230 "dem gleichen Schlüssel wie I<eintrag> (wobei »der gleiche« mittels "
231 "B<strcmp>(3) bestimmt wird) und gibt bei Erfolg einen Zeiger auf diesen "
232 "Eintrag zurück."
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "The argument I<item> is of type I<ENTRY>, which is defined in "
239 "I<E<lt>search.hE<gt>> as follows:"
240 msgstr ""
241 "Das Argument I<eintrag> ist vom Typ I<ENTRY>, der in I<E<lt>search.hE<gt>> "
242 "wie folgt definiert wird:"
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid ""
249 "typedef struct entry {\n"
250 " char *key;\n"
251 " void *data;\n"
252 "} ENTRY;\n"
253 msgstr ""
254 "typedef struct entry {\n"
255 " char *key;\n"
256 " void *data;\n"
257 "} ENTRY;\n"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "The field I<key> points to a null-terminated string which is the search "
264 "key. The field I<data> points to data that is associated with that key."
265 msgstr ""
266 "Das Feld I<key> zeigt auf eine null-terminierte Zeichenkette, die als "
267 "Suchschlüssel dient. Das Feld I<data> zeigt auf dem Schlüssel zugeordnete "
268 "Daten."
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid ""
274 "The argument I<action> determines what B<hsearch>() does after an "
275 "unsuccessful search. This argument must either have the value B<ENTER>, "
276 "meaning insert a copy of I<item> (and return a pointer to the new hash table "
277 "entry as the function result), or the value B<FIND>, meaning that NULL "
278 "should be returned. (If I<action> is B<FIND>, then I<data> is ignored.)"
279 msgstr ""
280 "Das Argument I<aktion> bestimmt, was B<hsearch>() nach einer erfolglosen "
281 "Suche unternimmt. Dieses Argument muss einen von zwei Werten annehmen: für "
282 "den Wert B<ENTER> soll eine Kopie von I<eintrag> in die Tabelle eingefügt "
283 "werden (und ein Zeiger auf den neuen Eintrag in der Hash-Tabelle als "
284 "Ergebnis der Funktion zurückgegeben werden); B<FIND> bedeutet, dass NULL "
285 "zurückgegeben werden sollte. (Falls I<aktion> gleich B<FIND> ist, wird "
286 "I<data> ignoriert.)"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid ""
292 "The B<hsearch_r>() function is like B<hsearch>() but operates on the hash "
293 "table described by I<*htab>. The B<hsearch_r>() function differs from "
294 "B<hsearch>() in that a pointer to the found item is returned in I<*retval>, "
295 "rather than as the function result."
296 msgstr ""
297 "Die Funktion B<hsearch_r>() arbeitet wie B<hsearch>(), aber mit der durch "
298 "I<*htab> beschriebenen Hash-Tabelle. Der Unterschied zwischen B<hsearch_r>() "
299 "und B<hsearch>() ist, das der Zeiger auf den gefundenen Eintrag in "
300 "I<*rückwert> zurückgegeben wird und nicht als Funktionsergebnis."
301
302 #. type: SH
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "RETURN VALUE"
307 msgstr "RÜCKGABEWERT"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid ""
313 "B<hcreate>() and B<hcreate_r>() return nonzero on success. They return 0 "
314 "on error, with I<errno> set to indicate the error."
315 msgstr ""
316 "B<hcreate>() und B<hcreate_r>() geben bei Erfolg einen Wert ungleich null "
317 "zurück; im Fehlerfall 0, wobei I<errno> gesetzt wird, um den Fehler "
318 "anzuzeigen."
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "On success, B<hsearch>() returns a pointer to an entry in the hash table. "
325 "B<hsearch>() returns NULL on error, that is, if I<action> is B<ENTER> and "
326 "the hash table is full, or I<action> is B<FIND> and I<item> cannot be found "
327 "in the hash table. B<hsearch_r>() returns nonzero on success, and 0 on "
328 "error. In the event of an error, these two functions set I<errno> to "
329 "indicate the error."
330 msgstr ""
331 "Bei Erfolg gibt B<hsearch>() einen Zeiger auf einen Eintrag in der Hash-"
332 "Tabelle zurück. Bei einem Fehler gibt B<hsearch>() NULL zurück. Fehler "
333 "treten auf, wenn die gewünschte I<aktion> B<ENTER> und die Hash-Tabelle voll "
334 "ist oder wenn die I<aktion> B<FIND> ist und I<eintrag> nicht in der Hash-"
335 "Tabelle gefunden werden kann. Im Fehlerfall setzen diese zwei Funktionen "
336 "I<errno>, um den Fehler anzuzeigen."
337
338 #. type: SH
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "ERRORS"
343 msgstr "FEHLER"
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid ""
349 "B<hcreate_r>() and B<hdestroy_r>() can fail for the following reasons:"
350 msgstr ""
351 "B<hcreate_r>() und B<hdestroy_r>() können aus den folgenden Gründen "
352 "fehlschlagen:"
353
354 #. type: TP
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, no-wrap
358 msgid "B<EINVAL>"
359 msgstr "B<EINVAL>"
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 msgid "I<htab> is NULL."
365 msgstr "I<htab> ist NULL."
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid "B<hsearch>() and B<hsearch_r>() can fail for the following reasons:"
371 msgstr ""
372 "B<hsearch>() und B<hsearch_r>() können aus den folgenden Gründen "
373 "fehlschlagen:"
374
375 #. type: TP
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "B<ENOMEM>"
380 msgstr "B<ENOMEM>"
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "I<action> was B<ENTER>, I<key> was not found in the table, and there was no "
387 "room in the table to add a new entry."
388 msgstr ""
389 "Die I<aktion> war B<ENTER>, I<key> wurde nicht in der Tabelle gefunden und "
390 "es war nicht ausreichend Platz für einen neuen Eintrag vorhanden."
391
392 #. type: TP
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "B<ESRCH>"
397 msgstr "B<ESRCH>"
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid "I<action> was B<FIND>, and I<key> was not found in the table."
403 msgstr ""
404 "Die I<aktion> war B<FIND> und I<key> wurde nicht in der Tabelle gefunden."
405
406 #. PROX.1-2001, POSIX.1-2008
407 #. type: Plain text
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 msgid "POSIX.1 specifies only the B<ENOMEM> error."
411 msgstr "POSIX.1 beschreibt nur den Fehler B<ENOMEM>."
412
413 #. type: SH
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "ATTRIBUTES"
418 msgstr "ATTRIBUTE"
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "For an explanation of the terms used in this section, see B<attributes>(7)."
425 msgstr ""
426 "Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt "
427 "verwandten Ausdrücke."
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 "Interface"
434 msgstr "Schnittstelle"
435
436 #. type: tbl table
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "Attribute"
441 msgstr "Attribut"
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 "Value"
448 msgstr "Wert"
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 ".na\n"
455 msgstr ".na\n"
456
457 #. type: tbl table
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid ".nh\n"
462 msgstr ".nh\n"
463
464 #. type: tbl table
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid ""
469 "B<hcreate>(),\n"
470 "B<hsearch>(),\n"
471 "B<hdestroy>()"
472 msgstr ""
473 "B<hcreate>(),\n"
474 "B<hsearch>(),\n"
475 "B<hdestroy>()"
476
477 #. type: tbl table
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "Thread safety"
482 msgstr "Multithread-Fähigkeit"
483
484 #. type: tbl table
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 #, no-wrap
488 msgid "MT-Unsafe race:hsearch"
489 msgstr "MT-Unsicher race:hsearch"
490
491 #. type: tbl table
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid ""
496 "B<hcreate_r>(),\n"
497 "B<hsearch_r>(),\n"
498 "B<hdestroy_r>()"
499 msgstr ""
500 "B<hcreate_r>(),\n"
501 "B<hsearch_r>(),\n"
502 "B<hdestroy_r>()"
503
504 #. type: tbl table
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 #, no-wrap
508 msgid "MT-Safe race:htab"
509 msgstr "MT-Sicher race:htab"
510
511 #. type: SH
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "STANDARDS"
516 msgstr "STANDARDS"
517
518 #. type: TP
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, no-wrap
522 msgid "B<hcreate>()"
523 msgstr "B<hcreate>()"
524
525 #. type: TQ
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 #, no-wrap
529 msgid "B<hsearch>()"
530 msgstr "B<hsearch>()"
531
532 #. type: TQ
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 #, no-wrap
536 msgid "B<hdestroy>()"
537 msgstr "B<hdestroy>()"
538
539 #. type: Plain text
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 msgid "POSIX.1-2008."
543 msgstr "POSIX.1-2008."
544
545 #. type: TP
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 #, no-wrap
549 msgid "B<hcreate_r>()"
550 msgstr "B<hcreate_r>()"
551
552 #. type: TQ
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 #, no-wrap
556 msgid "B<hsearch_r>()"
557 msgstr "B<hsearch_r>()"
558
559 #. type: TQ
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 #, no-wrap
563 msgid "B<hdestroy_r>()"
564 msgstr "B<hdestroy_r>()"
565
566 #. type: Plain text
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 msgid "GNU."
570 msgstr "GNU."
571
572 #. type: SH
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid "HISTORY"
577 msgstr "GESCHICHTE"
578
579 #. type: Plain text
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 msgid "SVr4, POSIX.1-2001."
583 msgstr "SVr4, POSIX.1-2001."
584
585 #. type: SH
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 #, no-wrap
589 msgid "NOTES"
590 msgstr "ANMERKUNGEN"
591
592 #. type: Plain text
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 msgid ""
596 "Hash table implementations are usually more efficient when the table "
597 "contains enough free space to minimize collisions. Typically, this means "
598 "that I<nel> should be at least 25% larger than the maximum number of "
599 "elements that the caller expects to store in the table."
600 msgstr ""
601 "Implementierungen von Hash-Tabellen sind in der Regel effizienter, wenn die "
602 "Tabelle ausreichend freien Raum bereitstellt, um Kollisionen zu reduzieren. "
603 "Typischerweise bedeutet das, dass I<nel> mindestens 25% größer als sein "
604 "sollte als die maximale Anzahl von Elementen, die der Aufrufende in der "
605 "Tabelle zu speichern erwartet."
606
607 #. type: Plain text
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 msgid ""
611 "The B<hdestroy>() and B<hdestroy_r>() functions do not free the buffers "
612 "pointed to by the I<key> and I<data> elements of the hash table entries. "
613 "(It can't do this because it doesn't know whether these buffers were "
614 "allocated dynamically.) If these buffers need to be freed (perhaps because "
615 "the program is repeatedly creating and destroying hash tables, rather than "
616 "creating a single table whose lifetime matches that of the program), then "
617 "the program must maintain bookkeeping data structures that allow it to free "
618 "them."
619 msgstr ""
620 "Die Funktionen B<hdestroy>() und B<hdestroy_r>() geben die Puffer nicht "
621 "frei, auf die die Elemente I<key> und I<data> der Einträge in der Hash-"
622 "Tabelle weisen. (Das können sie nicht tun, weil sie nicht wissen, ob diese "
623 "Puffer dynamisch zugewiesen wurden.) Falls diese Puffer freigegeben werden "
624 "müssen (vielleicht, weil das Programm wiederholt Hash-Tabellen erzeugt und "
625 "wieder freigibt, anstatt eine einzelne Tabelle über die Programmlaufzeit "
626 "hinweg zu pflegen), dann muss das Programm Datenstrukturen zur "
627 "Speicherverwaltung pflegen, um die Elemente der Tabelleneinträge freigeben "
628 "zu können."
629
630 #. type: SH
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "BUGS"
635 msgstr "FEHLER"
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 msgid ""
641 "SVr4 and POSIX.1-2001 specify that I<action> is significant only for "
642 "unsuccessful searches, so that an B<ENTER> should not do anything for a "
643 "successful search. In libc and glibc (before glibc 2.3), the implementation "
644 "violates the specification, updating the I<data> for the given I<key> in "
645 "this case."
646 msgstr ""
647 "SVr4 und POSIX.1-2001 geben an, dass I<aktion> nur für erfolglose Suchen von "
648 "Bedeutung ist, so dass ein B<ENTER> nichts für eine erfolgreiche Suche tun "
649 "sollte. In Libc und Glibc (vor Version 2.3) verstößt die Implementierung "
650 "gegen die Spezifikation und aktualisiert in diesem Fall I<data> für den "
651 "gegebenen I<key>."
652
653 #. type: Plain text
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 msgid "Individual hash table entries can be added, but not deleted."
657 msgstr ""
658 "Einzelne Einträge können der Hash-Tabelle hinzugefügt, jedoch nicht gelöscht "
659 "werden."
660
661 #. type: SH
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 #, no-wrap
665 msgid "EXAMPLES"
666 msgstr "BEISPIELE"
667
668 #. type: Plain text
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 msgid ""
672 "The following program inserts 24 items into a hash table, then prints some "
673 "of them."
674 msgstr ""
675 "Das folgende Programm fügt 24 Einträge in eine Hashtabelle ein und zeigt "
676 "dann einige davon an."
677
678 #. type: Plain text
679 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
680 #: opensuse-leap-16-1 opensuse-tumbleweed
681 #, no-wrap
682 msgid ""
683 "#include E<lt>search.hE<gt>\n"
684 "#include E<lt>stdio.hE<gt>\n"
685 "#include E<lt>stdlib.hE<gt>\n"
686 "\\&\n"
687 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
688 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
689 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
690 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
691 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
692 "};\n"
693 "\\&\n"
694 "int\n"
695 "main(void)\n"
696 "{\n"
697 " ENTRY e;\n"
698 " ENTRY *ep;\n"
699 "\\&\n"
700 " hcreate(30);\n"
701 "\\&\n"
702 " for (size_t i = 0; i E<lt> 24; i++) {\n"
703 " e.key = data[i];\n"
704 " /* data is just an integer, instead of a\n"
705 " pointer to something */\n"
706 " e.data = (void *) i;\n"
707 " ep = hsearch(e, ENTER);\n"
708 " /* there should be no failures */\n"
709 " if (ep == NULL) {\n"
710 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
711 " exit(EXIT_FAILURE);\n"
712 " }\n"
713 " }\n"
714 "\\&\n"
715 " for (size_t i = 22; i E<lt> 26; i++) {\n"
716 " /* print two entries from the table, and\n"
717 " show that two are not in the table */\n"
718 " e.key = data[i];\n"
719 " ep = hsearch(e, FIND);\n"
720 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
721 " ep ? ep-E<gt>key : \"NULL\", ep ? (int) ep-E<gt>data : 0);\n"
722 " }\n"
723 " hdestroy();\n"
724 " exit(EXIT_SUCCESS);\n"
725 "}\n"
726 msgstr ""
727 "#include E<lt>search.hE<gt>\n"
728 "#include E<lt>stdio.hE<gt>\n"
729 "#include E<lt>stdlib.hE<gt>\n"
730 "\\&\n"
731 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
732 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
733 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
734 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
735 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
736 "};\n"
737 "\\&\n"
738 "int\n"
739 "main(void)\n"
740 "{\n"
741 " ENTRY e;\n"
742 " ENTRY *ep;\n"
743 "\\&\n"
744 " hcreate(30);\n"
745 "\\&\n"
746 " for (size_t i = 0; i E<lt> 24; i++) {\n"
747 " e.key = data[i];\n"
748 " /* Datum ist nur eine Ganzzahl, anstatt eines \n"
749 " Zeigers auf irgendwas */\n"
750 " e.data = (void *) i;\n"
751 " ep = hsearch(e, ENTER);\n"
752 " /* Es sollten keine Fehler auftreten */\n"
753 " if (ep == NULL) {\n"
754 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
755 " exit(EXIT_FAILURE);\n"
756 " }\n"
757 " }\n"
758 "\\&\n"
759 " for (size_t i = 22; i E<lt> 26; i++) {\n"
760 " /* Zwei Einträge aus der Tabelle ausgeben und zeigen,\n"
761 " dass zwei nicht in der Tabelle sind */\n"
762 " e.key = data[i];\n"
763 " ep = hsearch(e, FIND);\n"
764 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
765 " ep ? ep-E<gt>key : \"NULL\", ep ? (int) ep-E<gt>data : 0);\n"
766 " }\n"
767 " hdestroy();\n"
768 " exit(EXIT_SUCCESS);\n"
769 "}\n"
770
771 #. SRC END
772 #. type: SH
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 #, no-wrap
776 msgid "SEE ALSO"
777 msgstr "SIEHE AUCH"
778
779 #. type: Plain text
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 msgid "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)"
783 msgstr "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)"
784
785 #. type: TH
786 #: debian-trixie
787 #, no-wrap
788 msgid "2024-06-15"
789 msgstr "15. Juni 2024"
790
791 #. type: TH
792 #: debian-trixie
793 #, no-wrap
794 msgid "Linux man-pages 6.9.1"
795 msgstr "Linux man-pages 6.9.1"
796
797 #. type: Plain text
798 #: debian-trixie
799 msgid "Standard C library (I<libc>, I<-lc>)"
800 msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)"
801
802 #. type: Plain text
803 #: debian-trixie
804 #, no-wrap
805 msgid ""
806 "#include E<lt>search.hE<gt>\n"
807 "#include E<lt>stdio.hE<gt>\n"
808 "#include E<lt>stdlib.hE<gt>\n"
809 "\\&\n"
810 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
811 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
812 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
813 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
814 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
815 "};\n"
816 "\\&\n"
817 "int\n"
818 "main(void)\n"
819 "{\n"
820 " ENTRY e;\n"
821 " ENTRY *ep;\n"
822 "\\&\n"
823 " hcreate(30);\n"
824 "\\&\n"
825 " for (size_t i = 0; i E<lt> 24; i++) {\n"
826 " e.key = data[i];\n"
827 " /* data is just an integer, instead of a\n"
828 " pointer to something */\n"
829 " e.data = (void *) i;\n"
830 " ep = hsearch(e, ENTER);\n"
831 " /* there should be no failures */\n"
832 " if (ep == NULL) {\n"
833 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
834 " exit(EXIT_FAILURE);\n"
835 " }\n"
836 " }\n"
837 "\\&\n"
838 " for (size_t i = 22; i E<lt> 26; i++) {\n"
839 " /* print two entries from the table, and\n"
840 " show that two are not in the table */\n"
841 " e.key = data[i];\n"
842 " ep = hsearch(e, FIND);\n"
843 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
844 " ep ? ep-E<gt>key : \"NULL\", ep ? (int)(ep-E<gt>data) : 0);\n"
845 " }\n"
846 " hdestroy();\n"
847 " exit(EXIT_SUCCESS);\n"
848 "}\n"
849 msgstr ""
850 "#include E<lt>search.hE<gt>\n"
851 "#include E<lt>stdio.hE<gt>\n"
852 "#include E<lt>stdlib.hE<gt>\n"
853 "\\&\n"
854 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
855 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
856 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
857 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
858 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
859 "};\n"
860 "\\&\n"
861 "int\n"
862 "main(void)\n"
863 "{\n"
864 " ENTRY e;\n"
865 " ENTRY *ep;\n"
866 "\\&\n"
867 " hcreate(30);\n"
868 "\\&\n"
869 " for (size_t i = 0; i E<lt> 24; i++) {\n"
870 " e.key = data[i];\n"
871 " /* Datum ist nur eine Ganzzahl, anstatt eines \n"
872 " Zeigers auf irgendwas */\n"
873 " e.data = (void *) i;\n"
874 " ep = hsearch(e, ENTER);\n"
875 " /* Es sollten keine Fehler auftreten */\n"
876 " if (ep == NULL) {\n"
877 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
878 " exit(EXIT_FAILURE);\n"
879 " }\n"
880 " }\n"
881 "\\&\n"
882 " for (size_t i = 22; i E<lt> 26; i++) {\n"
883 " /* Zwei Einträge aus der Tabelle ausgeben und zeigen,\n"
884 " dass zwei nicht in der Tabelle sind */\n"
885 " e.key = data[i];\n"
886 " ep = hsearch(e, FIND);\n"
887 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
888 " ep ? ep-E<gt>key : \"NULL\", ep ? (int)(ep-E<gt>data) : 0);\n"
889 " }\n"
890 " hdestroy();\n"
891 " exit(EXIT_SUCCESS);\n"
892 "}\n"
893
894 #. type: TH
895 #: fedora-44 fedora-rawhide
896 #, no-wrap
897 msgid "2025-01-05"
898 msgstr "5. Januar 2025"
899
900 #. type: TH
901 #: fedora-44 fedora-rawhide
902 #, no-wrap
903 msgid "Linux man-pages 6.13"
904 msgstr "Linux man-pages 6.13"
905
906 #. type: TH
907 #: mageia-cauldron
908 #, no-wrap
909 msgid "Linux man-pages 6.17"
910 msgstr "Linux man-pages 6.17"
911
912 #. type: TH
913 #: opensuse-leap-16-1 opensuse-tumbleweed
914 #, no-wrap
915 msgid "Linux man-pages (unreleased)"
916 msgstr "Linux man-pages (unveröffentlicht)"