Commit Graph

61 Commits

Author SHA1 Message Date
Stefan Farfeleder
595e532309 Use socklen_t where appropriate. 2005-03-11 14:17:12 +00:00
Ruslan Ermilov
0227791b40 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
Stefan Farfeleder
a3eb24c68b Include missing headers. 2005-02-09 09:13:36 +00:00
Ruslan Ermilov
6c7216df78 Sort sections. 2005-01-18 13:43:56 +00:00
Tim J. Robbins
4f45d81178 Document missing multibyte character support in utilities specified
by POSIX.
2004-07-03 01:28:21 +00:00
Bruce M Simpson
538a4c1f75 mdoc(7) police
Submitted by:	ru
2004-06-15 16:48:42 +00:00
Bruce M Simpson
9d61853d9f Change the default behaviour of talk(1) to use "localhost" as the
"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)
2004-06-14 22:34:13 +00:00
Olivier Houchard
72d8d1c7f3 Do not attempt ro read more than sizeof(buf) from stdin. 2004-05-10 15:52:16 +00:00
Olivier Houchard
ec8ffccbdc Handle window resizing better.
Submitted by:	Cyril Nguyen Huu
Obtained from:	OpenBSD
2004-04-19 21:37:29 +00:00
Colin Percival
a616808417 1. Use socklen_t instead of int
2. Compare socket(2) return code to -1, not <= 0.

Obtained from:	OpenBSD rev. 1.9
2004-03-21 08:14:39 +00:00
Tim J. Robbins
6613c32aa0 Use the new style struct sockaddr instead of osockaddr in system calls
so that talk works without COMPAT_43.

Obtained from:	NetBSD (christos), Rumi Szabolcs
2003-09-28 09:45:56 +00:00
Tim J. Robbins
7045754fcf 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)
2003-09-28 09:21:24 +00:00
Luigi Rizzo
2233a14e50 remove whitespace at end of line 2003-07-04 20:44:25 +00:00
Giorgos Keramidas
57f9e15a0e Add a reference to talkd(8) as a hint that talk(1) depends on a
service to work correctly.

Inspired by:	P. U. Kruppa <520023893678-0001@t-online.de>
2003-01-23 22:40:18 +00:00
Jens Schweikhardt
9d5abbddbf Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
2003-01-01 18:49:04 +00:00
Ruslan Ermilov
facc67676f mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
Juli Mallett
3a7fc8ce59 Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
Giorgos Keramidas
0d4ac71385 mdoc fun: add a few more sentence breaks. 2002-07-15 07:51:10 +00:00
Luigi Rizzo
8aed91ca2d Clear local screen when ^D is typed.
Use setproctitle to remove arguments from 'ps' output.

MFC after: 3 days
2002-07-14 14:08:43 +00:00
Tim J. Robbins
21e502a74c nroff and pr no longer try to disallow messages. 2002-06-08 10:19:07 +00:00
Philippe Charnier
e8937ba009 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
Warner Losh
3f330d7d1a remove __P 2002-03-22 01:42:45 +00:00
Mike Barcroft
fd8e4ebc8c o Move NTOHL() and associated macros into <sys/param.h>. These are
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
2002-02-18 20:35:27 +00:00
Mark Murray
e35f9517d6 Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3. 2002-02-08 23:07:37 +00:00
Mark Murray
caa648017b WARNS=2 fixes with NO_WERROR set because of system-header originating
warnings. Use __FBSDID().
2001-12-11 23:51:14 +00:00
Ruslan Ermilov
fc414536e7 Add xref to wall(1).
PR:		docs/32128
Submitted by:	Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> (partially)
2001-11-20 15:39:58 +00:00
Dima Dorfman
e896c344fb 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
2001-08-09 06:45:35 +00:00
Sheldon Hearn
e1b4d8d074 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>
2001-07-26 11:02:39 +00:00
Ruslan Ermilov
625003720a mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
Dima Dorfman
70d51341bf mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
Dima Dorfman
9582ea7e62 Include missing header files which define functions for which gcc has
builtints (e.g., exit, strcmp).
2001-06-24 23:22:14 +00:00
Ruslan Ermilov
9b9c06b091 It may happen so that the local talk daemon is not running.
Let the user know...
2000-10-05 17:39:01 +00:00
Andrey A. Chernov
2aed24b487 Remove unneded -ltermcap 2000-09-16 03:30:50 +00:00
Paul Saab
11128de973 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
2000-07-11 01:31:39 +00:00
Sheldon Hearn
87faa07bec Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
Peter Wemm
b34453922a talk depended on side effects of curses includes. 1999-08-30 08:21:17 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Nik Clayton
3be5f1f5ce Add $Id$, to make it simpler for members of the translation teams to
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
1999-07-12 20:24:20 +00:00
Dmitrij Tejblum
69a6a9961e Remove couple of 'extern int errno'. (They turned to something funny when
<errno.h> included).
1999-02-14 22:22:54 +00:00
Bruce Evans
22694ebad5 Fixed printf format errors. 1998-07-06 21:01:54 +00:00
John Birrell
1ecfd4575d Add #include <string.h> to get prototype for memcpy(). 1998-02-15 04:15:47 +00:00
Philippe Charnier
20868061ee Add rcsid. Remove unused #includes (what about RU# ?). Change exit(-1) and
add usage().
1998-01-14 07:21:14 +00:00
Philippe Charnier
a27bb57a02 Nm talk -> Nm. 1997-08-13 06:48:56 +00:00
Peter Wemm
c115df18cd Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
Jordan K. Hubbard
1130b656e5 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.
1997-01-14 07:20:47 +00:00
Peter Wemm
c3d9ef558c Enable idlok() in both windows. This is actually a no-op for libcurses
(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).
1996-12-28 20:44:58 +00:00
Peter Wemm
ec52662281 If running under a typical sysv-style curses, including ncurses, use
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
1996-08-20 00:31:37 +00:00
Peter Wemm
e151ec2315 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.
1996-08-19 19:42:00 +00:00
Andrey A. Chernov
481f550e6c Cast to unsigned char instead of unsigned
Cast ctype argument to unsigned char
1996-04-03 07:47:35 +00:00
Andrey A. Chernov
7573cb47cf Increment network byte order properly
Reviewed by: wollman
1996-03-12 10:23:30 +00:00