.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1983, 1991 The Regents of the University of California. .\" All rights reserved. .\" .\" %%%LICENSE_START(BSD_4_CLAUSE_UCB) .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" %%%LICENSE_END .\" .\" @(#)socketpair.2 6.4 (Berkeley) 3/10/91 .\" .\" Modified 1993-07-24 by Rik Faith .\" Modified 1996-10-22 by Eric S. Raymond .\" Modified 2002-07-22 by Michael Kerrisk .\" Modified 2004-06-17 by Michael Kerrisk .\" 2008-10-11, mtk: Add description of SOCK_NONBLOCK and SOCK_CLOEXEC .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SOCKETPAIR 2 "6 mars 2019" Linux "Manuel du programmeur Linux" .SH NOM socketpair \- Créer une paire de sockets connectées .SH SYNOPSIS \fB#include \fP /* Consultez NOTES */ .br \fB#include \fP .PP \fBint socketpair(int \fP\fIdomain\fP\fB, int \fP\fItype\fP\fB, int \fP\fIprotocol\fP\fB, int \fP\fIsv\fP\fB[2]);\fP .SH DESCRIPTION La fonction \fBsocketpair\fP() crée une paire de sockets connectées, sans noms, dans le domaine de communication \fIdomain\fP, du \fItype\fP indiqué, en utilisant le protocole optionnel \fIprotocol\fP. Pour plus de détails sur ces paramètres, consultez \fBsocket\fP(2). .PP The file descriptors used in referencing the new sockets are returned in \fIsv\fP[0] and \fIsv\fP[1]. The two sockets are indistinguishable. .SH "VALEUR RENVOYÉE" On success, zero is returned. On error, \-1 is returned, \fIerrno\fP is set appropriately, and \fIsv\fP is left unchanged .PP .\" http://austingroupbugs.net/view.php?id=483 On Linux (and other systems), \fBsocketpair\fP() does not modify \fIsv\fP on failure. A requirement standardizing this behavior was added in POSIX.1\-2016. .SH ERREURS .TP \fBEAFNOSUPPORT\fP La famille de communication n'est pas supportée sur cette machine. .TP \fBEFAULT\fP \fIsv\fP pointe en dehors de l'espace d'adressage accessible. .TP \fBEMFILE\fP La limite du nombre de descripteurs de fichiers par processus a été atteinte. .TP \fBENFILE\fP La limite du nombre total de fichiers ouverts pour le système entier a été atteinte. .TP \fBEOPNOTSUPP\fP La protocole de communication mentionné ne permet pas la création d'une paire de sockets. .TP \fBEPROTONOSUPPORT\fP La protocole de communication n'est pas supportée sur cette machine. .SH CONFORMITÉ POSIX.1\-2001, POSIX.1\-2008, 4.4BSD. \fBsocketpair\fP() 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). .SH NOTES .\" commit: 70b03759e9ecfae400605fa34f3d7154cccbbba3 On Linux, the only supported domains for this call are \fBAF_UNIX\fP (or synonymously, \fBAF_LOCAL\fP) and \fBAF_TIPC\fP (since Linux 4.12). .PP Since Linux 2.6.27, \fBsocketpair\fP() supports the \fBSOCK_NONBLOCK\fP and \fBSOCK_CLOEXEC\fP flags in the \fItype\fP argument, as described in \fBsocket\fP(2). .PP POSIX.1\-2001 ne requiert pas l'inclusion de \fI\fP, et cet en\(hytête n'est pas nécessaire sous Linux. Cependant, il doit être inclus sous certaines implémentations historiques (BSD), et les applications portables devraient probablement l'utiliser. .SH "VOIR AUSSI" \fBpipe\fP(2), \fBread\fP(2), \fBsocket\fP(2), \fBwrite\fP(2), \fBsocket\fP(7), \fBunix\fP(7) .SH COLOPHON Cette page fait partie de la publication\ 5.04 du projet \fIman\-pages\fP Linux. Une description du projet et des instructions pour signaler des anomalies et la dernière version de cette page peuvent être trouvées à l'adresse \%https://www.kernel.org/doc/man\-pages/. .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot , Cédric Boutillier et Frédéric Hantrais . Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .