History log of /src/usr.bin/tip/tip.c |
Revision | | Date | Author | Comments |
1.63 |
| 23-Apr-2020 |
joerg | Avoid using common symbol definitions.
|
1.62 |
| 28-Feb-2019 |
gson | Make xgetchar() return an int like getchar() does, and remove needless cast.
|
1.61 |
| 22-Feb-2019 |
uwe | 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
|
1.60 |
| 06-Feb-2019 |
rin | 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.
|
1.59 |
| 05-Sep-2016 |
sevan | branches: 1.59.14; Drop main() prototype.
|
1.58 |
| 17-Jun-2015 |
christos | add missing quote, remove some braces.
|
1.57 |
| 16-Jun-2015 |
christos | fix some error handling.
|
1.56 |
| 11-Jun-2015 |
gson | Don't call exit() from a signal handler, as it's not async-signal-safe; use _exit() instead.
|
1.55 |
| 27-Jul-2014 |
dholland | Remove broken snprintf usage (noted in PR 47976) and replace with something simpler.
|
1.54 |
| 12-Jul-2014 |
mlelstv | don't enable IXANY.
|
1.53 |
| 21-Oct-2013 |
christos | branches: 1.53.2; get rid of equal(), use {s,g}etprogname().
|
1.52 |
| 02-Jun-2013 |
christos | PR/47877: Michael van Elst: Disable and enable software flow control properly
|
1.51 |
| 06-Sep-2011 |
joerg | branches: 1.51.2; 1.51.8; Use __dead. Make a bunch of local functions static.
|
1.50 |
| 18-Jan-2009 |
lukem | fix -Wsign-compare issues
|
1.49 |
| 21-Jul-2008 |
lukem | Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
1.48 |
| 09-Mar-2007 |
hubertf | branches: 1.48.12; Move #include <libgen.h> from tip.h to the place where it's really needed. From: Slava Semushin <php-coder@altlinux.ru>
|
1.47 |
| 16-Feb-2007 |
hubertf | 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.
|
1.46 |
| 14-Dec-2006 |
christos | pass lint; from Anon Ymous
|
1.45 |
| 14-Dec-2006 |
christos | kill the (void)&foo; from Anon Ymous
|
1.44 |
| 29-Nov-2006 |
jdc | Use getopt() for arguments. Suggested by tls@.
|
1.43 |
| 03-Apr-2006 |
tls | Use closefrom, don't iterate over file descriptors from 3 to 20.
|
1.42 |
| 03-Apr-2006 |
tls | 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.
|
1.41 |
| 03-Apr-2006 |
tls | Move "cucommon" label (ugh) to above the O_NONBLOCK handling for direct connections. This stops the tipout process from spinning.
|
1.40 |
| 03-Apr-2006 |
yamt | actually set up baudrate after rev.1.33.
|
1.39 |
| 03-Apr-2006 |
christos | Pass a little lint.
|
1.38 |
| 03-Apr-2006 |
perry | delinting. more needed. (lint found some real bugs that I haven't fixed yet.)
|
1.37 |
| 03-Apr-2006 |
perry | Remove vestiges of the ACULOG support. It depended on the suid support (which is now gone) and it is woefully obsolete -- if something analogous is ever needed in the future, syslog is the way to do it.
|
1.36 |
| 03-Apr-2006 |
perry | 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
|
1.35 |
| 03-Apr-2006 |
perry | ANSIfy decls, de-__P, clean trailing whitespace
|
1.34 |
| 02-Apr-2006 |
tls | Fix the conditional compilation on ACULOG so it actually works. Turn it off by default -- it hardly saves any space, but it's one of the reasons why the executable is installed setuid, and other versions of tip/cu don't write a log file anyway. We can add syslog support later if we ever really want this back, the file-writing is all encapsulated in log.c.
|
1.33 |
| 02-Apr-2006 |
tls | New 'cu' command-line handling, derived from Todd Miller's in OpenBSD, but with some long options added for Taylor 'cu' compatibility, and with some bugs fixed (in particular, the handling of -# now works as documented and does not overwrite argv).
|
1.32 |
| 02-Apr-2006 |
tls | 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?).
|
1.31 |
| 02-Apr-2006 |
tls | Default to no parity instead of even parity. OpenBSD made this change long ago, and I think it makes sense.
|
1.30 |
| 02-Apr-2006 |
tls | Add the rest of the speeds listed in termios.h. This is not, perhaps, as sensible as the way OpenBSD supports arbitrary speeds; but we hardly add new speeds often and this change is a lot less invasive.
|
1.29 |
| 29-Mar-2006 |
yamt | 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.
|
1.28 |
| 04-Nov-2004 |
dsl | Add (unsigned char) cast to ctype functions islower() can be true for 0x80..0xff
|
1.27 |
| 07-Sep-2004 |
jrf | Replaced strncpy with strlcpy. Thanks to Peter Postma who pointed them our in PR #25762. Approved by christos@NetBSD.org.
|
1.26 |
| 23-Apr-2004 |
christos | deal in a saner way with const strings.
|
1.25 |
| 23-Apr-2004 |
christos | constify and warns = 3
|
1.24 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.23 |
| 11-Oct-2000 |
is | More format string cleanup by sommerfeld.
|
1.22 |
| 19-Dec-1998 |
christos | branches: 1.22.2; 1.22.10; remove unused variable char -> unsigned char
|
1.21 |
| 12-Jul-1998 |
mrg | - KNF - use snprintf - be safe with buffers (change prompt() to take a size_t len arg for this)
|
1.20 |
| 30-Jun-1998 |
thorpej | Rename an internal function who's name collides w/ pwrite(2).
|
1.19 |
| 17-Dec-1997 |
mellon | Only turn off the O_NONBLOCK flag if DC flag is set.
|
1.18 |
| 17-Dec-1997 |
mellon | Turn off the O_NONBLOCK flag after CLOCAL is set.
|
1.17 |
| 23-Nov-1997 |
mrg | fix compile warnings on the alpha.
|
1.16 |
| 22-Nov-1997 |
lukem | * 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
|
1.15 |
| 22-Nov-1997 |
lukem | WARNSify, KNFify, using ANSI string functions, cleanup .Nm usage
|
1.14 |
| 14-May-1997 |
mellon | branches: 1.14.2; DC is not a user-settable variable, but was being partially confused with one
|
1.13 |
| 20-Apr-1997 |
mellon | Set CLOCAL if dc flag is set
|
1.12 |
| 19-Apr-1997 |
thorpej | getopt() returns: - an int, not a char, and - -1 upon completion, not EOF.
|
1.11 |
| 11-Feb-1997 |
mrg | give buffers lengths; use strdup.
|
1.10 |
| 29-Dec-1996 |
cgd | make evenpartab be of type 'unsigned char' to avoid -ansi -pedantic errors
|
1.9 |
| 29-Dec-1996 |
cgd | replace old zzhack structure (YUCK!) and number(), boolean(), character(), and address() macros with new macros of the same names (to get values), and macros with those names but with "set" prepended and which take a second argument (to set values). The new macros use type casts to do type conversion, which is much cleaner than using a union and making endianness-related hacks to get the right 'short's and 'char's from the right array indices. (YUCK! again, for good measure.)
|
1.8 |
| 29-Oct-1995 |
pk | Convert to termios (from Scott Reynolds; PR#1621). 8-bit patches (from Matthieu Herrb; PR#1384).
|
1.7 |
| 11-Aug-1995 |
jtc | Fix parity calculation; PR #1325
|
1.6 |
| 08-Dec-1994 |
jtc | Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
1.5 |
| 20-Apr-1994 |
pk | setre[gu]id conversion.
|
1.4 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.3 |
| 12-Jun-1993 |
andrew | Flip euid to user immediately after opening log file, to allow .tiprc file to be read without perms problems.
|
1.2 |
| 05-Jun-1993 |
cgd | patch from David Greenman and Rod Grimes (davidg@implode.rain.com and rgrimes@agora.rain.com) to support 57600 and 115200 baud
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 08-Dec-1994 |
jtc | imported from 4.4lite
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.14.2.1 |
| 17-Dec-1997 |
mellon | Pull rev 1.18 and 1.19 up from trunk (mellon) (reviewed by mycroft and thorpej)
|
1.22.10.1 |
| 18-Oct-2000 |
tv | Pullup usr.bin string format fixes [is]. See "cvs log" for explicit revision numbers per file, from sommerfeld.
|
1.22.2.1 |
| 19-Oct-2000 |
he | Pull up revision 1.23 (requested by he): Format string cleanup.
|
1.48.12.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.51.8.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.51.8.1 |
| 23-Jun-2013 |
tls | resync from head
|
1.51.2.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.53.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.59.14.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|