History log of /freebsd-10.1-release/usr.bin/chat/chat.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 241737 19-Oct-2012 ed

More -Wmissing-variable-declarations fixes.

In addition to adding `static' where possible:

- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.


# 236213 28-May-2012 kevlo

Make sure that each va_start has one and only one matching va_end,
especially in error cases.


# 176888 06-Mar-2008 delphij

Merge revisions 1.10 and 1.11 from DragonFly:

- Use real getopt() handling instead of the hand-rolled and
IOCCC-worthy "Micro getopt()" macros, plus clean up to the
option handling code:
* Sort the options in the switch statement;
* Plug piddling memory leaks when processing repeated options
by freeing strings before allocating them for a second time;
* Die with a fatal error if the requested report file cannot
be opened for appending;
* Don't call init() before usage() (to prevent the usage
message being mangled by changes to the terminal settings;)
- Clean up the usage message, both in usage() and in the main
program comment, both stylistically (sort and combine options)
and for accuracy (following the manual page, make note of the -s
and -S flags, and use the term 'send' instead of 'say' to reduce
confusion (SAY is the name of a command for output to the user,
not the connection.))

Obtained from: DragonFly


# 121784 31-Oct-2003 kientzle

Rename logf --> chat_logf to avoid naming conflicts
with GCC built-in (and with C90 reserved library name).

Approved by: gordon (Mentor)


# 119316 22-Aug-2003 markm

Big cleanup. Remove unused stuff, make closer to style(9).

OK'ed by: peter (long time ago)


# 102412 25-Aug-2002 charnier

Replace various spelling with FALLTHROUGH which is lint()able


# 102084 19-Aug-2002 jmallett

Remove local prototypes for main().


# 92920 21-Mar-2002 imp

remove __P


# 80381 26-Jul-2001 sheldonh

Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.

Submitted by: David Hill <david@phobia.ms>


# 53686 25-Nov-1999 kris

Fix a buffer overflow due to sending strings >1k in length. This is unlikely
to be a security problem, but it's not totally impossible. OpenBSD take note

Reviewed by: imp


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 41568 06-Dec-1998 archie

Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).


# 37126 23-Jun-1998 peter

Merge ppp 2.3.3 -> 2.3.5 changes (for what it's worth)


# 34766 21-Mar-1998 peter

merge ppp-2.3.3 changes onto mainline


# 32069 28-Dec-1997 alex

-Wall cleanup.


# 28597 22-Aug-1997 peter

Merge ppp-2.3.1 changes onto mainline


# 26880 24-Jun-1997 charnier

Remove use of program_name variable.


# 24541 02-Apr-1997 jmg

make it so that chat doesn't fail when it can't get terminal params..
this allows it to work on non-tty input... also don't warn when this
happens as it could get noisy...

Silence is Acceptance


# 23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 11990 31-Oct-1995 peter

Merge in changes from ppp-2.2's chat onto the mainline...


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 5168 18-Dec-1994 ache

Use proper lock dir name


# 4375 12-Nov-1994 lars

This commit was generated by cvs2svn to compensate for changes in r4374,
which included commits to RCS files with non-trunk default branches.


# 4374 12-Nov-1994 lars

chat for ppp, from ppp 2.1.2