History log of /src/lib/libsys/connect.2 (Results 1 – 25 of 38)
Revision Date Author Comments
# 8269e767 14-Nov-2023 Brooks Davis <brooks@FreeBSD.org>

libsys: relocate implementations and manpages

Remove core system call implementations and documentation to lib/libsys
and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>.
Update paths

libsys: relocate implementations and manpages

Remove core system call implementations and documentation to lib/libsys
and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>.
Update paths to allow libc to find them in their new home.

Reviewed by: kib, emaste, imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/908

show more ...


# dc36d6f9 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

lib: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl s

lib: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

show more ...


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96

show more ...


# 310d2ce0 18-Aug-2016 Kevin Lo <kevlo@FreeBSD.org>

Remove <sys/types.h> from the SYNOPSIS.


# 74f9cea2 04-Feb-2016 Jason Helfman <jgh@FreeBSD.org>

- connect(2) Clarify namelen

PR: 206838
Submitted by: t@tobik.me
Approved by: bcr (mentor)
MFH: after 1 week
Differential Revision: https://reviews.freebsd.org/D5194


# c1efb887 30-Sep-2014 Bryan Drewery <bdrewery@FreeBSD.org>

Document [EPERM] for UNIX sockets.

MFC after: 2 weeks


# 521aa90c 26-Jun-2014 Sergey Kandaurov <pluknet@FreeBSD.org>

Document EINVAL as per POSIX.

This also follows r124335-r124336, r225827.

PR: 191382
MFC after: 1 week
Sponsored by: Nginx, Inc.


# 1bc1532c 06-Sep-2010 Glen Barber <gjb@FreeBSD.org>

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


# c879ae35 09-Jan-2007 Warner Losh <imp@FreeBSD.org>

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

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


# a73a3ab5 17-Sep-2006 Ruslan Ermilov <ru@FreeBSD.org>

Markup fixes.


# 25dbf7fe 16-Aug-2006 Wes Peters <wes@FreeBSD.org>

Document EAGAIN failure per PR. (Finally!)

PR: 24125


# d37ea998 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Removed trailing whitespace.


# 92a9c0bd 06-Aug-2003 Yaroslav Tykhiy <ytykhiy@gmail.com>

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


# 55e24f6e 23-Jul-2003 Diomidis Spinellis <dds@FreeBSD.org>

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>
#in

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

show more ...


# d5882f3f 01-Apr-2003 Ceri Davies <ceri@FreeBSD.org>

[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


# 2efeeba5 19-Dec-2002 Ruslan Ermilov <ru@FreeBSD.org>

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


# 2faeeff4 18-Dec-2002 Ruslan Ermilov <ru@FreeBSD.org>

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 HISTOR

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.

show more ...


# db8caf03 26-Oct-2001 Ruslan Ermilov <ru@FreeBSD.org>

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

Approved by: deischen, bde


# 32eef9ae 01-Oct-2001 Ruslan Ermilov <ru@FreeBSD.org>

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


# b1250632 09-Aug-2001 Yaroslav Tykhiy <ytykhiy@gmail.com>

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

Reviewed by: ru


# 7ebcc426 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# a307d598 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

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


# 70d51341 09-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

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


# c23155a4 22-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: Er macro usage cleanup.


12