History log of /freebsd-current/usr.bin/finger/net.c
Revision Date Author Comments
# 5e3934b1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


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

usr.bin: 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


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

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 8a16b7a1 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# 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 too pedantic, so give up on that point.

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


# 7a4b1114 18-Apr-2016 Marcelo Araujo <araujo@FreeBSD.org>

Use NULL instead of 0 for pointers.

strchr(3) will return NULL if the character does not appear in the
string.

MFC after: 2 weeks.


# 410df9fd 18-Jan-2016 Baptiste Daroussin <bapt@FreeBSD.org>

Fix printing multibyte printing when performing a networked finger(1) request

MFC after: 1 week


# cde9717b 21-Jun-2011 Xin LI <delphij@FreeBSD.org>

Staticify cleanup() which is not referenced in other places.

MFC after: 2 weeks


# da52b4ca 11-Dec-2010 Joel Dahl <joel@FreeBSD.org>

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 550dcc59 13-Jan-2010 Ed Schouten <ed@FreeBSD.org>

Migrate finger(1) towards utmpx.

It was already ported to use libulog, which makes it simpler now. Be
sure to catch the error returned by setutxdb(). Otherwise it may perform
a lookup on the utx.active database.


# 70ad88f3 28-Dec-2009 Ed Schouten <ed@FreeBSD.org>

Migrate finger(1) away from <utmp.h>.

Unfortunately it also uses lastlog, which means we must resort to local
extensions of the utmpx-interface. Because the user name and TTY name
are now nul-terminated, there is no need to copy around strings as
often.


# 821df508 12-Dec-2009 Xin LI <delphij@FreeBSD.org>

Revert most part of 200420 as requested, as more review and polish is
needed.


# 6f2d3221 11-Dec-2009 Xin LI <delphij@FreeBSD.org>

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# f8871cc8 11-Apr-2007 Dag-Erling Smørgrav <des@FreeBSD.org>

Remove T/TCP support, and the -T option which was needed to disable it.

MFC after: 3 weeks


# a7526044 16-May-2004 Stefan Farfeleder <stefanf@FreeBSD.org>

Remove spurious semicolons. Outside of functions they are actually errors but
GCC doesn't warn about them without -pedantic.

Approved by: das (mentor)
PR: 56649
Reviewed by: md5


# 8c9589bd 02-Dec-2002 Peter Pentchev <roam@FreeBSD.org>

Make a CR/LF sequence measure up to its name: the order of the CR and LF
characters was reversed, resulting in some network appliances, including
at least some NAS devices from Ascend, not recognizing our finger(1)
request.

PR: 45914
Submitted by: J R Matthews <jrm@delta-e.com.au>
Approved by: re (rwatson)
MFC after: 2 weeks


# f4ac32de 04-Sep-2002 David Malone <dwmalone@FreeBSD.org>

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


# 3daa8471 22-Jul-2002 Hajimu UMEMOTO <ume@FreeBSD.org>

add -4 and -6 option to be able to specify an address family.

Requested by: matusita
MFC after: 1 week


# 9f5b04e9 10-Dec-2001 David Malone <dwmalone@FreeBSD.org>

Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.


# 4e030ba6 02-Dec-2001 Mark Murray <markm@FreeBSD.org>

WARNS=2 fix, remove 'register' and use __FBSDID().


# 7a19d1bb 24-Jun-2001 Dima Dorfman <dd@FreeBSD.org>

Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).


# 4c86f3ad 06-Feb-2001 Philippe Charnier <charnier@FreeBSD.org>

Spelling
Remove unused #includes


# 1e832bf8 22-Oct-2000 Ruslan Ermilov <ru@FreeBSD.org>

-Wall cleanup.

PR: 22187


# 2804330f 23-Sep-2000 Garrett Wollman <wollman@FreeBSD.org>

Don't assume ai0->ai_canonname will always be filled in. Print the
user-supplied host name if we can't get a canonical name.

Obtained from: contrib/tcp_wrappers/socket.c rev. 1.4 (in spirit)


# e45ccde7 21-Sep-2000 Garrett Wollman <wollman@FreeBSD.org>

Implement IPv6 support. Also restructure the way multi-homed hosts
are treated, regardless of protocol.


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# dd5288f3 07-May-1999 David E. O'Brien <obrien@FreeBSD.org>

Impliment elements of TCP Wrappers's `safe_finger'.
* if run by root (or root process) drop privs
* ensure output size is not infinate (net finger only)
* ensure output lines are not infinate in length (net finger only)
* do not allow finger client to run longer than 3 minutes (net finger only)


# a716ad66 08-Jun-1998 Warner Losh <imp@FreeBSD.org>

Don't assume that hp->h_lenght == 4. Be conservative in its use.
Submitted by: J. Assange a long time ago.


# a32cbefa 01-Aug-1997 Garrett Wollman <wollman@FreeBSD.org>

So somebody actually found language in the FINGER RFC which requires
implementations to leave the client side open until the server closes.
While this is totally idiotic, it seems as if some servers actually require
it (e.g., the one at mit.mit.edu). So, we bow to the weight of the bogus
standard and disable the initial close. Hopefully now fetch(1) can serve
the role of T/TCP demonstration application.


# b14d8277 02-Jul-1997 Philippe Charnier <charnier@FreeBSD.org>

Add rcsid, usage(). Silent -Wall. Use warn(3).


# df3f5d9d 11-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Merge from Lite2


# 0da30e9a 11-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.


# 03801815 15-Mar-1996 Andras Olah <olah@FreeBSD.org>

Allow the user to disable the use of T/TCP by setting the -T option.
This option becomes useless when all TCP stacks are fixed out there.


# a0a47889 10-Mar-1996 Andrey A. Chernov <ache@FreeBSD.org>

Print 8bit chars from the net if current locale allows them


# 1e474c62 17-Dec-1995 Garrett Wollman <wollman@FreeBSD.org>

Implement client-side transaction TCP. This has little effect
if the server doesn't support it. (This is intended mostly as
an example.)


# 7799f52a 30-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


# 2e8df940 05-Dec-1994 Paul Traina <pst@FreeBSD.org>

Remove extra newline introduced in Net/2


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources