summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man2/connect.2
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
commit932e4432596447eb9331cc2a2bb74a26a35b4efc (patch)
tree95161711ea07fd64f0c82d6e7943024c033dd5a8 /upstream/opensuse-tumbleweed/man2/connect.2
parentAdding debian version 4.22.0-1. (diff)
downloadmanpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.tar.xz
manpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.zip
Merging upstream version 4.23.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/opensuse-tumbleweed/man2/connect.2')
-rw-r--r--upstream/opensuse-tumbleweed/man2/connect.218
1 files changed, 10 insertions, 8 deletions
diff --git a/upstream/opensuse-tumbleweed/man2/connect.2 b/upstream/opensuse-tumbleweed/man2/connect.2
index abd9e871..b35d991f 100644
--- a/upstream/opensuse-tumbleweed/man2/connect.2
+++ b/upstream/opensuse-tumbleweed/man2/connect.2
@@ -16,7 +16,7 @@
.\" Modified 1998, 1999 by Andi Kleen
.\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
-.TH connect 2 2023-03-30 "Linux man-pages 6.05.01"
+.TH connect 2 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
connect \- initiate a connection on a socket
.SH LIBRARY
@@ -25,7 +25,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <sys/socket.h>
-.PP
+.P
.BI "int connect(int " sockfd ", const struct sockaddr *" addr ,
.BI " socklen_t " addrlen );
.fi
@@ -47,7 +47,7 @@ is determined by the address space of the socket
see
.BR socket (2)
for further details.
-.PP
+.P
If the socket
.I sockfd
is of type
@@ -63,18 +63,18 @@ or
this call attempts to make a connection to the socket that is bound
to the address specified by
.IR addr .
-.PP
+.P
Some protocol sockets (e.g., UNIX domain stream sockets)
may successfully
.BR connect ()
only once.
-.PP
+.P
Some protocol sockets
(e.g., datagram sockets in the UNIX and Internet domains)
may use
.BR connect ()
multiple times to change their association.
-.PP
+.P
Some protocol sockets
(e.g., TCP sockets as well as datagram sockets in the UNIX and
Internet domains)
@@ -104,7 +104,9 @@ in the path prefix.
(See also
.BR path_resolution (7).)
.TP
-.BR EACCES ", " EPERM
+.B EACCES
+.TQ
+.B EPERM
The user tried to connect to a broadcast address without having the socket
broadcast flag enabled or the connection request failed because of a local
firewall rule.
@@ -216,7 +218,7 @@ be very long when syncookies are enabled on the server.
POSIX.1-2008.
.SH HISTORY
POSIX.1-2001, SVr4, 4.4BSD,
-.RB (connect ()
+.RB ( connect ()
first appeared in 4.2BSD).
.\" SVr4 documents the additional
.\" general error codes