summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger/net.c
Commit message (Collapse)AuthorAgeFilesLines
* Staticify cleanup() which is not referenced in other places.delphij2011-06-211-1/+1
| | | | MFC after: 2 weeks
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | 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
* Migrate finger(1) towards utmpx.ed2010-01-131-2/+1
| | | | | | 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.
* Migrate finger(1) away from <utmp.h>.ed2009-12-281-1/+2
| | | | | | | 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.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-1/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+1
| | | | Tested with: make universe
* Remove T/TCP support, and the -T option which was needed to disable it.des2007-04-111-7/+1
| | | | MFC after: 3 weeks
* Remove spurious semicolons. Outside of functions they are actually errors butstefanf2004-05-161-1/+1
| | | | | | | | GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5
* Make a CR/LF sequence measure up to its name: the order of the CR and LFroam2002-12-021-1/+1
| | | | | | | | | | | 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
* ANSIify function definitions.dwmalone2002-09-041-6/+1
| | | | | | | | | 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
* add -4 and -6 option to be able to specify an address family.ume2002-07-221-1/+2
| | | | | Requested by: matusita MFC after: 1 week
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-101-5/+6
| | | | | | | | 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.
* WARNS=2 fix, remove 'register' and use __FBSDID().markm2001-12-021-11/+13
|
* Include missing header files which define functions for which gcc hasdd2001-06-241-0/+1
| | | | builtins (e.g., exit, strcmp).
* Spellingcharnier2001-02-061-12/+6
| | | | Remove unused #includes
* -Wall cleanup.ru2000-10-231-2/+2
| | | | PR: 22187
* Don't assume ai0->ai_canonname will always be filled in. Print thewollman2000-09-241-1/+6
| | | | | | user-supplied host name if we can't get a canonical name. Obtained from: contrib/tcp_wrappers/socket.c rev. 1.4 (in spirit)
* Implement IPv6 support. Also restructure the way multi-homed hostswollman2000-09-221-57/+91
| | | | are treated, regardless of protocol.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Impliment elements of TCP Wrappers's `safe_finger'.obrien1999-05-081-1/+28
| | | | | | | * 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)
* Don't assume that hp->h_lenght == 4. Be conservative in its use.imp1998-06-091-2/+3
| | | | Submitted by: J. Assange a long time ago.
* So somebody actually found language in the FINGER RFC which requireswollman1997-08-011-3/+3
| | | | | | | | 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.
* Add rcsid, usage(). Silent -Wall. Use warn(3).charnier1997-07-021-4/+9
|
* Merge from Lite2peter1997-03-111-4/+3
|
* Allow the user to disable the use of T/TCP by setting the -T option.olah1996-03-151-0/+7
| | | | This option becomes useless when all TCP stacks are fixed out there.
* Print 8bit chars from the net if current locale allows themache1996-03-101-2/+3
|
* Implement client-side transaction TCP. This has little effectwollman1995-12-171-13/+39
| | | | | if the server doesn't support it. (This is intended mostly as an example.)
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* Remove extra newline introduced in Net/2pst1994-12-051-1/+0
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+148
OpenPOWER on IntegriCloud