aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/talk
Commit message (Collapse)AuthorAgeFilesLines
* ANSIfy function prototypes. While I am there, constify some parameters andXin LI2008-04-2813-61/+36
| | | | | | | | 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
* Use socklen_t where appropriate.Stefan Farfeleder2005-03-111-1/+2
| | | | Notes: svn path=/head/; revision=143415
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Include missing headers.Stefan Farfeleder2005-02-092-0/+4
| | | | Notes: svn path=/head/; revision=141563
* Sort sections.Ruslan Ermilov2005-01-181-10/+10
| | | | Notes: svn path=/head/; revision=140420
* Document missing multibyte character support in utilities specifiedTim J. Robbins2004-07-031-1/+3
| | | | | | | by POSIX. Notes: svn path=/head/; revision=131511
* mdoc(7) policeBruce M Simpson2004-06-151-1/+1
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=130533
* Change the default behaviour of talk(1) to use "localhost" as theBruce M Simpson2004-06-142-1/+18
| | | | | | | | | | | | | | | | | | | | | "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
* Do not attempt ro read more than sizeof(buf) from stdin.Olivier Houchard2004-05-101-0/+2
| | | | Notes: svn path=/head/; revision=129090
* Handle window resizing better.Olivier Houchard2004-04-193-0/+65
| | | | | | | | Submitted by: Cyril Nguyen Huu Obtained from: OpenBSD Notes: svn path=/head/; revision=128445
* 1. Use socklen_t instead of intColin Percival2004-03-211-4/+4
| | | | | | | | | 2. Compare socket(2) return code to -1, not <= 0. Obtained from: OpenBSD rev. 1.9 Notes: svn path=/head/; revision=127263
* Use the new style struct sockaddr instead of osockaddr in system callsTim J. Robbins2003-09-282-2/+11
| | | | | | | | | so that talk works without COMPAT_43. Obtained from: NetBSD (christos), Rumi Szabolcs Notes: svn path=/head/; revision=120550
* Don't cast ioctl FIONREAD's argument to struct sgttyb *. This makesTim J. Robbins2003-09-281-1/+1
| | | | | | | | | | no function changes, but removes an unnecessary reference to a deprecated struct. Obtained from: NetBSD (thorpej) Notes: svn path=/head/; revision=120549
* remove whitespace at end of lineLuigi Rizzo2003-07-042-2/+2
| | | | Notes: svn path=/head/; revision=117238
* Add a reference to talkd(8) as a hint that talk(1) depends on aGiorgos Keramidas2003-01-231-1/+2
| | | | | | | | | service to work correctly. Inspired by: P. U. Kruppa <520023893678-0001@t-online.de> Notes: svn path=/head/; revision=109762
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-012-2/+2
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* mdoc(7) police: Deal with self-xrefs.Ruslan Ermilov2002-12-241-1/+1
| | | | Notes: svn path=/head/; revision=108257
* Remove local prototypes for main().Juli Mallett2002-08-191-2/+0
| | | | Notes: svn path=/head/; revision=102084
* mdoc fun: add a few more sentence breaks.Giorgos Keramidas2002-07-151-4/+8
| | | | Notes: svn path=/head/; revision=100048
* Clear local screen when ^D is typed.Luigi Rizzo2002-07-143-2/+24
| | | | | | | | | Use setproctitle to remove arguments from 'ps' output. MFC after: 3 days Notes: svn path=/head/; revision=99965
* nroff and pr no longer try to disallow messages.Tim J. Robbins2002-06-081-7/+1
| | | | Notes: svn path=/head/; revision=98046
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-222-28/+28
| | | | Notes: svn path=/head/; revision=92922
* o Move NTOHL() and associated macros into <sys/param.h>. These areMike Barcroft2002-02-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm Notes: svn path=/head/; revision=90868
* Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.Mark Murray2002-02-081-1/+0
| | | | Notes: svn path=/head/; revision=90416
* WARNS=2 fixes with NO_WERROR set because of system-header originatingMark Murray2001-12-1114-105/+120
| | | | | | | warnings. Use __FBSDID(). Notes: svn path=/head/; revision=87710
* Add xref to wall(1).Ruslan Ermilov2001-11-201-0/+1
| | | | | | | | PR: docs/32128 Submitted by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> (partially) Notes: svn path=/head/; revision=86672
* Print the peer's name and address in the "Connection establish"Dima Dorfman2001-08-091-2/+25
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=81346
* Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. TheSheldon Hearn2001-07-261-1/+2
| | | | | | | | | | definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms> Notes: svn path=/head/; revision=80381
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-242-0/+2
| | | | | | | builtints (e.g., exit, strcmp). Notes: svn path=/head/; revision=78733
* It may happen so that the local talk daemon is not running.Ruslan Ermilov2000-10-051-0/+1
| | | | | | | Let the user know... Notes: svn path=/head/; revision=66682
* Remove unneded -ltermcapAndrey A. Chernov2000-09-161-2/+2
| | | | Notes: svn path=/head/; revision=65910
* Fix a bug when talking to non-freebsd machines where carriage returnPaul Saab2000-07-111-0/+4
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=62932
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* talk depended on side effects of curses includes.Peter Wemm1999-08-302-0/+2
| | | | Notes: svn path=/head/; revision=50636
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2814-14/+14
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Remove couple of 'extern int errno'. (They turned to something funny whenDmitrij Tejblum1999-02-141-4/+1
| | | | | | | <errno.h> included). Notes: svn path=/head/; revision=44026
* Fixed printf format errors.Bruce Evans1998-07-061-2/+2
| | | | Notes: svn path=/head/; revision=37453
* Add #include <string.h> to get prototype for memcpy().John Birrell1998-02-151-1/+2
| | | | Notes: svn path=/head/; revision=33359
* Add rcsid. Remove unused #includes (what about RU# ?). Change exit(-1) andPhilippe Charnier1998-01-1412-60/+82
| | | | | | | add usage(). Notes: svn path=/head/; revision=32503
* Nm talk -> Nm.Philippe Charnier1997-08-131-3/+3
| | | | Notes: svn path=/head/; revision=28151
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-142-2/+2
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=21673
* Enable idlok() in both windows. This is actually a no-op for libcursesPeter Wemm1996-12-281-0/+2
| | | | | | | | | (which doesn't use the setting at all), but when linking with recent versions of libncurses, ncurses screws up without it for some reason (presumably a ncurses bug). Notes: svn path=/head/; revision=20988
* If running under a typical sysv-style curses, including ncurses, usePeter Wemm1996-08-201-3/+5
| | | | | | | | | | | hline() to draw the window split rather than fudging it with dashes. This causes the line to be drawn in line-draw characters if the terminal description has them. Suggested by: ache Notes: svn path=/head/; revision=17698
* Update some ancient warts in talk:Peter Wemm1996-08-193-20/+25
| | | | | | | | | | | | | - 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. Notes: svn path=/head/; revision=17676
* Cast to unsigned char instead of unsignedAndrey A. Chernov1996-04-031-2/+2
| | | | | | | Cast ctype argument to unsigned char Notes: svn path=/head/; revision=15022