Commit Graph

36 Commits

Author SHA1 Message Date
christos
39b77304e7 PR/47877: Michael van Elst: Disable and enable software flow control properly 2013-06-02 13:18:12 +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
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
christos
528614c11b sprinkle volatile. 2006-10-22 16:45:35 +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
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
christos
cb82eb0f6b Redo the previous in the tip sanctioned way :-) 2006-04-03 14:12:29 +00:00
he
3a81e1c420 For the benefit of our 64-bit ports, we need to cast via intptr_t when
casting from pointer to unsigned int.
2006-04-03 13:00:48 +00:00
christos
c4341bc3e1 Pass a little lint. 2006-04-03 04:53:58 +00:00
perry
29dc02e572 delinting. more needed. (lint found some real bugs that I haven't fixed yet.) 2006-04-03 04:25:30 +00:00
tls
6bd8b21472 The ~C / ~+ command is no longer optional. 2006-04-03 02:06:44 +00:00
perry
eee85da04c Remove support for uucp style locking.
This means we can get rid of the suid/sgid parts of the code (which
have been removed). The program is now installed with normal permissions.

To prevent accidents, we now flock the tty line, attempting to get an
exclusive lock.

Reviewed by: tls
2006-04-03 02:01:28 +00:00
perry
58c2151f1e ANSIfy decls, de-__P, clean trailing whitespace 2006-04-03 00:51:13 +00:00
tls
da6a898cf6 Oddly enough, smashing CRTSCTS into the terminal input flags doesn't do
much; it is a control flag.

Now toggling hardware flow control works.
2006-04-02 20:44:20 +00:00
tls
b8dc57b8d9 If we might have two links, we'd better print our program name when we
emit an error -- and it would be nice if it were the *right* program name.
Since it's convenient, change most perror calls to warn, and a lot of
fprintf ...  exit to errx.  Fix at least one fprintf that could run off
the end of its arguments (%s but no argument, how did we never catch this?).
2006-04-02 06:11:45 +00:00
yamt
01ef02441c pull the following change from OpenBSD
and bump date of the manpage.

    date: 2003/09/20 18:15:32;  author: millert;  state: Exp;  lines: +4 -2
    Implement hardwareflow varable in tip(1) like Solaris and hf in /etc/remote.
    Based on PR 3411 from Matthew Gream
    Also document "tandem" variable (XON/XOFF) in tip man page.
2006-03-29 12:37:59 +00:00
christos
4f6045fcb4 constify and warns = 3 2004-04-23 22:11:44 +00:00
uebayasi
9d002ba501 getfl() and cu_take() write a file locally. Open a file with O_RDWR. 2004-03-11 03:47:13 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
christos
b5e27b660d creat->open O_CREAT 1998-12-19 22:59:21 +00:00
ross
f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
mrg
923d7551ba - KNF
- use snprintf
- be safe with buffers (change prompt() to take a size_t len arg for this)
1998-07-12 09:59:29 +00:00
thorpej
d48673ce4c Rename an internal function who's name collides w/ pwrite(2). 1998-06-30 23:42:08 +00:00
lukem
6b9d2f6aae * fix a long-term annoyance with tip: if raisechar or force are set to
"", (usually in .tiprc with lines like `raisechar='), don't activate
  feature if NUL (\0) is the received character
* on a related note, don't barf if the following variables are defined
  to "": disconnect, log, parity, record
1997-11-22 08:29:58 +00:00
lukem
e37283e126 WARNSify, KNFify, using ANSI string functions, cleanup .Nm usage 1997-11-22 07:28:39 +00:00
mrg
53fddda6b9 give buffers lengths; use strdup. 1997-02-11 09:24:03 +00:00
pk
258108ce0f Convert to termios (from Scott Reynolds; PR#1621).
8-bit patches (from Matthieu Herrb; PR#1384).
1995-10-29 00:49:38 +00:00
jtc
0b470f4f06 Fix crash with null eofwrite capabilityand lseek/off_t bug; PR #1346 1995-09-26 06:02:08 +00:00
cgd
f795659ece headers, casts, and use of time_t 1994-12-24 17:56:23 +00:00
jtc
39801cccde Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-12-08 09:30:36 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00