Debian Codegraph @

templates/man2/accept.2.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:17+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 "accept"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-10-29"
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 "accept, accept4 - accept a connection on a socket"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<int accept(int >I<sockfd>B<, struct sockaddr *_Nullable restrict >I<addr>B<,>\n"
85 "B< socklen_t *_Nullable restrict >I<addrlen>B<);>\n"
86 msgstr ""
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid ""
93 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
94 "B<#include E<lt>sys/socket.hE<gt>>\n"
95 msgstr ""
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 ""
102 "B<int accept4(int >I<sockfd>B<, struct sockaddr *_Nullable restrict >I<addr>B<,>\n"
103 "B< socklen_t *_Nullable restrict >I<addrlen>B<, int >I<flags>B<);>\n"
104 msgstr ""
105
106 #. type: SH
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "DESCRIPTION"
111 msgstr ""
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 msgid ""
117 "The B<accept>() system call is used with connection-based socket types "
118 "(B<SOCK_STREAM>, B<SOCK_SEQPACKET>). It extracts the first connection "
119 "request on the queue of pending connections for the listening socket, "
120 "I<sockfd>, creates a new connected socket, and returns a new file descriptor "
121 "referring to that socket. The newly created socket is not in the listening "
122 "state. The original socket I<sockfd> is unaffected by this call."
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "The argument I<sockfd> is a socket that has been created with B<socket>(2), "
130 "bound to a local address with B<bind>(2), and is listening for connections "
131 "after a B<listen>(2)."
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 "The argument I<addr> is a pointer to a I<sockaddr> structure. This "
139 "structure is filled in with the address of the peer socket, as known to the "
140 "communications layer. The exact format of the address returned I<addr> is "
141 "determined by the socket's address family (see B<socket>(2) and the "
142 "respective protocol man pages). When I<addr> is NULL, nothing is filled in; "
143 "in this case, I<addrlen> is not used, and should also be NULL."
144 msgstr ""
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "The I<addrlen> argument is a value-result argument: the caller must "
151 "initialize it to contain the size (in bytes) of the structure pointed to by "
152 "I<addr>; on return it will contain the actual size of the peer address."
153 msgstr ""
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "The returned address is truncated if the buffer provided is too small; in "
160 "this case, I<addrlen> will return a value greater than was supplied to the "
161 "call."
162 msgstr ""
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "If no pending connections are present on the queue, and the socket is not "
169 "marked as nonblocking, B<accept>() blocks the caller until a connection is "
170 "present. If the socket is marked nonblocking and no pending connections are "
171 "present on the queue, B<accept>() fails with the error B<EAGAIN> or "
172 "B<EWOULDBLOCK>."
173 msgstr ""
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "In order to be notified of incoming connections on a socket, you can use "
180 "B<select>(2), B<poll>(2), or B<epoll>(7). A readable event will be "
181 "delivered when a new connection is attempted and you may then call "
182 "B<accept>() to get a socket for that connection. Alternatively, you can "
183 "set the socket to deliver B<SIGIO> when activity occurs on a socket; see "
184 "B<socket>(7) for details."
185 msgstr ""
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid ""
191 "If I<flags> is 0, then B<accept4>() is the same as B<accept>(). The "
192 "following values can be bitwise ORed in I<flags> to obtain different "
193 "behavior:"
194 msgstr ""
195
196 #. type: TP
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "B<SOCK_NONBLOCK>"
201 msgstr ""
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid ""
207 "Set the B<O_NONBLOCK> file status flag on the open file description (see "
208 "B<open>(2)) referred to by the new file descriptor. Using this flag saves "
209 "extra calls to B<fcntl>(2) to achieve the same result."
210 msgstr ""
211
212 #. type: TP
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 #, no-wrap
216 msgid "B<SOCK_CLOEXEC>"
217 msgstr ""
218
219 #. type: Plain text
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 msgid ""
223 "Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See "
224 "the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this "
225 "may be useful."
226 msgstr ""
227
228 #. type: SH
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "RETURN VALUE"
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 "On success, these system calls return a file descriptor for the accepted "
240 "socket (a nonnegative integer). On error, -1 is returned, I<errno> is set "
241 "to indicate the error, and I<addrlen> is left unchanged."
242 msgstr ""
243
244 #. type: SS
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "Error handling"
249 msgstr ""
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "Linux B<accept>() (and B<accept4>()) passes already-pending network errors "
256 "on the new socket as an error code from B<accept>(). This behavior differs "
257 "from other BSD socket implementations. For reliable operation the "
258 "application should detect the network errors defined for the protocol after "
259 "B<accept>() and treat them like B<EAGAIN> by retrying. In the case of TCP/"
260 "IP, these are B<ENETDOWN>, B<EPROTO>, B<ENOPROTOOPT>, B<EHOSTDOWN>, "
261 "B<ENONET>, B<EHOSTUNREACH>, B<EOPNOTSUPP>, and B<ENETUNREACH>."
262 msgstr ""
263
264 #. type: SH
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 #, no-wrap
268 msgid "ERRORS"
269 msgstr ""
270
271 #. type: TP
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "B<EAGAIN> or B<EWOULDBLOCK>"
276 msgstr ""
277
278 #. Actually EAGAIN on Linux
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "The socket is marked nonblocking and no connections are present to be "
284 "accepted. POSIX.1-2001 and POSIX.1-2008 allow either error to be returned "
285 "for this case, and do not require these constants to have the same value, so "
286 "a portable application should check for both possibilities."
287 msgstr ""
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<EBADF>"
294 msgstr ""
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "I<sockfd> is not an open file descriptor."
300 msgstr ""
301
302 #. type: TP
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "B<ECONNABORTED>"
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 "A connection has been aborted."
313 msgstr ""
314
315 #. type: TP
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid "B<EFAULT>"
320 msgstr ""
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 msgid ""
326 "The I<addr> argument is not in a writable part of the user address space."
327 msgstr ""
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "B<EINTR>"
334 msgstr ""
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid ""
340 "The system call was interrupted by a signal that was caught before a valid "
341 "connection arrived; see B<signal>(7)."
342 msgstr ""
343
344 #. type: TP
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "B<EINVAL>"
349 msgstr ""
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid ""
355 "Socket is not listening for connections, or I<addrlen> is invalid (e.g., is "
356 "negative)."
357 msgstr ""
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid "(B<accept4>()) invalid value in I<flags>."
363 msgstr ""
364
365 #. type: TP
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "B<EMFILE>"
370 msgstr ""
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid ""
376 "The per-process limit on the number of open file descriptors has been "
377 "reached."
378 msgstr ""
379
380 #. type: TP
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "B<ENFILE>"
385 msgstr ""
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 msgid ""
391 "The system-wide limit on the total number of open files has been reached."
392 msgstr ""
393
394 #. type: TP
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "B<ENOBUFS>"
399 msgstr ""
400
401 #. type: TQ
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "B<ENOMEM>"
406 msgstr ""
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid ""
412 "Not enough free memory. This often means that the memory allocation is "
413 "limited by the socket buffer limits, not by the system memory."
414 msgstr ""
415
416 #. type: TP
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "B<ENOTSOCK>"
421 msgstr ""
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid "The file descriptor I<sockfd> does not refer to a socket."
427 msgstr ""
428
429 #. type: TP
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "B<EOPNOTSUPP>"
434 msgstr ""
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid "The referenced socket is not of type B<SOCK_STREAM>."
440 msgstr ""
441
442 #. type: TP
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "B<EPERM>"
447 msgstr ""
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid "Firewall rules forbid connection."
453 msgstr ""
454
455 #. type: TP
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "B<EPROTO>"
460 msgstr ""
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid "Protocol error."
466 msgstr ""
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "In addition, network errors for the new socket and as defined for the "
473 "protocol may be returned. Various Linux kernels can return other errors "
474 "such as B<ENOSR>, B<ESOCKTNOSUPPORT>, B<EPROTONOSUPPORT>, B<ETIMEDOUT>. The "
475 "value B<ERESTARTSYS> may be seen during a trace."
476 msgstr ""
477
478 #. type: SH
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "VERSIONS"
483 msgstr ""
484
485 #. Some testing seems to show that Tru64 5.1 and HP-UX 11 also
486 #. do not inherit file status flags -- MTK Jun 05
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 ""
491 "On Linux, the new socket returned by B<accept>() does I<not> inherit file "
492 "status flags such as B<O_NONBLOCK> and B<O_ASYNC> from the listening "
493 "socket. This behavior differs from the canonical BSD sockets "
494 "implementation. Portable programs should not rely on inheritance or "
495 "noninheritance of file status flags and always explicitly set all required "
496 "flags on the socket returned from B<accept>()."
497 msgstr ""
498
499 #. type: SH
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "STANDARDS"
504 msgstr ""
505
506 #. type: Plain text
507 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
508 #: opensuse-tumbleweed
509 msgid "POSIX.1-2024."
510 msgstr ""
511
512 #. type: SH
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid "HISTORY"
517 msgstr ""
518
519 #. type: TP
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 #, no-wrap
523 msgid "B<accept>()"
524 msgstr ""
525
526 #. The BSD man page documents five possible error returns
527 #. (EBADF, ENOTSOCK, EOPNOTSUPP, EWOULDBLOCK, EFAULT).
528 #. POSIX.1-2001 documents errors
529 #. EAGAIN, EBADF, ECONNABORTED, EINTR, EINVAL, EMFILE,
530 #. ENFILE, ENOBUFS, ENOMEM, ENOTSOCK, EOPNOTSUPP, EPROTO, EWOULDBLOCK.
531 #. In addition, SUSv2 documents EFAULT and ENOSR.
532 #. type: Plain text
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 msgid "POSIX.1-2001, SVr4, 4.4BSD (B<accept>() first appeared in 4.2BSD)."
536 msgstr ""
537
538 #. type: TP
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 #, no-wrap
542 msgid "B<accept4>()"
543 msgstr ""
544
545 #. type: Plain text
546 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
547 #: opensuse-tumbleweed
548 msgid "POSIX.1-2024. Linux 2.6.28, glibc 2.10."
549 msgstr ""
550
551 #. type: SH
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "NOTES"
556 msgstr ""
557
558 #. type: Plain text
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 msgid ""
562 "There may not always be a connection waiting after a B<SIGIO> is delivered "
563 "or B<select>(2), B<poll>(2), or B<epoll>(7) return a readability event "
564 "because the connection might have been removed by an asynchronous network "
565 "error or another thread before B<accept>() is called. If this happens, "
566 "then the call will block waiting for the next connection to arrive. To "
567 "ensure that B<accept>() never blocks, the passed socket I<sockfd> needs to "
568 "have the B<O_NONBLOCK> flag set (see B<socket>(7))."
569 msgstr ""
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 msgid ""
575 "For certain protocols which require an explicit confirmation, such as "
576 "DECnet, B<accept>() can be thought of as merely dequeuing the next "
577 "connection request and not implying confirmation. Confirmation can be "
578 "implied by a normal read or write on the new file descriptor, and rejection "
579 "can be implied by closing the new socket. Currently, only DECnet has these "
580 "semantics on Linux."
581 msgstr ""
582
583 #. type: SS
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 #, no-wrap
587 msgid "The socklen_t type"
588 msgstr ""
589
590 #. such as Linux libc4 and libc5, SunOS 4, SGI
591 #. SunOS 5 has 'size_t *'
592 #. type: Plain text
593 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
594 #: opensuse-tumbleweed
595 msgid ""
596 "In the original BSD sockets implementation (and on other older systems) the "
597 "third argument of B<accept>() was declared as an I<int\\ *>. A POSIX.1g "
598 "draft standard wanted to change it into a I<size_t\\ *>; later POSIX "
599 "standards and glibc 2.x have I<socklen_t\\ * >."
600 msgstr ""
601
602 #. type: SH
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 #, no-wrap
606 msgid "EXAMPLES"
607 msgstr ""
608
609 #. type: Plain text
610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
612 msgid "See B<bind>(2)."
613 msgstr ""
614
615 #. type: SH
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 #, no-wrap
619 msgid "SEE ALSO"
620 msgstr ""
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "B<bind>(2), B<connect>(2), B<listen>(2), B<select>(2), B<socket>(2), "
627 "B<socket>(7)"
628 msgstr ""
629
630 #. type: TH
631 #: debian-trixie
632 #, no-wrap
633 msgid "2024-05-02"
634 msgstr ""
635
636 #. type: TH
637 #: debian-trixie
638 #, no-wrap
639 msgid "Linux man-pages 6.9.1"
640 msgstr ""
641
642 #. type: Plain text
643 #: debian-trixie
644 msgid "Standard C library (I<libc>, I<-lc>)"
645 msgstr ""
646
647 #. type: Plain text
648 #: debian-trixie fedora-44 fedora-rawhide
649 msgid "POSIX.1-2008."
650 msgstr ""
651
652 #. type: Plain text
653 #: debian-trixie fedora-44 fedora-rawhide
654 msgid "Linux."
655 msgstr ""
656
657 #. type: Plain text
658 #: debian-trixie fedora-44 fedora-rawhide
659 msgid "Linux 2.6.28, glibc 2.10."
660 msgstr ""
661
662 #. such as Linux libc4 and libc5, SunOS 4, SGI
663 #. SunOS 5 has 'size_t *'
664 #. type: Plain text
665 #: debian-trixie fedora-44 fedora-rawhide
666 msgid ""
667 "In the original BSD sockets implementation (and on other older systems) the "
668 "third argument of B<accept>() was declared as an I<int\\ *>. A POSIX.1g "
669 "draft standard wanted to change it into a I<size_t\\ *>C; later POSIX "
670 "standards and glibc 2.x have I<socklen_t\\ * >."
671 msgstr ""
672
673 #. type: TH
674 #: fedora-44 fedora-rawhide
675 #, no-wrap
676 msgid "2024-07-23"
677 msgstr ""
678
679 #. type: TH
680 #: fedora-44 fedora-rawhide
681 #, no-wrap
682 msgid "Linux man-pages 6.13"
683 msgstr ""
684
685 #. type: TH
686 #: mageia-cauldron
687 #, no-wrap
688 msgid "Linux man-pages 6.17"
689 msgstr ""
690
691 #. type: TH
692 #: opensuse-leap-16-1 opensuse-tumbleweed
693 #, no-wrap
694 msgid "Linux man-pages (unreleased)"
695 msgstr ""