Imported tab->space correction by redhat
[infodrom/manpages-de] / man2 / socketpair.2
1 .\" Copyright (c) 1983, 1991 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)socketpair.2        6.4 (Berkeley) 3/10/91
33 .\"
34 .\" Modified Sat Jul 24 10:49:44 1993 by Rik Faith (faith@cs.unc.edu)
35 .\"
36 .\" Translated into german by Markus Schmitt (fw@math.uni-sb.de)
37 .\" Translated to German Sun Jul 28 15:00:00 1996 by Patrick Rother <krd@gulu.net>
38 .\"
39 .TH SOCKETPAIR 2 "21. Juni 1996" "BSD" "Systemaufrufe"
40 .\"
41 .SH BEZEICHNUNG
42 socketpair - generiert zwei verbundene Sockets
43 .SH "ÜBERSICHT"
44 .B #include <sys/types.h>
45 .br
46 .B #include <sys/socket.h>
47 .sp
48 .BI "int socketpair(int " d ", int " type ", int " protocol ", int " sv [2]);
49 .SH BESCHREIBUNG
50 Der Aufruf
51 .B socketpair
52 generiert zwei unbenannte, miteinander verbundene Sockets.
53 .I D
54 bezeichnet die Domain,
55 .I typ
56 den Typ der Sockets und
57 .I protocol 
58 definiert das Protokoll, das nicht angegeben werden muss.
59 Die Deskriptoren der Sockets werden in 
60 .I sv[0]
61 und 
62 .I sv[1]
63 zurückgegeben.  Die beiden Sockets können nicht unterschieden werden.
64 .SH "RÜCKGABEWERT"
65 Im Erfolgsfall wird 0 zurückgegeben, bei einem Fehler -1 und
66 .I errno 
67 wird gesetzt.
68 .SH FEHLER
69 .TP 0.8i
70 .B EMFILE
71 Dieser Prozess benutzt zuviele Deskriptoren
72 .TP
73 .B EAFNOSUPPORT
74 Die angegebene Adressfamilie wird vom Rechner nicht unterstützt
75 .TP
76 .B EPROTONOSUPPORT
77 Das angegebene Protokoll wird nicht unterstützt
78 .TP
79 .B EOPNOSUPPORT
80 Das angegebene Protokoll unterstützt nicht das Anlegen von Socketpairs
81 .TP
82 .B EFAULT
83 Die Adresse
84 .I sv
85 liegt nicht im gültigen Adressbereich des Prozesses
86 .SH GESCHICHTE
87 Die Funktion
88 .B socketpair
89 tritt das erste Mal im BSD 4.2 auf.
90 .SH BUGS
91 Dieser Aufruf ist zurzeit nur für 
92 .B UNIX-Domaens
93 implementiert.  [Gilt das auch für Linux?]
94 .SH "SIEHE AUCH"
95 .BR read (2),
96 .BR write (2),
97 .BR pipe (2).