Debian Codegraph @

po/cs/man2/bind.2.po

raw
1 # Czech translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Pavel Heimlich <[email protected]>, 2009.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:19+0200\n"
9 "PO-Revision-Date: 2025-09-19 12:15+0200\n"
10 "Last-Translator: Vojtěch Zeisek <[email protected]>\n"
11 "Language-Team: Czech <[email protected]>\n"
12 "Language: cs\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "X-Generator: Lokalize 25.08.1\n"
17 "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
18 "#-#-#-#-# min-002-occurences.po (manpages-l10n) #-#-#-#-# \n"
19 "#-#-#-#-# min-003-occurences.po (manpages-l10n) #-#-#-#-# \n"
20 "#-#-#-#-# min-004-occurences.po (manpages-l10n) #-#-#-#-# \n"
21 "#-#-#-#-# min-010-occurences.po (manpages-l10n) #-#-#-#-# \n"
22 "#-#-#-#-# min-020-occurences.po (manpages-l10n) #-#-#-#-# \n"
23 "#-#-#-#-# min-100-occurences.po (manpages-l10n) #-#-#-#-# \n"
24 "#-#-#-#-# min-002-occurences.po (manpages-l10n) #-#-#-#-# \n"
25 "#-#-#-#-# min-003-occurences.po (manpages-l10n) #-#-#-#-# \n"
26 "#-#-#-#-# min-004-occurences.po (manpages-l10n) #-#-#-#-# \n"
27 "#-#-#-#-# min-010-occurences.po (manpages-l10n) #-#-#-#-# \n"
28 "#-#-#-#-# min-020-occurences.po (manpages-l10n) #-#-#-#-# \n"
29 "#-#-#-#-# min-100-occurences.po (manpages-l10n) #-#-#-#-# \n"
30 "#-#-#-#-# min-002-occurences.po (manpages-l10n) #-#-#-#-# \n"
31 "#-#-#-#-# min-003-occurences.po (manpages-l10n) #-#-#-#-# \n"
32 "#-#-#-#-# min-004-occurences.po (manpages-l10n) #-#-#-#-# \n"
33 "#-#-#-#-# min-010-occurences.po (manpages-l10n) #-#-#-#-# \n"
34 "#-#-#-#-# min-020-occurences.po (manpages-l10n) #-#-#-#-# \n"
35 "#-#-#-#-# min-100-occurences.po (manpages-l10n) #-#-#-#-# \n"
36 "#-#-#-#-# min-002-occurences.po (manpages-l10n) #-#-#-#-# \n"
37 "#-#-#-#-# min-003-occurences.po (manpages-l10n) #-#-#-#-# \n"
38 "#-#-#-#-# min-004-occurences.po (manpages-l10n) #-#-#-#-# \n"
39 "#-#-#-#-# min-010-occurences.po (manpages-l10n) #-#-#-#-# \n"
40 "#-#-#-#-# min-020-occurences.po (manpages-l10n) #-#-#-#-# \n"
41 "#-#-#-#-# min-100-occurences.po (manpages-l10n) #-#-#-#-# \n"
42
43 #. type: TH
44 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
45 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
46 #, no-wrap
47 msgid "bind"
48 msgstr "bind"
49
50 #. type: TH
51 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
52 #: opensuse-tumbleweed
53 #, no-wrap
54 msgid "2026-02-08"
55 msgstr "8. února 2026"
56
57 #. type: TH
58 #: archlinux debian-unstable
59 #, fuzzy, no-wrap
60 #| msgid "Linux man-pages 6.17"
61 msgid "Linux man-pages 6.18"
62 msgstr "Linux man-pages 6.17"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "NAME"
69 msgstr "JMÉNO"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 msgid "bind - bind a name to a socket"
75 msgstr ""
76
77 #. type: SH
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "LIBRARY"
82 msgstr "KNIHOVNA"
83
84 #. type: Plain text
85 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
86 #: opensuse-leap-16-1 opensuse-tumbleweed
87 msgid "Standard C library (I<libc>,\\ I<-lc>)"
88 msgstr "Standardní knihovna C (I<libc>,\\ I<-lc>)"
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "SYNOPSIS"
95 msgstr "POUŽITÍ"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
102 msgstr "B<#include E<lt>sys/socket.hE<gt>>\n"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid ""
109 "B<int bind(int >I<sockfd>B<, const struct sockaddr *>I<addr>B<,>\n"
110 "B< socklen_t >I<addrlen>B<);>\n"
111 msgstr ""
112 "B<int bind(int >I<sockfd>B<, const struct sockaddr *>I<addr>B<,>\n"
113 "B< socklen_t >I<addrlen>B<);>\n"
114
115 #. type: SH
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid "DESCRIPTION"
120 msgstr "POPIS"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "When a socket is created with B<socket>(2), it exists in a name space "
127 "(address family) but has no address assigned to it. B<bind>() assigns the "
128 "address specified by I<addr> to the socket referred to by the file "
129 "descriptor I<sockfd>. I<addrlen> specifies the size, in bytes, of the "
130 "address structure pointed to by I<addr>. Traditionally, this operation is "
131 "called \\[lq]assigning a name to a socket\\[rq]."
132 msgstr ""
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 "It is normally necessary to assign a local address using B<bind>() before a "
139 "B<SOCK_STREAM> socket may receive connections (see B<accept>(2))."
140 msgstr ""
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 rules used in name binding vary between address families. Consult the "
147 "manual entries in Section 7 for detailed information. For B<AF_INET>, see "
148 "B<ip>(7); for B<AF_INET6>, see B<ipv6>(7); for B<AF_UNIX>, see B<unix>(7); "
149 "for B<AF_APPLETALK>, see B<ddp>(7); for B<AF_PACKET>, see B<packet>(7); for "
150 "B<AF_X25>, see B<x25>(7); and for B<AF_NETLINK>, see B<netlink>(7)."
151 msgstr ""
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "The actual structure passed for the I<addr> argument will depend on the "
158 "address family. The I<sockaddr> structure is defined as something like:"
159 msgstr ""
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid ""
166 "struct sockaddr {\n"
167 " sa_family_t sa_family;\n"
168 " char sa_data[14];\n"
169 "}\n"
170 msgstr ""
171 "struct sockaddr {\n"
172 " sa_family_t sa_family;\n"
173 " char sa_data[14];\n"
174 "}\n"
175
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 "The only purpose of this structure is to cast the structure pointer passed "
181 "in I<addr> in order to avoid compiler warnings. See EXAMPLES below."
182 msgstr ""
183
184 #. type: SH
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "RETURN VALUE"
189 msgstr "NÁVRATOVÉ HODNOTY"
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
196 "to indicate the error."
197 msgstr ""
198 "V případě úspěchu je vrácena 0. V případě chyby je vrácena 1 a I<errno> je "
199 "nastaven aby indikoval chybu."
200
201 #. type: SH
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "ERRORS"
206 msgstr "CHYBOVÉ STAVY"
207
208 #. type: TP
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "B<EACCES>"
213 msgstr "B<EACCES>"
214
215 #. e.g., privileged port in AF_INET domain
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid "The address is protected, and the user is not the superuser."
220 msgstr ""
221
222 #. type: TP
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid "B<EADDRINUSE>"
227 msgstr "B<EADDRINUSE>"
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 msgid "The given address is already in use."
233 msgstr ""
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "(Internet domain sockets) The port number was specified as zero in the "
240 "socket address structure, but, upon attempting to bind to an ephemeral port, "
241 "it was determined that all port numbers in the ephemeral port range are "
242 "currently in use. See the discussion of I</proc/sys/net/ipv4/"
243 "ip_local_port_range> B<ip>(7)."
244 msgstr ""
245
246 #. type: TP
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "B<EBADF>"
251 msgstr "B<EBADF>"
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid "I<sockfd> is not a valid file descriptor."
257 msgstr "I<sockfd> není platným deskriptorem."
258
259 #. type: TP
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "B<EINVAL>"
264 msgstr "B<EINVAL>"
265
266 #. This may change in the future: see
267 #. .I linux/unix/sock.c for details.
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 "The socket is already bound to an address."
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid ""
278 "I<addrlen> is wrong, or I<addr> is not a valid address for this socket's "
279 "domain."
280 msgstr ""
281
282 #. type: TP
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "B<ENOTSOCK>"
287 msgstr "B<ENOTSOCK>"
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid "The file descriptor I<sockfd> does not refer to a socket."
293 msgstr ""
294
295 #. type: TP
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid "B<EADDRNOTAVAIL>"
300 msgstr "B<EADDRNOTAVAIL>"
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid ""
306 "A nonexistent interface was requested or the requested address was not local."
307 msgstr ""
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 "The following errors are specific to UNIX domain (B<AF_UNIX>) sockets:"
313 msgstr ""
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "Search permission is denied on a component of the path prefix. (See also "
320 "B<path_resolution>(7).)"
321 msgstr ""
322
323 #. type: TP
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "B<EFAULT>"
328 msgstr "B<EFAULT>"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid "I<addr> points outside the user's accessible address space."
334 msgstr ""
335
336 #. type: TP
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "B<ELOOP>"
341 msgstr "B<ELOOP>"
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid "Too many symbolic links were encountered in resolving I<addr>."
347 msgstr ""
348
349 #. type: TP
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "B<ENAMETOOLONG>"
354 msgstr "B<ENAMETOOLONG>"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid "I<addr> is too long."
360 msgstr ""
361
362 #. type: TP
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "B<ENOENT>"
367 msgstr "B<ENOENT>"
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid ""
373 "A component in the directory prefix of the socket pathname does not exist."
374 msgstr ""
375
376 #. type: TP
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "B<ENOMEM>"
381 msgstr "B<ENOMEM>"
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid "Insufficient kernel memory was available."
387 msgstr "K dispozici byla nedostatečná jaderná paměť."
388
389 #. type: TP
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 #, no-wrap
393 msgid "B<ENOTDIR>"
394 msgstr "B<ENOTDIR>"
395
396 #. type: Plain text
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 msgid "A component of the path prefix is not a directory."
400 msgstr ""
401
402 #. type: TP
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid "B<EROFS>"
407 msgstr "B<EROFS>"
408
409 #. type: Plain text
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 msgid "The socket inode would reside on a read-only filesystem."
413 msgstr ""
414
415 #. type: Plain text
416 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
417 #: opensuse-leap-16-1 opensuse-tumbleweed
418 msgid "Other errors may be generated by the underlying protocol modules."
419 msgstr ""
420
421 #. type: SH
422 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
423 #: opensuse-tumbleweed
424 #, no-wrap
425 msgid "VERSIONS"
426 msgstr "VERZE"
427
428 #. type: Plain text
429 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
430 #: opensuse-tumbleweed
431 msgid ""
432 "Portable programs must ensure that I<addr.sun_path> is a null-terminated "
433 "string for B<AF_UNIX> sockets."
434 msgstr ""
435
436 #. type: SH
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "STANDARDS"
441 msgstr "STANDARDY"
442
443 #. type: Plain text
444 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
445 #: opensuse-tumbleweed
446 msgid "POSIX.1-2024."
447 msgstr "POSIX.1-2024."
448
449 #. type: SH
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "HISTORY"
454 msgstr "HISTORIE"
455
456 #. SVr4 documents an additional
457 #. .B ENOSR
458 #. general error condition, and
459 #. additional
460 #. .B EIO
461 #. and
462 #. .B EISDIR
463 #. UNIX-domain error conditions.
464 #. type: Plain text
465 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
466 #: opensuse-tumbleweed
467 #, fuzzy
468 #| msgid "POSIX.1-2001, SVr4, 4.4BSD."
469 msgid "POSIX.1-2001, SVr4, 4.2BSD."
470 msgstr "POSIX.1-2001, SVr4, 4.4BSD."
471
472 #. type: SH
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "BUGS"
477 msgstr "CHYBY"
478
479 #. FIXME Document transparent proxy options
480 #. type: Plain text
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 msgid "The transparent proxy options are not described."
484 msgstr ""
485
486 #. type: SH
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "EXAMPLES"
491 msgstr "PŘÍKLADY"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid ""
497 "An example of the use of B<bind>() with Internet domain sockets can be "
498 "found in B<getaddrinfo>(3)."
499 msgstr ""
500
501 #. listen.7 refers to this example.
502 #. accept.7 refers to this example.
503 #. unix.7 refers to this example.
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "The following example shows how to bind a stream socket in the UNIX "
509 "(B<AF_UNIX>) domain, and accept connections:"
510 msgstr ""
511
512 #. type: Plain text
513 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
514 #: opensuse-tumbleweed
515 #, no-wrap
516 msgid ""
517 "#include E<lt>err.hE<gt>\n"
518 "#include E<lt>stdlib.hE<gt>\n"
519 "#include E<lt>string.hE<gt>\n"
520 "#include E<lt>sys/socket.hE<gt>\n"
521 "#include E<lt>sys/un.hE<gt>\n"
522 "#include E<lt>unistd.hE<gt>\n"
523 "\\&\n"
524 "#define MY_SOCK_PATH \"/somepath\"\n"
525 "#define LISTEN_BACKLOG 50\n"
526 "\\&\n"
527 "int\n"
528 "main(void)\n"
529 "{\n"
530 " int sfd, cfd;\n"
531 " socklen_t peer_addr_size;\n"
532 " struct sockaddr_un my_addr, peer_addr;\n"
533 "\\&\n"
534 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
535 " if (sfd == -1)\n"
536 " err(EXIT_FAILURE, \"socket\");\n"
537 "\\&\n"
538 " memset(&my_addr, 0, sizeof(my_addr));\n"
539 " my_addr.sun_family = AF_UNIX;\n"
540 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
541 " sizeof(my_addr.sun_path) - 1);\n"
542 "\\&\n"
543 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
544 " sizeof(my_addr)) == -1)\n"
545 " err(EXIT_FAILURE, \"bind\");\n"
546 "\\&\n"
547 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
548 " err(EXIT_FAILURE, \"listen\");\n"
549 "\\&\n"
550 " /* Now we can accept incoming connections one\n"
551 " at a time using accept(2). */\n"
552 "\\&\n"
553 " peer_addr_size = sizeof(peer_addr);\n"
554 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
555 " &peer_addr_size);\n"
556 " if (cfd == -1)\n"
557 " err(EXIT_FAILURE, \"accept\");\n"
558 "\\&\n"
559 " /* Code to deal with incoming connection(s)... */\n"
560 "\\&\n"
561 " if (close(sfd) == -1)\n"
562 " err(EXIT_FAILURE, \"close\");\n"
563 "\\&\n"
564 " if (unlink(MY_SOCK_PATH) == -1)\n"
565 " err(EXIT_FAILURE, \"unlink\");\n"
566 "}\n"
567 msgstr ""
568
569 #. SRC END
570 #. type: SH
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "SEE ALSO"
575 msgstr "DALŠÍ INFORMACE"
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid ""
581 "B<accept>(2), B<connect>(2), B<getsockname>(2), B<listen>(2), B<socket>(2), "
582 "B<getaddrinfo>(3), B<getifaddrs>(3), B<ip>(7), B<ipv6>(7), "
583 "B<path_resolution>(7), B<socket>(7), B<unix>(7)"
584 msgstr ""
585 "B<accept>(2), B<connect>(2), B<getsockname>(2), B<listen>(2), B<socket>(2), "
586 "B<getaddrinfo>(3), B<getifaddrs>(3), B<ip>(7), B<ipv6>(7), "
587 "B<path_resolution>(7), B<socket>(7), B<unix>(7)"
588
589 #. type: TH
590 #: debian-trixie
591 #, no-wrap
592 msgid "2024-06-15"
593 msgstr "15. června 2024"
594
595 #. type: TH
596 #: debian-trixie
597 #, no-wrap
598 msgid "Linux man-pages 6.9.1"
599 msgstr "Linux man-pages 6.9.1"
600
601 #. type: Plain text
602 #: debian-trixie
603 msgid "Standard C library (I<libc>, I<-lc>)"
604 msgstr "Standardní knihovna C (I<libc>, I<-lc>)"
605
606 #. type: Plain text
607 #: debian-trixie fedora-44 fedora-rawhide
608 msgid "POSIX.1-2008."
609 msgstr "POSIX.1-2008."
610
611 #. SVr4 documents an additional
612 #. .B ENOSR
613 #. general error condition, and
614 #. additional
615 #. .B EIO
616 #. and
617 #. .B EISDIR
618 #. UNIX-domain error conditions.
619 #. type: Plain text
620 #: debian-trixie fedora-44 fedora-rawhide
621 msgid "POSIX.1-2001, SVr4, 4.4BSD (B<bind>() first appeared in 4.2BSD)."
622 msgstr ""
623
624 #. type: Plain text
625 #: debian-trixie fedora-44 fedora-rawhide
626 #, no-wrap
627 msgid ""
628 "#include E<lt>stdio.hE<gt>\n"
629 "#include E<lt>stdlib.hE<gt>\n"
630 "#include E<lt>string.hE<gt>\n"
631 "#include E<lt>sys/socket.hE<gt>\n"
632 "#include E<lt>sys/un.hE<gt>\n"
633 "#include E<lt>unistd.hE<gt>\n"
634 "\\&\n"
635 "#define MY_SOCK_PATH \"/somepath\"\n"
636 "#define LISTEN_BACKLOG 50\n"
637 "\\&\n"
638 "#define handle_error(msg) \\[rs]\n"
639 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
640 "\\&\n"
641 "int\n"
642 "main(void)\n"
643 "{\n"
644 " int sfd, cfd;\n"
645 " socklen_t peer_addr_size;\n"
646 " struct sockaddr_un my_addr, peer_addr;\n"
647 "\\&\n"
648 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
649 " if (sfd == -1)\n"
650 " handle_error(\"socket\");\n"
651 "\\&\n"
652 " memset(&my_addr, 0, sizeof(my_addr));\n"
653 " my_addr.sun_family = AF_UNIX;\n"
654 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
655 " sizeof(my_addr.sun_path) - 1);\n"
656 "\\&\n"
657 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
658 " sizeof(my_addr)) == -1)\n"
659 " handle_error(\"bind\");\n"
660 "\\&\n"
661 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
662 " handle_error(\"listen\");\n"
663 "\\&\n"
664 " /* Now we can accept incoming connections one\n"
665 " at a time using accept(2). */\n"
666 "\\&\n"
667 " peer_addr_size = sizeof(peer_addr);\n"
668 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
669 " &peer_addr_size);\n"
670 " if (cfd == -1)\n"
671 " handle_error(\"accept\");\n"
672 "\\&\n"
673 " /* Code to deal with incoming connection(s)... */\n"
674 "\\&\n"
675 " if (close(sfd) == -1)\n"
676 " handle_error(\"close\");\n"
677 "\\&\n"
678 " if (unlink(MY_SOCK_PATH) == -1)\n"
679 " handle_error(\"unlink\");\n"
680 "}\n"
681 msgstr ""
682
683 #. type: TH
684 #: fedora-44 fedora-rawhide
685 #, no-wrap
686 msgid "2024-11-06"
687 msgstr "6. listopadu 2024"
688
689 #. type: TH
690 #: fedora-44 fedora-rawhide
691 #, no-wrap
692 msgid "Linux man-pages 6.13"
693 msgstr "Linux man-pages 6.13"
694
695 #. type: TH
696 #: mageia-cauldron
697 #, no-wrap
698 msgid "Linux man-pages 6.17"
699 msgstr "Linux man-pages 6.17"
700
701 #. type: TH
702 #: opensuse-leap-16-1 opensuse-tumbleweed
703 #, no-wrap
704 msgid "Linux man-pages (unreleased)"
705 msgstr "Linux man-pages (nevydané)"