#, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2014-06-26 13:13+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man2/accept.2:41 #, no-wrap msgid "ACCEPT" msgstr "" #. type: TH #: man-pages/man2/accept.2:41 #, no-wrap msgid "2010-09-10" msgstr "" #. type: TH #: man-pages/man2/accept.2:41 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man2/accept.2:41 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man2/accept.2:42 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man2/accept.2:44 msgid "accept, accept4 - accept a connection on a socket" msgstr "" #. type: SH #: man-pages/man2/accept.2:44 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages/man2/accept.2:48 #, no-wrap msgid "" "B<#include Esys/types.hE> /* See NOTES */\n" "B<#include Esys/socket.hE>\n" msgstr "" #. type: Plain text #: man-pages/man2/accept.2:50 #, no-wrap msgid "" "BIB<, struct sockaddr *>IB<, socklen_t " "*>IB<);>\n" msgstr "" #. type: Plain text #: man-pages/man2/accept.2:53 #, no-wrap msgid "" "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" "B<#include Esys/socket.hE>\n" msgstr "" #. type: Plain text #: man-pages/man2/accept.2:56 #, no-wrap msgid "" "BIB<, struct sockaddr *>IB<,>\n" "B< socklen_t *>IB<, int >IB<);>\n" msgstr "" #. type: SH #: man-pages/man2/accept.2:57 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man2/accept.2:72 msgid "" "The B() system call is used with connection-based socket types " "(B, B). It extracts the first connection " "request on the queue of pending connections for the listening socket, " "I, creates a new connected socket, and returns a new file descriptor " "referring to that socket. The newly created socket is not in the listening " "state. The original socket I is unaffected by this call." msgstr "" #. type: Plain text #: man-pages/man2/accept.2:81 msgid "" "The argument I is a socket that has been created with B(2), " "bound to a local address with B(2), and is listening for connections " "after a B(2)." msgstr "" #. type: Plain text #: man-pages/man2/accept.2:99 msgid "" "The argument I is a pointer to a I structure. This " "structure is filled in with the address of the peer socket, as known to the " "communications layer. The exact format of the address returned I is " "determined by the socket's address family (see B(2) and the " "respective protocol man pages). When I is NULL, nothing is filled in; " "in this case, I is not used, and should also be NULL." msgstr "" #. type: Plain text #: man-pages/man2/accept.2:107 msgid "" "The I argument is a value-result argument: the caller must " "initialize it to contain the size (in bytes) of the structure pointed to by " "I; on return it will contain the actual size of the peer address." msgstr "" #. type: Plain text #: man-pages/man2/accept.2:112 msgid "" "The returned address is truncated if the buffer provided is too small; in " "this case, I will return a value greater than was supplied to the " "call." msgstr "" #. type: Plain text #: man-pages/man2/accept.2:125 msgid "" "If no pending connections are present on the queue, and the socket is not " "marked as nonblocking, B() blocks the caller until a connection is " "present. If the socket is marked nonblocking and no pending connections are " "present on the queue, B() fails with the error B or " "B." msgstr "" #. type: Plain text #: man-pages/man2/accept.2:139 msgid "" "In order to be notified of incoming connections on a socket, you can use " "B(2) or B(2) return a readability event because the " "connection might have been removed by an asynchronous network error or " "another thread before B() is called. If this happens, then the " "call will block waiting for the next connection to arrive. To ensure that " "B() never blocks, the passed socket I needs to have the " "B flag set (see B(7))." msgstr "" #. type: SS #: man-pages/man2/accept.2:351 #, no-wrap msgid "The socklen_t type" msgstr "" #. type: Plain text #: man-pages/man2/accept.2:361 msgid "" "The third argument of B() was originally declared as an I " "(and is that under libc4 and libc5 and on many other systems like 4.x BSD, " "SunOS 4, SGI); a POSIX.1g draft standard wanted to change it into a I, and that is what it is for SunOS 5. Later POSIX drafts have I, and so do the Single UNIX Specification and glibc2. Quoting Linus " "Torvalds:" msgstr "" #. .I fails: only italicizes a single line #. type: Plain text #: man-pages/man2/accept.2:378 msgid "" "\"_Any_ sane library _must_ have \"socklen_t\" be the same size as int. " "Anything else breaks any BSD socket layer stuff. POSIX initially I " "make it a size_t, and I (and hopefully others, but obviously not too many) " "complained to them very loudly indeed. Making it a size_t is completely " "broken, exactly because size_t very seldom is the same size as \"int\" on 64-" "bit architectures, for example. And it I to be the same size as " "\"int\" because that's what the BSD socket interface is. Anyway, the POSIX " "people eventually got a clue, and created \"socklen_t\". They shouldn't " "have touched it in the first place, but once they did they felt it had to " "have a named type for some unfathomable reason (probably somebody didn't " "like losing face over having done the original stupid thing, so they " "silently just renamed their blunder).\"" msgstr "" #. type: SH #: man-pages/man2/accept.2:378 #, no-wrap msgid "EXAMPLE" msgstr "" #. type: Plain text #: man-pages/man2/accept.2:381 msgid "See B(2)." msgstr "" #. type: SH #: man-pages/man2/accept.2:381 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages/man2/accept.2:388 msgid "" "B(2), B(2), B(2), B