History log of /freebsd-10.1-release/lib/libc/sys/connect.2
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 268223 03-Jul-2014 pluknet

MFC r267909: Document EINVAL.

PR: 191382


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 212269 06-Sep-2010 gjb

Add ECONNRESET to list of possible errors in connect(2).

PR: 148683
Submitted by: Gennady Proskurin <gpr at mail dot ru>
Approved by: keramida (mentor)
MFC after: 1 week


# 165903 08-Jan-2007 imp

Per Regents of the University of Calfornia letter, remove advertising
clause.

# If I've done so improperly on a file, please let me know.


# 162385 17-Sep-2006 ru

Markup fixes.


# 161344 16-Aug-2006 wes

Document EAGAIN failure per PR. (Finally!)

PR: 24125


# 131472 02-Jul-2004 ru

Removed trailing whitespace.


# 118545 06-Aug-2003 yar

Document that connect(2) can return EINTR, and that it
can return EALREADY for a socket in blocking mode as well.


# 117940 23-Jul-2003 dds

Document an additional error return value. The connect(2) call can also
return EACCES on non-Unix domain sockets as demonstrated by the
following program:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

int
main(int argc, char *argv[])
{
struct sockaddr_in rem_addr;
int sock;

if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
perror("socket");
exit(1);
}

bzero((char *)&rem_addr, sizeof(rem_addr));
rem_addr.sin_family = AF_INET;
rem_addr.sin_addr.s_addr = INADDR_NONE;
rem_addr.sin_port = htons(10000);

if (connect(sock, (struct sockaddr *)&rem_addr,
sizeof(rem_addr)) < 0) {
perror("connect");
exit(1);
}
}

The call chain returning this value is probably:

kern/uipc_syscalls.c:connect
kern/uipc_socket.c:soconnect
netinet/tcp_usrreq.c:tcp_usr_connect
netinet/tcp_output.c:tcp_output
netinet/ip_output.c:ip_output

Reviewed by: schweikh (mentor)
MFC after: 2 weeks


# 112955 01-Apr-2003 ceri

[1] - Document EHOSTUNREACH as a possible error

[2] - Remove a contraction

PR: docs/50401
Submitted by: [1] Slaven Rezic <slaven@rezic.de>
MFC after: 1 week


# 108087 19-Dec-2002 ru

mdoc(7) police: "The .Fa argument.".


# 108028 18-Dec-2002 ru

mdoc(7) police: Tidy up the syscall language.

Stop calling system calls "function calls".

Use "The .Fn system call" a-la "The .Nm utility".

When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.


# 85555 26-Oct-2001 ru

Remove the internal implementation details of wrapping syscalls,
which do not match the reality anyway.

Approved by: deischen, bde


# 84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


# 81352 09-Aug-2001 yar

Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.

Reviewed by: ru


# 79754 15-Jul-2001 dd

Remove whitespace at EOL.


# 79531 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


# 79454 09-Jul-2001 dd

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


# 69051 22-Nov-2000 ru

mdoc(7) police: Er macro usage cleanup.


# 59954 04-May-2000 phantom

Use `Er' variable to define first column width in ERRORS section. It was
initially suggested by mdoc(7) style, but was broken over the years


# 59460 21-Apr-2000 phantom

Introduce ".Lb" macro to libc manpages.

More libraries manpages updates following.


# 57686 02-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


# 53678 24-Nov-1999 phk

General clean-up of socket.h and associated sources to synchronise up
with NetBSD and the Single Unix Specification v2.

This updates some structures with other, almost equivalent types and
effort is under way to get the whole more consistent.

Also removes a double definition of INET6 and some other clean-ups.

Reviewed by: green, bde, phk
Some part obtained from: NetBSD, SUSv2 specification


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48794 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


# 24822 11-Apr-1997 bde

Fixed missing const(s) or #include(s) in synopsis.


# 24163 23-Mar-1997 jmg

add xrefs for getpeername, so other people that look for it can find it.. :)


# 21907 20-Jan-1997 wosch

Sort cross references.


# 21570 11-Jan-1997 mpp

Remove the EINVAL error from the ERRORS sections that
say is means that a pathname had the high-order bit
set, since this is no longer an error.


# 17780 22-Aug-1996 mpp

Update a bunch of man pages to use .Fn instead
of .Nm when referencing funciton names.


# 13545 21-Jan-1996 julian

Reviewed by: julian and (hsu?)
Submitted by: John Birrel(L?)

changes for threadsafe operations


# 1574 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1573,
which included commits to RCS files with non-trunk default branches.


# 1573 27-May-1994 rgrimes

BSD 4.4 Lite Lib Sources