*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: socketpair | Section: 2 | Source: MINIX | File: socketpair.2
SOCKETPAIR(2) System Calls Manual SOCKETPAIR(2) NAME socketpair - creates a pair of connected sockets. SYNOPSIS #include <sys/socket.h> int socketpair(int domain, int type, int protocol, int sv[2]); DESCRIPTION socketpair() creates two connected sockets of the specified type in the specified domain using the specified protocol and stores the two re- sulting socket descriptors in sv[2]. RETURN VALUES On success, this function returns 0, and sv[2] is set to the two newly created socket descriptors. On error, -1 is returned and errno is set. ERRORS [EAFNOSUPPORT] The domain is not supported. [EPROTOTYPE] The protocol is not supported by the domain. [EPROTONOSUPPORT] The protocol is not supported by the type. [EINVAL] The pair of sockets aren't in a valid state or are not connection oriented sockets. [EPERM] The user ID, group ID, and process ID of the first socket doesn't match that of the second. NOTES This function is only implemented for unix domain sockets. Therefore, the only valid value for domain is AF_UNIX SEE ALSO socket(2), unix(8) HISTORY This function first appeared in Minix 3.1.8. SOCKETPAIR(2)

Navigation Options