aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tip
Commit message (Collapse)AuthorAgeFilesLines
* mail/gprof/tip: tap with the ugly stickKyle Evans2020-04-062-61/+66
| | | | | | | | | | | | | | | | | | The ugly stick here is this bit in the respective headers: #ifndef EXTERN #define EXTERN extern #endif with a follow-up #define EXTERN in a single .c file to push all of their definitions into one spot. A pass should be made over these three later to push these definitions into the correct files instead, but this will suffice for now and at a more leisurely pace. MFC after: 3 days Notes: svn path=/head/; revision=359680
* Fix the following -Werror warning from clang 10.0.0 in tip:Dimitry Andric2020-01-291-1/+2
| | | | | | | | | | | | | | | | | usr.bin/tip/tip/tip.c:428:4: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] if (gch == EOF) ^ usr.bin/tip/tip/tip.c:426:5: note: previous statement is here } else if (!cumode && gch == character(value(FORCE))) ^ The intent was to have the EOF check grouped with the getchar() call just above it. This was accidentally introduced in r354624. MFC after: 3 days Notes: svn path=/projects/clang1000-import/; revision=357267
* tip/cu: check for EOF on input on the local sideEric van Gyzen2019-11-111-7/+16
| | | | | | | | | | | | If cu reads an EOF on the input side, it goes into a tight loop sending a garbage byte to the remote. With this change, it exits gracefully, along with its child. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=354624
* Fix various -Wpointer-compare warningsBrooks Davis2019-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | This warning (comparing a pointer against a zero character literal rather than NULL) has existed since GCC 7.1.0, and was recently added to Clang trunk. Almost all of these are harmless, except for fwcontrol's str2node, which needs to both guard against dereferencing a NULL pointer (though in practice it appears none of the callers will ever pass one in), as well as ensure it doesn't parse the empty string as node 0 due to strtol's awkward interface. Submitted by: James Clarke <jtrc27@jrtc27.com> Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D21914 Notes: svn path=/head/; revision=353326
* Move remote & phones to usr.bin/tip/tip/Brad Davis2018-09-193-0/+88
| | | | | | | | Approved by: re (blanket, pkgbase), will (mentor) Differential Revision: https://reviews.freebsd.org/D17219 Notes: svn path=/head/; revision=338800
* Add EXAMPLES to tip(1) man page.Edward Tomasz Napierala2018-04-281-1/+6
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=333083
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-2026-26/+78
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add basic example to the cu(1) man page. Srsly, folks, you don'tEdward Tomasz Napierala2017-04-221-1/+6
| | | | | | | | | need to install minicom for this... MFC after: 2 weeks Notes: svn path=/head/; revision=317280
* Don't hide build commands.Bryan Drewery2015-09-181-1/+1
| | | | Notes: svn path=/head/; revision=287970
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync with HEAD.David E. O'Brien2013-02-081-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=246555
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | A number of places in the source tree still reference cuad.* afterEitan Adler2012-12-081-2/+2
|/ | | | | | | | | | | | | | sio(4) was deprecated by uart(4). s/cuad/cuau/g/ PR: docs/171533 Reviewed by: imp Approved by: cperciva (implicit) MFC after: 3 weeks Notes: svn path=/head/; revision=244040
* Make tip exit if the device disappears, for instance when unpluggingPoul-Henning Kamp2012-01-282-3/+4
| | | | | | | | | | | or resetting USB serial devices. Somebody[tm] should rewrite tip(1) to use two thread instead of two processes or maybe even use that new-fangled "select(2)" or positively futuristic "poll(2)" system call. Notes: svn path=/head/; revision=230654
* Spelling fixes for usr.bin/Ulrich Spörlein2011-12-301-2/+2
| | | | Notes: svn path=/head/; revision=228992
* Flush the scriptfile whenever we see a non-graphical character to getPoul-Henning Kamp2011-05-101-5/+11
| | | | | | | | more real-time logging, without forcing a write(2) on every single character. Notes: svn path=/head/; revision=221727
* Fix typos - remove duplicate "is".Rebecca Cran2011-02-231-1/+1
| | | | | | | | | PR: docs/154934 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days Notes: svn path=/head/; revision=218965
* Relinquish exclusive TTY access when tip(1) or cu(1) exit.Bruce M Simpson2008-05-034-0/+12
| | | | | | | | | | | | Previously they would have left TIOCEXCL enabled, requiring either a reboot or use of tip/cu as the root user. Observed when running QEMU with character devices redirected to pty instances. MFC after: 2 weeks Notes: svn path=/head/; revision=178736
* Reduce the WARNS levels in a couple of places so that we can enableJohn Birrell2007-11-181-1/+1
| | | | | | | -Werror at higher WARNS levels like we did before gcc4 was imported. Notes: svn path=/head/; revision=173716
* Replace rev. 1.9 with patch from OpenBSD.Pav Lucistnik2007-05-121-3/+3
| | | | | | | | | Submitted by: Ray Lai <ray@cyth.net> Obtained from: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/tip/acu.c.diff?r1=1.13&r2=1.14 MFC after: 1 week Notes: svn path=/head/; revision=169514
* Fix crash when using 'du' capability: NULL return of strpbrk was not handledPav Lucistnik2007-05-121-2/+2
| | | | | | | | | | PR: bin/108368 Reported by: Ivo Hazmuk <ivo@vutbr.cz> Submitted by: rdivacky MFC after: 2 weeks Notes: svn path=/head/; revision=169504
* Make cu/tip handle when $HOME is not set in the environment.Jordan Sissel2007-02-231-1/+5
| | | | | | | | | Approved by: philip Submitted by: ale PR: bin/108775 Notes: svn path=/head/; revision=166911
* Fixed the -# option to work as documented in a manpage.Ruslan Ermilov2006-09-071-8/+20
| | | | Notes: svn path=/head/; revision=162124
* Bump WARNS level to 3.Ruslan Ermilov2006-09-011-1/+1
| | | | | | | OK'ed by: make universe Notes: svn path=/head/; revision=161826
* Fix markup (in the same way as it was fixed in tip.1) and thusRuslan Ermilov2006-08-311-135/+171
| | | | | | | make the diffs against tip.1 minimal (as in OpenBSD). Notes: svn path=/head/; revision=161784
* Fix compilation warnings (up to level 3).Ruslan Ermilov2006-08-318-12/+14
| | | | Notes: svn path=/head/; revision=161781
* Document the undocumented change in OpenBSD: the ${raisechar}Ruslan Ermilov2006-08-311-2/+1
| | | | | | | | | is no longer set to ^A by default, it's unset. Reported by: imp, sam Notes: svn path=/head/; revision=161763
* Actually merge OpenBSD changes and local changes (a diff shouldRuslan Ermilov2006-08-311-140/+179
| | | | | | | be viewed relative to revision 1.24). Notes: svn path=/head/; revision=161762
* Remove some dust.Ruslan Ermilov2006-08-311-65/+0
| | | | Notes: svn path=/head/; revision=161755
* Resolve merge conflicts.Ruslan Ermilov2006-08-3128-1164/+1033
| | | | Notes: svn path=/head/; revision=161754
* This commit was generated by cvs2svn to compensate for changes in r161751,Ruslan Ermilov2006-08-311-0/+470
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=161752
| * Import OpenBSD's tip(1) as of todayvendor/OpenBSDRuslan Ermilov2006-08-3129-1048/+1441
| | | | | | | | Notes: svn path=/cvs2svn/branches/bsd/; revision=161751
* | Fix an erroneous description of the file descriptor assignments forJohn Polstra2005-11-021-5/+3
| | | | | | | | | | | | | | | | | | the "~C" command. MFC After: 1 week Notes: svn path=/head/; revision=151962
* | - Remove MLINKS to nonexistant manpagesChristian Brueffer2005-07-141-2/+2
| | | | | | | | | | | | | | | | | | | | - Change some section numbers to match reality - For MLINKS to manpages from ports, mention which port installs them MFC after: 3 days Notes: svn path=/head/; revision=148011
* | Use a proper protoype to declare interp() and move it to tip.h. Fix anStefan Farfeleder2004-05-062-2/+2
| | | | | | | | | | | | | | | | | | invocation with a wrong number of arguments. Approved by: das (mentor) Notes: svn path=/head/; revision=129004
* | Fixed misspellings of 0 as NULL. Fixed some nearby style bugs.Bruce Evans2004-03-141-1/+2
| | | | | | | | Notes: svn path=/head/; revision=126961
* | Baud rate capability is `br', not `ba'.Hiten Pandya2003-09-061-1/+1
| | | | | | | | | | | | | | | | PR: docs/56426 Submitted by: FUJISHIMA Satsuki <sf@FreeBSD.ORG> Notes: svn path=/head/; revision=119808
* | make prototpyes match functions, and declare things static as neededWarner Losh2003-04-069-21/+29
| | | | | | | | Notes: svn path=/head/; revision=113163
* | mdoc(7) police: Deal with self-xrefs.Ruslan Ermilov2002-12-241-1/+1
| | | | | | | | Notes: svn path=/head/; revision=108257
* | Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-1/+1
| | | | | | | | | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* | tip(1) no longer uses modems(5).Ruslan Ermilov2002-11-271-143/+0
| | | | | | | | | | | | | | | | Reviewed by: markm Approved by: re Notes: svn path=/head/; revision=107306
* | Really merge from OpenBSD import (should have been done a year ago).Ruslan Ermilov2002-11-271-185/+300
| | | | | | | | | | | | | | | | Reviewed by: markm Approved by: re Notes: svn path=/head/; revision=107305
* | Merge from import. The import was done ages ago, and this diff has beenMark Murray2002-07-191-153/+199
| | | | | | | | | | | | | | carried since then. Notes: svn path=/head/; revision=100358
* | Make dirty, rotten hack really work. As of rev. 1.16, ${BINDIR}Ruslan Ermilov2002-07-121-2/+2
| | | | | | | | | | | | | | | | | | | | is only defined after <bsd.prog.mk> is included, and .if make(1) conditionals are evaluted on the first pass. Spotted by: Michael Bretterklieber <mbretter@jawa.at> Notes: svn path=/head/; revision=99874