<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/sys/connect.2, branch release/5.2.1</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F5.2.1</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F5.2.1'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2003-08-06T14:21:06Z</updated>
<entry>
<title>Document that connect(2) can return EINTR, and that it</title>
<updated>2003-08-06T14:21:06Z</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2003-08-06T14:21:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=92a9c0bd86730274db7c60d58d44505964cc2b85'/>
<id>urn:sha1:92a9c0bd86730274db7c60d58d44505964cc2b85</id>
<content type='text'>
can return EALREADY for a socket in blocking mode as well.
</content>
</entry>
<entry>
<title>Document an additional error return value.  The connect(2) call can also</title>
<updated>2003-07-23T22:00:08Z</updated>
<author>
<name>Diomidis Spinellis</name>
<email>dds@FreeBSD.org</email>
</author>
<published>2003-07-23T22:00:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=55e24f6e773b7c824eb06276faf1386b20bf7440'/>
<id>urn:sha1:55e24f6e773b7c824eb06276faf1386b20bf7440</id>
<content type='text'>
return EACCES on non-Unix domain sockets as demonstrated by the
following program:

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;errno.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;arpa/inet.h&gt;

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

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

	bzero((char *)&amp;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 *)&amp;rem_addr,
sizeof(rem_addr)) &lt; 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
</content>
</entry>
<entry>
<title>[1]	- Document EHOSTUNREACH as a possible error</title>
<updated>2003-04-01T20:25:46Z</updated>
<author>
<name>Ceri Davies</name>
<email>ceri@FreeBSD.org</email>
</author>
<published>2003-04-01T20:25:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d5882f3f58bae606add6fc7316fa4cae78fc65e5'/>
<id>urn:sha1:d5882f3f58bae606add6fc7316fa4cae78fc65e5</id>
<content type='text'>
[2]	- Remove a contraction

PR:		docs/50401
Submitted by:	[1] Slaven Rezic &lt;slaven@rezic.de&gt;
MFC after:	1 week
</content>
</entry>
<entry>
<title>mdoc(7) police: "The .Fa argument.".</title>
<updated>2002-12-19T09:40:28Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-12-19T09:40:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2efeeba554cbd7bdee9cfe17641c8bd335c7972f'/>
<id>urn:sha1:2efeeba554cbd7bdee9cfe17641c8bd335c7972f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mdoc(7) police: Tidy up the syscall language.</title>
<updated>2002-12-18T09:22:32Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-12-18T09:22:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2faeeff4c9bb77cca44a977d96c1a9fc7af8d8a3'/>
<id>urn:sha1:2faeeff4c9bb77cca44a977d96c1a9fc7af8d8a3</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Remove the internal implementation details of wrapping syscalls,</title>
<updated>2001-10-26T17:38:20Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-10-26T17:38:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=db8caf03e5070781ee5109c88d8a79c1ba6e0c73'/>
<id>urn:sha1:db8caf03e5070781ee5109c88d8a79c1ba6e0c73</id>
<content type='text'>
which do not match the reality anyway.

Approved by:	deischen, bde
</content>
</entry>
<entry>
<title>mdoc(7) police: Use the new .In macro for #include statements.</title>
<updated>2001-10-01T16:09:29Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-10-01T16:09:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=32eef9aeb1f39a1623cea55da147c89abbd5b9a5'/>
<id>urn:sha1:32eef9aeb1f39a1623cea55da147c89abbd5b9a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.</title>
<updated>2001-08-09T13:32:13Z</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2001-08-09T13:32:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b1250632c5fc76d3b403ef995ee04bf5db2b8493'/>
<id>urn:sha1:b1250632c5fc76d3b403ef995ee04bf5db2b8493</id>
<content type='text'>
Reviewed by:	ru
</content>
</entry>
<entry>
<title>Remove whitespace at EOL.</title>
<updated>2001-07-15T07:53:42Z</updated>
<author>
<name>Dima Dorfman</name>
<email>dd@FreeBSD.org</email>
</author>
<published>2001-07-15T07:53:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7ebcc426efefea9cd16ac6f565e72030c608f7a4'/>
<id>urn:sha1:7ebcc426efefea9cd16ac6f565e72030c608f7a4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mdoc(7) police: removed HISTORY info from the .Os call.</title>
<updated>2001-07-10T13:41:46Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-07-10T13:41:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a307d598387eeb7d775332066d996ab0dadf7e5f'/>
<id>urn:sha1:a307d598387eeb7d775332066d996ab0dadf7e5f</id>
<content type='text'>
</content>
</entry>
</feed>
