summaryrefslogtreecommitdiff
path: root/usr.bin/tip/tip.c
AgeCommit message (Collapse)Author
2009-12-12Whoops, missed these.Nicholas Marriott
2009-12-12tip is not setuid or setgid anymore and there are no PRIV/EXPR commands, soNicholas Marriott
remove the code. ok deraadt
2009-12-12Use a socketpair instead of a pair of pipes.Nicholas Marriott
looks ok to millert@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2008-06-01synchronize synopsis and usage.Igor Sobrado
2007-05-15Remove useless NOxxx defines and use NULL instead.Moritz Jodeit
No binary change. OK ray@
2006-11-27Back out revision 1.31, restoring the ":dc: is always set" behaviour.Ryan Thomas McBride
Fixes hangs seen with uplcom(4) and serial console. testing pedro jolan ok deraadt
2006-09-22remove the :dc: is always set behavior (use cua devices or /etc/remoteJason Wright
entries to override); ok deraadt awhile ago.
2006-08-18tip/cu always set "dc" because the code was reading from the wrong valueJason Wright
in the array. Point it at the correct chunk of memory. For now, also preserve the old ":dc:" is always set behavior. ok deraadt
2006-06-06teach tip about line disciplines; tried by mbalmer tooTheo de Raadt
2006-03-17size_t size()Theo de Raadt
2006-03-17more cleanups; ok moritzTheo de Raadt
2006-03-17big prototype cleanup:Moritz Jodeit
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@
2006-03-16first pass of cleanup of this mess; ok dhillTheo de Raadt
2004-11-07Do not ignore SIGCHLD, repairing hangs after a subshell is executedOtto Moerbeek
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@
2004-05-26if one process is killed, kill the other ourself; various okTheo de Raadt
2003-10-15on fatal error, repair tty; millert okTheo de Raadt
2003-09-20Implement hardwareflow varable in tip(1) like Solaris and hf in /etc/remote.Todd C. Miller
Based on PR 3411 from Matthew Gream Also document "tandem" variable (XON/XOFF) in tip man page.
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-05-29Don't hard-code a list of allowed baud rates. Instead, acceptTodd C. Miller
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
2002-05-07Carefully applied -Wall fixups from <panda@omatis.com>.Hugh Graham
Also a little KNF.
2002-03-25bring in prototypesTheo de Raadt
2002-02-25mark getc uses with regard to int and EOFTheo de Raadt
2001-10-24kill registerTodd C. Miller
2001-09-26Wall cleanup w/ some fixes; ok millertPeter Valchev
2001-09-09implement some more command line options for cu and use getopt(3)Todd C. Miller
2001-04-12Change tip default from even parity to no parity which is more in lineTodd C. Miller
with user expectations.
2000-04-20avoid naming something pwrite()Theo de Raadt
2000-01-09remove O_NONBLOCK from tty fd so we don't spin with EAGAINJason Wright
1998-07-12add no escape option (-n)Todd T. Fries
1997-09-01Wall pass, and oflow fix from eivind@bitbox.follo.netTheo de Raadt
1997-08-25clean gid tooTheo de Raadt
1997-08-22Buf oflow fix from Warner Losh <imp@rover.village.org>Todd C. Miller
1997-04-20Incorporate some NetBSD changes:Todd C. Miller
tip.c getchar() returns an int [important since EOF == -1] (thorpej) Set CLOCAL if dc flag is set (mellon) tip.h Change booleans from char to short so that comparisons against negative values work as expected on systems with unsigned chars. (thorpej) Add boolean for dc flag (mellon) hunt.c Set O_NONBLOCK if dc flag set. Don't set HUPCL if dc flag is set. (mellon) remote.c Add boolean for dc flag (mellon)
1997-04-02Merge in good changes from NetBSD:Todd C. Miller
Compile in strcict ansi (some day I'll get around to -Wall) use set* functions instead of modifying the lvalue Change a few sprintf() to snprintf() where it coudl possibly matter. Replace zzhack stuff with something saner to make tip work on alpha
1996-06-26rcsidTheo de Raadt
1995-12-14from netbsd:Theo de Raadt
Convert to termios (from Scott Reynolds; PR#1621). 8-bit patches (from Matthieu Herrb; PR#1384).
1995-10-18initial import of NetBSD treeTheo de Raadt