summaryrefslogtreecommitdiff
path: root/usr.bin/talk/get_names.c
Commit message (Collapse)AuthorAgeFilesLines
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=314436
* Remove hand-written version of strcspn().Ed Schouten2012-01-031-2/+1
| | | | | | | | The code searches for the first occurence of @, : or !. Upon failure, it returns the index of \0. This is exactly what strcspn() does. Notes: svn path=/head/; revision=229386
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-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 Notes: svn path=/head/; revision=216370
* Move unistd.h includes to individual .c files and remove unnecessaryXin LI2009-12-111-0/+1
| | | | | | | includes. Notes: svn path=/head/; revision=200418
* Utilize strlcpy().Xin LI2009-02-211-6/+3
| | | | Notes: svn path=/head/; revision=188886
* ANSIfy function prototypes. While I am there, constify some parameters andXin LI2008-04-281-4/+2
| | | | | | | | make use of C99 sparse initialization for static variables, this makes talk(1) to compile cleanly with WARNS=6. Notes: svn path=/head/; revision=178642
* Change the default behaviour of talk(1) to use "localhost" as theBruce M Simpson2004-06-141-1/+1
| | | | | | | | | | | | | | | | | | | | | "machine name" in ntalkd(8) request packets, when the destination and source are local. This should make talk(1) use much more pleasant for those security- conscious individuals who have chosen to bind talkd to "localhost". Previous to this change, talk(1) would require that the hostname of the machine, as retrieved by gethostname(3), resolved to a valid and reachable IPv4 address, using gethostbyname(3). This makes talk(1) dependent on a valid host entry for "localhost" in /etc/hosts (or the Domain Name System). PR: bin/23178 Submitted by: angui.sh admin (with cleanups) Notes: svn path=/head/; revision=130494
* WARNS=2 fixes with NO_WERROR set because of system-header originatingMark Murray2001-12-111-8/+10
| | | | | | | warnings. Use __FBSDID(). Notes: svn path=/head/; revision=87710
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | builtints (e.g., exit, strcmp). Notes: svn path=/head/; revision=78733
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add rcsid. Remove unused #includes (what about RU# ?). Change exit(-1) andPhilippe Charnier1998-01-141-14/+19
| | | | | | | add usage(). Notes: svn path=/head/; revision=32503
* Make talk automagically find out the interface IP address where theJoerg Wunsch1996-03-091-5/+3
| | | | | | | | | | remote peer will be connected through. This avoids the ``Checking for invitation on caller's machine'' problem for multi-homed hosts. Thanks to: Garrett, for his `find_interface' example Notes: svn path=/head/; revision=14443
* Partially back out previous fix (in cases ':' and '!'),Andrey A. Chernov1994-10-241-3/+9
| | | | | | | | leave case '.' as valid user name, not host reference. Document new behaviour. Notes: svn path=/head/; revision=3829
* Remove undocumented talk behaviour, when names likeAndrey A. Chernov1994-10-241-9/+3
| | | | | | | | | | aa.bb aa:bb and aa!bb treated as user+host and not as local user names (especially aa.bb is common case). Only @ is valid user/host separator according to manpage. Pointed-by: doctor@dream.demos.su Notes: svn path=/head/; revision=3823
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+118
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590