summaryrefslogtreecommitdiffstats
path: root/usr.bin/tip/tip.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove tip(1), superseded by cu(1).nicm2015-04-241-520/+0
| | | | ok deraadt sthen bmercer
* Convert many atoi() calls to strtonum(), adding range checks and failurederaadt2015-04-181-2/+9
| | | | | handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
* remove unused cu(1) support in tip; it is supplied as a seperatederaadt2015-02-071-18/+4
| | | | | simpler binary written by nicm since 5.4 ok jsing dlg
* Get rid of two 10-year-old XXX comments and do check for getchar(3) returningkettenis2012-12-041-7/+15
| | | | | | | EOF. Fixes a very annoying bug where cu(1) will start sending the EOF "character" down the serial line at high speed if it loses its input terminal. ok deraadt@, nicm@
* Changed vinit to clear the values but forgot to move it before they are set bynicm2010-07-031-3/+3
| | | | command line parsing.
* Clear table and set defaults manually, also move table into value.c.nicm2010-07-021-2/+4
|
* Merge almost-empty pathnames.h into tip.h.nicm2010-07-021-2/+1
|
* Rewrite hunt() to put the "rotary action" into it rather than remote.c, and sonicm2010-07-021-10/+2
| | | | | it isn't so stupid (returning a char * as a long which goes into an int to use as a flag, ugh).
* Nix some warnings.nicm2010-07-011-2/+4
|
* Change variable get/set macros to have better names and drop boolean/characternicm2010-07-011-29/+30
| | | | ones.
* remove unused variableschl2010-07-011-2/+2
| | | | | | add missing headers needed for uu_unlock() ok nicm@
* Unused variables.nicm2010-06-301-4/+1
|
* Add new read-only vtable entries for device and connection string and use thosenicm2010-06-291-4/+4
| | | | instead of variables.
* Since dial-up is no longer supported, no need to store a phone number, ornicm2010-06-291-23/+1
| | | | accept one to cu(1).
* For every variable which has a value table entry with IREMOTE, remove thenicm2010-06-291-3/+3
| | | | | remote variable and always use the value from the vtable. This then allows the IREMOTE flag to be removed.
* Merge v_type and v_access into one v_flags member in value_t, get rid of TRUEnicm2010-06-291-2/+2
| | | | and FALSE, and rename the other flags to have a V_ prefix.
* Now that there is no dial-up support, all connections are hardwired so drop thenicm2010-06-291-13/+3
| | | | flag and ignore the -t option to cu(1).
* Bye-bye acu which even UUCP-using naddy agrees "was obsolete 20 years ago" :-).nicm2010-06-291-14/+11
|
* Replace "nice" strcmp() wrapper macro with strcmp.nicm2010-06-291-7/+7
| | | | ok jsing
* Whoops, missed these.nicm2009-12-121-3/+1
|
* tip is not setuid or setgid anymore and there are no PRIV/EXPR commands, sonicm2009-12-121-60/+2
| | | | | | remove the code. ok deraadt
* Use a socketpair instead of a pair of pipes.nicm2009-12-121-6/+25
| | | | looks ok to millert@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-14/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* synchronize synopsis and usage.sobrado2008-06-011-3/+3
|
* Remove useless NOxxx defines and use NULL instead.moritz2007-05-151-6/+6
| | | | | | No binary change. OK ray@
* Back out revision 1.31, restoring the ":dc: is always set" behaviour.mcbride2006-11-271-2/+5
| | | | | | | Fixes hangs seen with uplcom(4) and serial console. testing pedro jolan ok deraadt
* remove the :dc: is always set behavior (use cua devices or /etc/remotejason2006-09-221-5/+2
| | | | entries to override); ok deraadt awhile ago.
* tip/cu always set "dc" because the code was reading from the wrong valuejason2006-08-181-2/+5
| | | | | | in the array. Point it at the correct chunk of memory. For now, also preserve the old ":dc:" is always set behavior. ok deraadt
* teach tip about line disciplines; tried by mbalmer tooderaadt2006-06-061-2/+7
|
* size_t size()deraadt2006-03-171-4/+4
|
* more cleanups; ok moritzderaadt2006-03-171-14/+15
|
* big prototype cleanup:moritz2006-03-171-12/+11
| | | | | | | | o make more functions static o add all the prototypes to tip.h o consistently declare functions in the cmd table testing and ok dhill@
* first pass of cleanup of this mess; ok dhillderaadt2006-03-161-43/+25
|
* Do not ignore SIGCHLD, repairing hangs after a subshell is executedotto2004-11-071-3/+3
| | | | | | | via ~! or ~C. While there, fix description of fd's available to the command executed by ~C in man page and comments. This has been wrong since at least 4.4BSD... Spotted by Hugo Villeneuve. PR 3971. ok and help millert@; ok deraadt@
* if one process is killed, kill the other ourself; various okderaadt2004-05-261-7/+13
|
* on fatal error, repair tty; millert okderaadt2003-10-151-3/+6
|
* Implement hardwareflow varable in tip(1) like Solaris and hf in /etc/remote.millert2003-09-201-2/+4
| | | | | Based on PR 3411 from Matthew Gream Also document "tandem" variable (XON/XOFF) in tip man page.
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Don't hard-code a list of allowed baud rates. Instead, acceptmillert2002-05-291-38/+21
| | | | | | anything but check the return value of tcsetattr() and error out if it fails. This way we accept any baud rate the serial driver will support. mickey@ OK
* Carefully applied -Wall fixups from <panda@omatis.com>.hugh2002-05-071-4/+4
| | | | Also a little KNF.
* bring in prototypesderaadt2002-03-251-5/+8
|
* mark getc uses with regard to int and EOFderaadt2002-02-251-4/+7
|
* kill registermillert2001-10-241-20/+19
|
* Wall cleanup w/ some fixes; ok millertpvalchev2001-09-261-3/+3
|
* implement some more command line options for cu and use getopt(3)millert2001-09-091-25/+10
|
* Change tip default from even parity to no parity which is more in linemillert2001-04-121-3/+3
| | | | with user expectations.
* avoid naming something pwrite()deraadt2000-04-201-6/+6
|
* remove O_NONBLOCK from tty fd so we don't spin with EAGAINjason2000-01-091-2/+13
|
* add no escape option (-n)todd1998-07-121-4/+10
|
* Wall pass, and oflow fix from eivind@bitbox.follo.netderaadt1997-09-011-10/+30
|