socketpair(2) System Calls Manual socketpair(2) JMENO socketpair - vytvori par spojenych soketu KNIHOVNA Standardni knihovna C (libc, -lc) POUZITI #include int socketpair(int domain, int type, int protocol, int sv[2]); POPIS Volani socketpair() vytvori par nepojmenovanych spojenych soketu ve specifikovanem jmennem prostoru (domene) d, jejich typ bude type, pouzivany protokol protocol. Pro vice informaci o techto parametrech viz socket(2). Deskriptory souboru novych soketu jsou vraceny v sv[0] a sv[1]. Tyto dva sokety jsou nerozlisitelne. NAVRATOVE HODNOTY On success, zero is returned. On error, -1 is returned, errno is set to indicate the error, and sv is left unchanged On Linux (and other systems), socketpair() does not modify sv on failure. A requirement standardizing this behavior was added in POSIX.1-2008 TC2. CHYBOVE STAVY EAFNOSUPPORT Specifikovany jmenny prostor neni na tomto pocitaci podporovan. EFAULT sv neni v platne casti adresoveho prostoru procesu. EMFILE The per-process limit on the number of open file descriptors has been reached. ENFILE Byl dosazen limit pro absolutni pocet souboru v systemu. EOPNOTSUPP Specifikovany protokol nepodporuje vytvoreni soketoveho paru. EPROTONOSUPPORT Specifikovany protokol neni na tomto pocitaci podporovan. VERZE On Linux, the only supported domains for this call are AF_UNIX (or synonymously, AF_LOCAL) and AF_TIPC (since Linux 4.12). STANDARDY POSIX.1-2008. HISTORIE POSIX.1-2001, 4.4BSD. socketpair() first appeared in 4.2BSD. It is generally portable to/from non-BSD systems supporting clones of the BSD socket layer (including System V variants). Since Linux 2.6.27, socketpair() supports the SOCK_NONBLOCK and SOCK_CLOEXEC flags in the type argument, as described in socket(2). DALSI INFORMACE pipe(2), read(2), socket(2), write(2), socket(7), unix(7) PREKLAD Preklad teto prirucky do spanelstiny vytvorili Pavel Heimlich Tento preklad je bezplatna dokumentace; Prectete si GNU General Public License Version 3 nebo novejsi ohledne podminek autorskych prav. Neexistuje ZADNA ODPOVEDNOST. Pokud narazite na nejake chyby v prekladu teto prirucky, poslete e-mail na adresu . Linux man-pages 6.06 31. rijna 2023 socketpair(2)