History log of /freebsd-10.1-release/usr.bin/talk/io.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


# 216370 11-Dec-2010 joel

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


# 178642 28-Apr-2008 delphij

ANSIfy function prototypes. While I am there, constify some parameters and
make use of C99 sparse initialization for static variables, this makes talk(1)
to compile cleanly with WARNS=6.


# 129090 10-May-2004 cognet

Do not attempt ro read more than sizeof(buf) from stdin.


# 128445 19-Apr-2004 cognet

Handle window resizing better.

Submitted by: Cyril Nguyen Huu
Obtained from: OpenBSD


# 120549 28-Sep-2003 tjr

Don't cast ioctl FIONREAD's argument to struct sgttyb *. This makes
no function changes, but removes an unnecessary reference to a
deprecated struct.

Obtained from: NetBSD (thorpej)


# 87710 11-Dec-2001 markm

WARNS=2 fixes with NO_WERROR set because of system-header originating
warnings. Use __FBSDID().


# 81346 09-Aug-2001 dd

Print the peer's name and address in the "Connection establish"
message. Similar information is given by the talk daemon when a
connection is requested, but that part isn't on the screen when the
main "talk" screen appears, and sometimes it's nice to know who you're
talking to.

Reviewed by: ru


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


# 62932 10-Jul-2000 ps

Fix a bug when talking to non-freebsd machines where carriage return
was being interperated and displayed as ^M on the remote side.

Old curses used to change the behavior of the tty and how carriage
return was interperated via STDIN. ncurses does this on a per-window
basis within the library rather than using the tty modes. Since
talk is bypassing ncurses, it was missing the conversion.

Reviewed by: peter


# 50636 30-Aug-1999 peter

talk depended on side effects of curses includes.


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 44026 14-Feb-1999 dt

Remove couple of 'extern int errno'. (They turned to something funny when
<errno.h> included).


# 32503 14-Jan-1998 charnier

Add rcsid. Remove unused #includes (what about RU# ?). Change exit(-1) and
add usage().


# 17676 19-Aug-1996 peter

Update some ancient warts in talk:
- use termios, not sgtty
- dont use _putchar(), that was a BSD-curses specific feature not in
other curses packages (such as ncurses)
- use sigaction, not sigvec while I'm there
- box() does different things under sysv/ncurses on 1-line high windows,
and BSD-curses doesn't have hline(), so do it by adding characters
instead. That works on both styles of curses.


# 14443 09-Mar-1996 joerg

Make talk automagically find out the interface IP address where the
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


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 7451 28-Mar-1995 ache

Don't allow talk own messages wrap around on the screen, just
scroll them like normal user input/output does.


# 1591 27-May-1994 rgrimes

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


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources