Commit Graph

165 Commits

Author SHA1 Message Date
msaitoh
984bb2b315 s/reseting/resetting/ 2020-07-22 01:24:39 +00:00
joerg
cc277401cc Avoid using common symbol definitions. 2020-04-23 00:35:14 +00:00
christos
8603a9eb39 check speed argument conversion (Thierry Laronde) 2019-08-18 14:16:02 +00:00
gson
d8c2103a2e Make xgetchar() return an int like getchar() does, and remove needless cast. 2019-02-28 17:41:27 +00:00
uwe
c07928f07f Check getchar() result for EOF.
Call cleanup(SIGHUP) if we get local EOF, as if we've got SIGHUP.
While here, use EOF constant instead of literal -1 in an existing
check.

PR bin/53996
2019-02-22 22:25:22 +00:00
rin
3a204f953a Make cu(1) and tip(1) recognize newline (^J) as end-of-line.
Now, tilde (~) after newline works as escape character as in ssh(1).
No objections when proposed on tech-userland.
2019-02-06 14:08:50 +00:00
mrg
684b182f81 compare pointers with NULL not '\0'. 2019-02-01 08:29:03 +00:00
wiz
01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
sevan
39bbc68a3b Drop main() prototype. 2016-09-05 00:40:28 +00:00
dholland
dc73bb47b8 PR 51192 David Binderman: fix wrong logic (probably)
XXX: this file should probably just be deleted
2016-06-30 05:56:46 +00:00
christos
90c146a94b Put back -n 2016-01-03 15:38:29 +00:00
christos
62c8098c95 add missing quote, remove some braces. 2015-06-17 01:38:02 +00:00
christos
ff53269704 fix some error handling. 2015-06-16 22:54:10 +00:00
gson
cebb0ef7cc Don't call exit() from a signal handler, as it's not async-signal-safe;
use _exit() instead.
2015-06-11 18:12:00 +00:00
dholland
dfb86850e0 Remove broken snprintf usage (noted in PR 47976) and replace with
something simpler.
2014-07-27 04:32:23 +00:00
mlelstv
6afb7d5190 don't enable IXANY. 2014-07-12 05:28:07 +00:00
christos
a64eb75968 get rid of equal(), use {s,g}etprogname(). 2013-10-21 14:47:46 +00:00
christos
39b77304e7 PR/47877: Michael van Elst: Disable and enable software flow control properly 2013-06-02 13:18:12 +00:00
wiz
3957bea1ef Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
joerg
7a5b80bed9 Add explicit continue to empty loop body. 2012-02-24 16:03:39 +00:00
joerg
a625573ba2 while (...);
;
is really pointless, so remove the first semicolon.
2012-02-23 23:39:19 +00:00
joerg
f20d1d233d Use __dead. Make a bunch of local functions static. 2011-09-06 18:33:01 +00:00
joerg
de862ba918 Properly use format string 2011-05-24 12:46:16 +00:00
mbalmer
0f58fac97e fix language 2010-01-28 14:12:11 +00:00
lukem
c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
joerg
35d9d36c82 Use .Tn for XMODEM. Use .Bl -column for physically marked up table. 2009-03-13 11:12:28 +00:00
lukem
c493aef500 fix -Wsign-compare issues 2009-01-18 07:11:45 +00:00
wiz
714b5c355f Improve description in NAME section:
"serial terminal emulator"

From nick@openbsd via jmc@openbsd.
2009-01-17 20:59:01 +00:00
lukem
98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
hubertf
cfb51b951e Move #include <libgen.h> from tip.h to the place where it's really needed.
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-09 23:45:21 +00:00
hubertf
6a0e6d5715 Moved ctype.h from header to source file in usr.bin/tip.
Also removed unused getopt header.

Patch contributed by Slava Semushin <slava.semushin@gmail.com>
in private mail.
2007-02-16 20:25:33 +00:00
wiz
f7ccc579cc Punctuation nits. 2006-12-23 08:48:29 +00:00
christos
ffe3445041 pass lint; from Anon Ymous 2006-12-14 17:09:43 +00:00
christos
239d1ed129 kill the (void)&foo; from Anon Ymous 2006-12-14 14:18:03 +00:00
jdc
a7a53c1fdb Use getopt() for arguments. Suggested by tls@. 2006-11-29 14:46:27 +00:00
jdc
69ea108b97 Add missing cu synopsis and options. 2006-11-29 14:45:39 +00:00
jdc
2ee4ce050d Add Taylor cu compatibility: -f and "dir" 2006-11-29 14:44:45 +00:00
gson
fb72156a3c Added volatile keyword to variable that might be clobbered by longjmp 2006-10-24 08:29:47 +00:00
christos
97e81e479c sprinkle volatile. 2006-10-22 16:48:34 +00:00
christos
c3c65c3c0c use c99 initializer. 2006-10-22 16:47:50 +00:00
christos
528614c11b sprinkle volatile. 2006-10-22 16:45:35 +00:00
dan
450da78dd9 the intention of the whole tip-as-cu thing was to allow tip-as-cu and
have a cu command installed, even when the rest of uucp was removed
via MKUUCP=no.  The old uucp-derived cu is no more, and is not
installed in either case.

make it so, by correcting some confusion that had made the non-uucp
tip-as-cu cu conditional on MKUUCP
2006-05-22 12:32:20 +00:00
mrg
4bc6feceb6 end the argument list to exec*(3) with a NULL instead of a bare '0', as
the latter isn't a pointer context in these varargs functions.
2006-05-11 00:22:52 +00:00
christos
f84f0d3321 Coverity CID 2972, 2973: Don't call close() with a negative fd. 2006-04-30 23:34:50 +00:00
christos
258969c334 Include bsd.own.mk; from Jukka Salmi 2006-04-08 20:07:29 +00:00
yamt
2267ff751f cuhelp: fix a typo in usage. 2006-04-05 23:30:57 +00:00
tron
442e61c603 Fix "MKUUCP" check so that "cu" installed if "MKUUCP" is not defined. 2006-04-05 13:04:33 +00:00
dyoung
ca9de39d07 If MKUUCP=no, do not create links for cu and its manual page. 2006-04-04 15:09:50 +00:00
tls
76f2334c55 Use closefrom, don't iterate over file descriptors from 3 to 20. 2006-04-03 16:13:34 +00:00
tls
a973ebec53 Replace abuse of SIGIOT, SIGEMT, SIGSYS for communication between the
TIPIN and TIPOUT processes with a third "attention" pipe.  While we're
here, fix a few other minor nits like the hardcoded use of fd 3 in
consh().

Now ~+/~C appear to work.  This must have been broken for years.
2006-04-03 16:03:50 +00:00