summaryrefslogtreecommitdiff
path: root/usr.bin/tip/cmds.c
AgeCommit message (Collapse)Author
2013-06-02PR/47877: Michael van Elst: Disable and enable software flow control properlychristos
2012-02-24Add explicit continue to empty loop body.joerg
2012-02-23while (...);joerg
; is really pointless, so remove the first semicolon.
2011-09-06Use __dead. Make a bunch of local functions static.joerg
2006-12-14pass lint; from Anon Ymouschristos
2006-12-14kill the (void)&foo; from Anon Ymouschristos
2006-10-22sprinkle volatile.christos
2006-05-11end the argument list to exec*(3) with a NULL instead of a bare '0', asmrg
the latter isn't a pointer context in these varargs functions.
2006-04-03Use closefrom, don't iterate over file descriptors from 3 to 20.tls
2006-04-03Replace abuse of SIGIOT, SIGEMT, SIGSYS for communication between thetls
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-03Redo the previous in the tip sanctioned way :-)christos
2006-04-03For the benefit of our 64-bit ports, we need to cast via intptr_t whenhe
casting from pointer to unsigned int.
2006-04-03Pass a little lint.christos
2006-04-03delinting. more needed. (lint found some real bugs that I haven't fixed yet.)perry
2006-04-03The ~C / ~+ command is no longer optional.tls
2006-04-03Remove support for uucp style locking.perry
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-03ANSIfy decls, de-__P, clean trailing whitespaceperry
2006-04-02Oddly enough, smashing CRTSCTS into the terminal input flags doesn't dotls
much; it is a control flag. Now toggling hardware flow control works.
2006-04-02If we might have two links, we'd better print our program name when wetls
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-03-29pull the following change from OpenBSDyamt
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.
2004-04-23constify and warns = 3christos
2004-03-11getfl() and cu_take() write a file locally. Open a file with O_RDWR.uebayasi
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
1998-12-19creat->open O_CREATchristos
1998-08-25Add { and } to shut up egcs. Reformat the more questionable code.ross
1998-07-12- KNFmrg
- use snprintf - be safe with buffers (change prompt() to take a size_t len arg for this)
1998-06-30Rename an internal function who's name collides w/ pwrite(2).thorpej
1997-11-22* fix a long-term annoyance with tip: if raisechar or force are set tolukem
"", (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-22WARNSify, KNFify, using ANSI string functions, cleanup .Nm usagelukem
1997-02-11give buffers lengths; use strdup.mrg
1995-10-29Convert to termios (from Scott Reynolds; PR#1621).pk
8-bit patches (from Matthieu Herrb; PR#1384).
1995-09-26Fix crash with null eofwrite capabilityand lseek/off_t bug; PR #1346jtc
1994-12-24headers, casts, and use of time_tcgd
1994-12-08Merged with 4.4lite.jtc
Changed to conform to NetBSD's new RCS Id convention.
1993-08-01Add RCS identifiers.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd