Debian Codegraph @

templates/man3/gethostbyname.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "gethostbyname"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "gethostbyname, gethostbyaddr, sethostent, gethostent, endhostent, h_errno, "
51 "herror, hstrerror, gethostbyaddr_r, gethostbyname2, gethostbyname2_r, "
52 "gethostbyname_r, gethostent_r - get network host entry"
53 msgstr ""
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr ""
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr ""
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr ""
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>netdb.hE<gt>>\n"
80 msgstr ""
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<void sethostent(int >I<stayopen>B<);>\n"
88 "B<void endhostent(void);>\n"
89 msgstr ""
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "B<[[deprecated]] extern int h_errno;>\n"
96 msgstr ""
97
98 #. type: Plain text
99 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
100 #: opensuse-tumbleweed
101 #, no-wrap
102 msgid ""
103 "B<[[deprecated]] struct hostent *gethostbyname(const char *>I<name>B<);>\n"
104 "B<[[deprecated]] struct hostent *gethostbyaddr(>socklen_t size;\n"
105 "B< const void >I<addr>B<[>I<size>B<],>\n"
106 "B< socklen_t >I<size>B<, int >I<type>B<);>\n"
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, no-wrap
113 msgid ""
114 "B<[[deprecated]] void herror(const char *>I<s>B<);>\n"
115 "B<[[deprecated]] const char *hstrerror(int >I<err>B<);>\n"
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 #, no-wrap
122 msgid ""
123 "/* System V/POSIX extension */\n"
124 "B<struct hostent *gethostent(void);>\n"
125 msgstr ""
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 #, no-wrap
131 msgid ""
132 "/* GNU extensions */\n"
133 "B<[[deprecated]]>\n"
134 "B<struct hostent *gethostbyname2(const char *>I<name>B<, int >I<af>B<);>\n"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
139 #: opensuse-tumbleweed
140 #, no-wrap
141 msgid ""
142 "B<int gethostent_r(>size_t bufsize;\n"
143 "B< struct hostent *restrict >I<ret>B<,>\n"
144 "B< char >I<buf>B<[restrict >I<bufsize>B<], size_t >I<bufsize>B<,>\n"
145 "B< struct hostent **restrict >I<result>B<,>\n"
146 "B< int *restrict >I<h_errnop>B<);>\n"
147 msgstr ""
148
149 #. type: Plain text
150 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
151 #: opensuse-tumbleweed
152 #, no-wrap
153 msgid ""
154 "B<[[deprecated]]>\n"
155 "B<int gethostbyaddr_r(>socklen_t size, size_t bufsize;\n"
156 "B< const void >I<addr>B<[restrict >I<size>B<], socklen_t >I<size>B<,>\n"
157 "B< int >I<type>B<,>\n"
158 "B< struct hostent *restrict >I<ret>B<,>\n"
159 "B< char >I<buf>B<[restrict >I<bufsize>B<], size_t >I<bufsize>B<,>\n"
160 "B< struct hostent **restrict >I<result>B<,>\n"
161 "B< int *restrict >I<h_errnop>B<);>\n"
162 "B<[[deprecated]]>\n"
163 "B<int gethostbyname_r(>size_t bufsize;\n"
164 "B< const char *restrict >I<name>B<,>\n"
165 "B< struct hostent *restrict >I<ret>B<,>\n"
166 "B< char >I<buf>B<[restrict >I<bufsize>B<], size_t >I<bufsize>B<,>\n"
167 "B< struct hostent **restrict >I<result>B<,>\n"
168 "B< int *restrict >I<h_errnop>B<);>\n"
169 "B<[[deprecated]]>\n"
170 "B<int gethostbyname2_r(>size_t bufsize;\n"
171 "B< const char *restrict >I<name>B<, int >I<af,>\n"
172 "B< struct hostent *restrict >I<ret>B<,>\n"
173 "B< char >I<buf>B<[restrict >I<bufsize>B<], size_t >I<bufsize>B<,>\n"
174 "B< struct hostent **restrict >I<result>B<,>\n"
175 "B< int *restrict >I<h_errnop>B<);>\n"
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
183 msgstr ""
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 "B<gethostbyname2>(), B<gethostent_r>(), B<gethostbyaddr_r>(), "
190 "B<gethostbyname_r>(), B<gethostbyname2_r>():"
191 msgstr ""
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid ""
198 " Since glibc 2.19:\n"
199 " _DEFAULT_SOURCE\n"
200 " glibc up to and including 2.19:\n"
201 " _BSD_SOURCE || _SVID_SOURCE\n"
202 msgstr ""
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid "B<herror>(), B<hstrerror>():"
208 msgstr ""
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid ""
215 " Since glibc 2.19:\n"
216 " _DEFAULT_SOURCE\n"
217 " glibc 2.8 to glibc 2.19:\n"
218 " _BSD_SOURCE || _SVID_SOURCE\n"
219 " Before glibc 2.8:\n"
220 " none\n"
221 msgstr ""
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid "B<h_errno>:"
227 msgstr ""
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid ""
234 " Since glibc 2.19\n"
235 " _DEFAULT_SOURCE || _POSIX_C_SOURCE E<lt> 200809L\n"
236 " glibc 2.12 to glibc 2.19:\n"
237 " _BSD_SOURCE || _SVID_SOURCE || _POSIX_C_SOURCE E<lt> 200809L\n"
238 " Before glibc 2.12:\n"
239 " none\n"
240 msgstr ""
241
242 #. type: SH
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "DESCRIPTION"
247 msgstr ""
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 msgid ""
253 "The B<gethostbyname*>(), B<gethostbyaddr*>(), B<herror>(), and "
254 "B<hstrerror>() functions are obsolete. Applications should use "
255 "B<getaddrinfo>(3), B<getnameinfo>(3), and B<gai_strerror>(3) instead."
256 msgstr ""
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "The B<sethostent>() function specifies, if I<stayopen> is true (1), that a "
263 "connected TCP socket should be used for the name server queries and that the "
264 "connection should remain open during successive queries. Otherwise, name "
265 "server queries will use UDP datagrams."
266 msgstr ""
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "The B<endhostent>() function ends the use of a TCP connection for name "
273 "server queries."
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "The B<gethostbyname>() function returns a structure of type I<hostent> for "
281 "the given host I<name>. Here I<name> is either a hostname or an IPv4 "
282 "address in standard dot notation (as for B<inet_addr>(3)). If I<name> is an "
283 "IPv4 address, no lookup is performed and B<gethostbyname>() simply copies "
284 "I<name> into the I<h_name> field and its I<struct in_addr> equivalent into "
285 "the I<h_addr_list[0]> field of the returned I<hostent> structure. If "
286 "I<name> doesn't end in a dot and the environment variable B<HOSTALIASES> is "
287 "set, the alias file pointed to by B<HOSTALIASES> will first be searched for "
288 "I<name> (see B<hostname>(7) for the file format). The current domain and "
289 "its parents are searched unless I<name> ends in a dot."
290 msgstr ""
291
292 #. type: Plain text
293 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
294 #: opensuse-tumbleweed
295 msgid ""
296 "The B<gethostbyaddr>() function returns a structure of type I<hostent> for "
297 "the given host address I<addr> of size I<size> and address type I<type>. "
298 "Valid address types are B<AF_INET> and B<AF_INET6> (defined in I<E<lt>sys/"
299 "socket.hE<gt>>). The host address argument is a pointer to a struct of a "
300 "type depending on the address type, for example a I<struct\\ in_addr\\ *> "
301 "(probably obtained via a call to B<inet_addr>(3)) for address type "
302 "B<AF_INET>."
303 msgstr ""
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid ""
309 "The (obsolete) B<herror>() function prints the error message associated "
310 "with the current value of I<h_errno> on I<stderr>."
311 msgstr ""
312
313 #. type: Plain text
314 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
315 #: opensuse-tumbleweed
316 msgid ""
317 "The (obsolete) B<hstrerror>() function takes an error number (typically "
318 "I<h_errno>) and returns the corresponding message string."
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "The domain name queries carried out by B<gethostbyname>() and "
326 "B<gethostbyaddr>() rely on the Name Service Switch (B<nsswitch.conf>(5)) "
327 "configured sources or a local name server (B<named>(8)). The default action "
328 "is to query the Name Service Switch (B<nsswitch.conf>(5)) configured "
329 "sources, failing that, a local name server (B<named>(8))."
330 msgstr ""
331
332 #. type: SS
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "Historical"
337 msgstr ""
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid ""
343 "The B<nsswitch.conf>(5) file is the modern way of controlling the order of "
344 "host lookups."
345 msgstr ""
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "In glibc 2.4 and earlier, the I<order> keyword was used to control the order "
352 "of host lookups as defined in I</etc/host.conf> (B<host.conf>(5))."
353 msgstr ""
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid "The I<hostent> structure is defined in I<E<lt>netdb.hE<gt>> as follows:"
359 msgstr ""
360
361 #. type: Plain text
362 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
363 #: opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid ""
366 "struct hostent {\n"
367 " char *h_name; /* official name of host */\n"
368 " char **h_aliases; /* alias list */\n"
369 " int h_addrtype; /* host address type */\n"
370 " int h_length; /* size of address */\n"
371 " char **h_addr_list; /* list of addresses */\n"
372 "}\n"
373 "#define h_addr h_addr_list[0] /* for backward compatibility */\n"
374 msgstr ""
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid "The members of the I<hostent> structure are:"
380 msgstr ""
381
382 #. type: TP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "I<h_name>"
387 msgstr ""
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid "The official name of the host."
393 msgstr ""
394
395 #. type: TP
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "I<h_aliases>"
400 msgstr ""
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid ""
406 "An array of alternative names for the host, terminated by a null pointer."
407 msgstr ""
408
409 #. type: TP
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "I<h_addrtype>"
414 msgstr ""
415
416 #. type: Plain text
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 msgid "The type of address; always B<AF_INET> or B<AF_INET6> at present."
420 msgstr ""
421
422 #. type: TP
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "I<h_length>"
427 msgstr ""
428
429 #. type: Plain text
430 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
431 #: opensuse-leap-16-1 opensuse-tumbleweed
432 msgid "The size of the address in bytes."
433 msgstr ""
434
435 #. type: TP
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "I<h_addr_list>"
440 msgstr ""
441
442 #. type: Plain text
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 msgid ""
446 "An array of pointers to network addresses for the host (in network byte "
447 "order), terminated by a null pointer."
448 msgstr ""
449
450 #. type: TP
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid "I<h_addr>"
455 msgstr ""
456
457 #. type: Plain text
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 msgid "The first address in I<h_addr_list> for backward compatibility."
461 msgstr ""
462
463 #. type: SH
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 #, no-wrap
467 msgid "RETURN VALUE"
468 msgstr ""
469
470 #. type: Plain text
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 msgid ""
474 "The B<gethostbyname>() and B<gethostbyaddr>() functions return the "
475 "I<hostent> structure or a null pointer if an error occurs. On error, the "
476 "I<h_errno> variable holds an error number. When non-NULL, the return value "
477 "may point at static data, see the notes below."
478 msgstr ""
479
480 #. type: SH
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "ERRORS"
485 msgstr ""
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 msgid "The variable I<h_errno> can have the following values:"
491 msgstr ""
492
493 #. type: TP
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, no-wrap
497 msgid "B<HOST_NOT_FOUND>"
498 msgstr ""
499
500 #. type: Plain text
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 msgid "The specified host is unknown."
504 msgstr ""
505
506 #. type: TP
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 #, no-wrap
510 msgid "B<NO_DATA>"
511 msgstr ""
512
513 #. type: Plain text
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 msgid ""
517 "The requested name is valid but does not have an IP address. Another type "
518 "of request to the name server for this domain may return an answer. The "
519 "constant B<NO_ADDRESS> is a synonym for B<NO_DATA>."
520 msgstr ""
521
522 #. type: TP
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid "B<NO_RECOVERY>"
527 msgstr ""
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid "A nonrecoverable name server error occurred."
533 msgstr ""
534
535 #. type: TP
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 #, no-wrap
539 msgid "B<TRY_AGAIN>"
540 msgstr ""
541
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid ""
546 "A temporary error occurred on an authoritative name server. Try again later."
547 msgstr ""
548
549 #. type: SH
550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
552 #, no-wrap
553 msgid "FILES"
554 msgstr ""
555
556 #. type: TP
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 #, no-wrap
560 msgid "I</etc/host.conf>"
561 msgstr ""
562
563 #. type: Plain text
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 msgid "resolver configuration file"
567 msgstr ""
568
569 #. type: TP
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 #, no-wrap
573 msgid "I</etc/hosts>"
574 msgstr ""
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 "host database file"
580 msgstr ""
581
582 #. type: TP
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 #, no-wrap
586 msgid "I</etc/nsswitch.conf>"
587 msgstr ""
588
589 #. type: Plain text
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 msgid "name service switch configuration"
593 msgstr ""
594
595 #. type: SH
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 #, no-wrap
599 msgid "ATTRIBUTES"
600 msgstr ""
601
602 #. type: Plain text
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 msgid ""
606 "For an explanation of the terms used in this section, see B<attributes>(7)."
607 msgstr ""
608
609 #. type: tbl table
610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
612 #, no-wrap
613 msgid "Interface"
614 msgstr ""
615
616 #. type: tbl table
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 #, no-wrap
620 msgid "Attribute"
621 msgstr ""
622
623 #. type: tbl table
624 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
625 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
626 #, no-wrap
627 msgid "Value"
628 msgstr ""
629
630 #. type: tbl table
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid ".na\n"
635 msgstr ""
636
637 #. type: tbl table
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 #, no-wrap
641 msgid ".nh\n"
642 msgstr ""
643
644 #. type: TP
645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
647 #, no-wrap
648 msgid "B<gethostbyname>()"
649 msgstr ""
650
651 #. type: tbl table
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 #, no-wrap
655 msgid "Thread safety"
656 msgstr ""
657
658 #. type: tbl table
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 #, no-wrap
662 msgid ""
663 "MT-Unsafe race:hostbyname env\n"
664 "locale"
665 msgstr ""
666
667 #. type: TQ
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 #, no-wrap
671 msgid "B<gethostbyaddr>()"
672 msgstr ""
673
674 #. type: tbl table
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid ""
679 "MT-Unsafe race:hostbyaddr env\n"
680 "locale"
681 msgstr ""
682
683 #. type: tbl table
684 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
685 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
686 #, no-wrap
687 msgid ""
688 "B<sethostent>(),\n"
689 "B<endhostent>(),\n"
690 "B<gethostent_r>()"
691 msgstr ""
692
693 #. type: tbl table
694 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
695 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
696 #, no-wrap
697 msgid ""
698 "MT-Unsafe race:hostent env\n"
699 "locale"
700 msgstr ""
701
702 #. type: tbl table
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 #, no-wrap
706 msgid ""
707 "B<herror>(),\n"
708 "B<hstrerror>()"
709 msgstr ""
710
711 #. type: tbl table
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 #, no-wrap
715 msgid "MT-Safe"
716 msgstr ""
717
718 #. type: TQ
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "B<gethostent>()"
723 msgstr ""
724
725 #. type: tbl table
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 #, no-wrap
729 msgid ""
730 "MT-Unsafe race:hostent\n"
731 "race:hostentbuf env locale"
732 msgstr ""
733
734 #. type: tbl table
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 #, no-wrap
738 msgid "B<gethostbyname2>()"
739 msgstr ""
740
741 #. type: tbl table
742 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
743 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
744 #, no-wrap
745 msgid ""
746 "MT-Unsafe race:hostbyname2\n"
747 "env locale"
748 msgstr ""
749
750 #. type: tbl table
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 #, no-wrap
754 msgid ""
755 "B<gethostbyaddr_r>(),\n"
756 "B<gethostbyname_r>(),\n"
757 "B<gethostbyname2_r>()"
758 msgstr ""
759
760 #. type: tbl table
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 #, no-wrap
764 msgid "MT-Safe env locale"
765 msgstr ""
766
767 #. type: Plain text
768 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
769 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
770 msgid ""
771 "In the above table, I<hostent> in I<race:hostent> signifies that if any of "
772 "the functions B<sethostent>(), B<gethostent>(), B<gethostent_r>(), or B<\\"
773 "%endhostent>() are used in parallel in different threads of a program, then "
774 "data races could occur."
775 msgstr ""
776
777 #. type: SH
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 #, no-wrap
781 msgid "STANDARDS"
782 msgstr ""
783
784 #. type: TP
785 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
786 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
787 #, no-wrap
788 msgid "B<sethostent>()"
789 msgstr ""
790
791 #. type: TQ
792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
794 #, no-wrap
795 msgid "B<endhostent>()"
796 msgstr ""
797
798 #. type: Plain text
799 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
800 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
801 msgid "POSIX.1-2008."
802 msgstr ""
803
804 #. type: TP
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 #, no-wrap
808 msgid "B<gethostent_r>()"
809 msgstr ""
810
811 #. type: Plain text
812 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
813 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
814 msgid "GNU."
815 msgstr ""
816
817 #. type: TP
818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
820 #, no-wrap
821 msgid "Others:"
822 msgstr ""
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 msgid "None."
828 msgstr ""
829
830 #. type: SH
831 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
832 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
833 #, no-wrap
834 msgid "HISTORY"
835 msgstr ""
836
837 #. type: Plain text
838 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
839 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
840 msgid "POSIX.1-2001."
841 msgstr ""
842
843 #. type: TQ
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 #, no-wrap
847 msgid "I<h_errno>"
848 msgstr ""
849
850 #. type: Plain text
851 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
852 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
853 msgid ""
854 "Marked obsolescent in POSIX.1-2001. Removed in POSIX.1-2008, recommending "
855 "the use of B<getaddrinfo>(3) and B<getnameinfo>(3) instead."
856 msgstr ""
857
858 #. type: SH
859 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
860 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
861 #, no-wrap
862 msgid "NOTES"
863 msgstr ""
864
865 #. type: Plain text
866 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
867 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
868 msgid ""
869 "The functions B<gethostbyname>() and B<gethostbyaddr>() may return "
870 "pointers to static data, which may be overwritten by later calls. Copying "
871 "the I<struct hostent> does not suffice, since it contains pointers; a deep "
872 "copy is required."
873 msgstr ""
874
875 #. type: Plain text
876 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
877 #: opensuse-leap-16-1 opensuse-tumbleweed
878 msgid ""
879 "In the original BSD implementation the I<size> argument of "
880 "B<gethostbyname>() was an I<int>. The SUSv2 standard is buggy and declares "
881 "the I<size> argument of B<gethostbyaddr>() to be of type I<size_t>. (That "
882 "is wrong, because it has to be I<int>, and I<size_t> is not. POSIX.1-2001 "
883 "makes it I<socklen_t>, which is OK.) See also B<accept>(2)."
884 msgstr ""
885
886 #. type: Plain text
887 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
888 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
889 msgid ""
890 "The BSD prototype for B<gethostbyaddr>() uses I<const char\\ *> for the "
891 "first argument."
892 msgstr ""
893
894 #. type: SS
895 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
896 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
897 #, no-wrap
898 msgid "System V/POSIX extension"
899 msgstr ""
900
901 #. e.g., Linux, FreeBSD, UnixWare, HP-UX
902 #. e.g., FreeBSD, AIX
903 #. type: Plain text
904 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
905 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
906 msgid ""
907 "POSIX requires the B<gethostent>() call, which should return the next entry "
908 "in the host data base. When using DNS/BIND this does not make much sense, "
909 "but it may be reasonable if the host data base is a file that can be read "
910 "line by line. On many systems, a routine of this name reads from the file "
911 "I</etc/hosts>. It may be available only when the library was built without "
912 "DNS support. The glibc version will ignore ipv6 entries. This function is "
913 "not reentrant, and glibc adds a reentrant version B<gethostent_r>()."
914 msgstr ""
915
916 #. type: SS
917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
919 #, no-wrap
920 msgid "GNU extensions"
921 msgstr ""
922
923 #. type: Plain text
924 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
925 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
926 msgid ""
927 "glibc2 also has a B<gethostbyname2>() that works like B<gethostbyname>(), "
928 "but permits to specify the address family to which the address must belong."
929 msgstr ""
930
931 #. type: Plain text
932 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
933 #: opensuse-leap-16-1 opensuse-tumbleweed
934 msgid ""
935 "glibc2 also has reentrant versions B<gethostent_r>(), B<gethostbyaddr_r>(), "
936 "B<gethostbyname_r>(), and B<gethostbyname2_r>(). The caller supplies a "
937 "I<hostent> structure I<ret> which will be filled in on success, and a "
938 "temporary work buffer I<buf> of size I<bufsize>. After the call, I<result> "
939 "will point to the result on success. In case of an error or if no entry is "
940 "found I<result> will be NULL. The functions return 0 on success and a "
941 "nonzero error number on failure. In addition to the errors returned by the "
942 "nonreentrant versions of these functions, if I<buf> is too small, the "
943 "functions will return B<ERANGE>, and the call should be retried with a "
944 "larger buffer. The global variable I<h_errno> is not modified, but the "
945 "address of a variable in which to store error numbers is passed in "
946 "I<h_errnop>."
947 msgstr ""
948
949 #. type: SH
950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
952 #, no-wrap
953 msgid "BUGS"
954 msgstr ""
955
956 #. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482973
957 #. type: Plain text
958 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
959 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
960 msgid ""
961 "B<gethostbyname>() does not recognize components of a dotted IPv4 address "
962 "string that are expressed in hexadecimal."
963 msgstr ""
964
965 #. type: SH
966 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
967 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
968 #, no-wrap
969 msgid "SEE ALSO"
970 msgstr ""
971
972 #. .BR getipnodebyaddr (3),
973 #. .BR getipnodebyname (3),
974 #. type: Plain text
975 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
976 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
977 msgid ""
978 "B<getaddrinfo>(3), B<getnameinfo>(3), B<inet>(3), B<inet_ntop>(3), "
979 "B<inet_pton>(3), B<resolver>(3), B<hosts>(5), B<nsswitch.conf>(5), "
980 "B<hostname>(7), B<named>(8)"
981 msgstr ""
982
983 #. type: TH
984 #: debian-trixie
985 #, no-wrap
986 msgid "2024-05-02"
987 msgstr ""
988
989 #. type: TH
990 #: debian-trixie
991 #, no-wrap
992 msgid "Linux man-pages 6.9.1"
993 msgstr ""
994
995 #. type: Plain text
996 #: debian-trixie
997 msgid "Standard C library (I<libc>, I<-lc>)"
998 msgstr ""
999
1000 #. type: Plain text
1001 #: debian-trixie
1002 #, no-wrap
1003 msgid ""
1004 "B<[[deprecated]] struct hostent *gethostbyname(const char *>I<name>B<);>\n"
1005 "B<[[deprecated]] struct hostent *gethostbyaddr(const void >I<addr>B<[.>I<len>B<],>\n"
1006 "B< socklen_t >I<len>B<, int >I<type>B<);>\n"
1007 msgstr ""
1008
1009 #. type: Plain text
1010 #: debian-trixie
1011 #, no-wrap
1012 msgid ""
1013 "B<int gethostent_r(struct hostent *restrict >I<ret>B<,>\n"
1014 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
1015 "B< struct hostent **restrict >I<result>B<,>\n"
1016 "B< int *restrict >I<h_errnop>B<);>\n"
1017 msgstr ""
1018
1019 #. type: Plain text
1020 #: debian-trixie
1021 #, no-wrap
1022 msgid ""
1023 "B<[[deprecated]]>\n"
1024 "B<int gethostbyaddr_r(const void >I<addr>B<[restrict .>I<len>B<], socklen_t >I<len>B<,>\n"
1025 "B< int >I<type>B<,>\n"
1026 "B< struct hostent *restrict >I<ret>B<,>\n"
1027 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
1028 "B< struct hostent **restrict >I<result>B<,>\n"
1029 "B< int *restrict >I<h_errnop>B<);>\n"
1030 "B<[[deprecated]]>\n"
1031 "B<int gethostbyname_r(const char *restrict >I<name>B<,>\n"
1032 "B< struct hostent *restrict >I<ret>B<,>\n"
1033 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
1034 "B< struct hostent **restrict >I<result>B<,>\n"
1035 "B< int *restrict >I<h_errnop>B<);>\n"
1036 "B<[[deprecated]]>\n"
1037 "B<int gethostbyname2_r(const char *restrict >I<name>B<, int >I<af,>\n"
1038 "B< struct hostent *restrict >I<ret>B<,>\n"
1039 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
1040 "B< struct hostent **restrict >I<result>B<,>\n"
1041 "B< int *restrict >I<h_errnop>B<);>\n"
1042 msgstr ""
1043
1044 #. type: Plain text
1045 #: debian-trixie
1046 msgid ""
1047 "The B<gethostbyaddr>() function returns a structure of type I<hostent> for "
1048 "the given host address I<addr> of length I<len> and address type I<type>. "
1049 "Valid address types are B<AF_INET> and B<AF_INET6> (defined in I<E<lt>sys/"
1050 "socket.hE<gt>>). The host address argument is a pointer to a struct of a "
1051 "type depending on the address type, for example a I<struct in_addr *> "
1052 "(probably obtained via a call to B<inet_addr>(3)) for address type "
1053 "B<AF_INET>."
1054 msgstr ""
1055
1056 #. type: Plain text
1057 #: debian-trixie fedora-44 fedora-rawhide
1058 msgid ""
1059 "The (obsolete) B<hstrerror>() function takes an error number (typically "
1060 "I<h_errno>) and returns the corresponding message string."
1061 msgstr ""
1062
1063 #. type: Plain text
1064 #: debian-trixie
1065 #, no-wrap
1066 msgid ""
1067 "struct hostent {\n"
1068 " char *h_name; /* official name of host */\n"
1069 " char **h_aliases; /* alias list */\n"
1070 " int h_addrtype; /* host address type */\n"
1071 " int h_length; /* length of address */\n"
1072 " char **h_addr_list; /* list of addresses */\n"
1073 "}\n"
1074 "#define h_addr h_addr_list[0] /* for backward compatibility */\n"
1075 msgstr ""
1076
1077 #. type: Plain text
1078 #: debian-trixie
1079 msgid "The length of the address in bytes."
1080 msgstr ""
1081
1082 #. type: Plain text
1083 #: debian-trixie
1084 msgid ""
1085 "In the original BSD implementation the I<len> argument of "
1086 "B<gethostbyname>() was an I<int>. The SUSv2 standard is buggy and declares "
1087 "the I<len> argument of B<gethostbyaddr>() to be of type I<size_t>. (That "
1088 "is wrong, because it has to be I<int>, and I<size_t> is not. POSIX.1-2001 "
1089 "makes it I<socklen_t>, which is OK.) See also B<accept>(2)."
1090 msgstr ""
1091
1092 #. type: Plain text
1093 #: debian-trixie
1094 msgid ""
1095 "glibc2 also has reentrant versions B<gethostent_r>(), B<gethostbyaddr_r>(), "
1096 "B<gethostbyname_r>(), and B<gethostbyname2_r>(). The caller supplies a "
1097 "I<hostent> structure I<ret> which will be filled in on success, and a "
1098 "temporary work buffer I<buf> of size I<buflen>. After the call, I<result> "
1099 "will point to the result on success. In case of an error or if no entry is "
1100 "found I<result> will be NULL. The functions return 0 on success and a "
1101 "nonzero error number on failure. In addition to the errors returned by the "
1102 "nonreentrant versions of these functions, if I<buf> is too small, the "
1103 "functions will return B<ERANGE>, and the call should be retried with a "
1104 "larger buffer. The global variable I<h_errno> is not modified, but the "
1105 "address of a variable in which to store error numbers is passed in "
1106 "I<h_errnop>."
1107 msgstr ""
1108
1109 #. type: TH
1110 #: fedora-44 fedora-rawhide
1111 #, no-wrap
1112 msgid "2024-12-24"
1113 msgstr ""
1114
1115 #. type: TH
1116 #: fedora-44 fedora-rawhide
1117 #, no-wrap
1118 msgid "Linux man-pages 6.13"
1119 msgstr ""
1120
1121 #. type: Plain text
1122 #: fedora-44 fedora-rawhide
1123 #, no-wrap
1124 msgid ""
1125 "B<[[deprecated]] struct hostent *gethostbyname(const char *>I<name>B<);>\n"
1126 "B<[[deprecated]] struct hostent *gethostbyaddr(const void >I<addr>B<[.>I<size>B<],>\n"
1127 "B< socklen_t >I<size>B<, int >I<type>B<);>\n"
1128 msgstr ""
1129
1130 #. type: Plain text
1131 #: fedora-44 fedora-rawhide
1132 #, no-wrap
1133 msgid ""
1134 "B<int gethostent_r(struct hostent *restrict >I<ret>B<,>\n"
1135 "B< char >I<buf>B<[restrict .>I<bufsize>B<], size_t >I<bufsize>B<,>\n"
1136 "B< struct hostent **restrict >I<result>B<,>\n"
1137 "B< int *restrict >I<h_errnop>B<);>\n"
1138 msgstr ""
1139
1140 #. type: Plain text
1141 #: fedora-44 fedora-rawhide
1142 #, no-wrap
1143 msgid ""
1144 "B<[[deprecated]]>\n"
1145 "B<int gethostbyaddr_r(const void >I<addr>B<[restrict .>I<size>B<], socklen_t >I<size>B<,>\n"
1146 "B< int >I<type>B<,>\n"
1147 "B< struct hostent *restrict >I<ret>B<,>\n"
1148 "B< char >I<buf>B<[restrict .>I<bufsize>B<], size_t >I<bufsize>B<,>\n"
1149 "B< struct hostent **restrict >I<result>B<,>\n"
1150 "B< int *restrict >I<h_errnop>B<);>\n"
1151 "B<[[deprecated]]>\n"
1152 "B<int gethostbyname_r(const char *restrict >I<name>B<,>\n"
1153 "B< struct hostent *restrict >I<ret>B<,>\n"
1154 "B< char >I<buf>B<[restrict .>I<bufsize>B<], size_t >I<bufsize>B<,>\n"
1155 "B< struct hostent **restrict >I<result>B<,>\n"
1156 "B< int *restrict >I<h_errnop>B<);>\n"
1157 "B<[[deprecated]]>\n"
1158 "B<int gethostbyname2_r(const char *restrict >I<name>B<, int >I<af,>\n"
1159 "B< struct hostent *restrict >I<ret>B<,>\n"
1160 "B< char >I<buf>B<[restrict .>I<bufsize>B<], size_t >I<bufsize>B<,>\n"
1161 "B< struct hostent **restrict >I<result>B<,>\n"
1162 "B< int *restrict >I<h_errnop>B<);>\n"
1163 msgstr ""
1164
1165 #. type: Plain text
1166 #: fedora-44 fedora-rawhide
1167 msgid ""
1168 "The B<gethostbyaddr>() function returns a structure of type I<hostent> for "
1169 "the given host address I<addr> of size I<len> and address type I<type>. "
1170 "Valid address types are B<AF_INET> and B<AF_INET6> (defined in I<E<lt>sys/"
1171 "socket.hE<gt>>). The host address argument is a pointer to a struct of a "
1172 "type depending on the address type, for example a I<struct in_addr *> "
1173 "(probably obtained via a call to B<inet_addr>(3)) for address type "
1174 "B<AF_INET>."
1175 msgstr ""
1176
1177 #. type: TH
1178 #: mageia-cauldron
1179 #, no-wrap
1180 msgid "Linux man-pages 6.17"
1181 msgstr ""
1182
1183 #. type: TH
1184 #: opensuse-leap-16-1 opensuse-tumbleweed
1185 #, no-wrap
1186 msgid "Linux man-pages (unreleased)"
1187 msgstr ""