aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tip
Commit message (Collapse)AuthorAgeFilesLines
* cu.1: describe better + tag spdxAlexander Ziaee2024-11-291-1/+4
| | | | | | | | | | | | | | Preserve over 40 years of "call UNIX" BSD heritage while answering "one line about what it does" e.g. "how do I get a serial console?" "% apropos serial" MFC after: 3 days Reported by: imp Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1423
* Remove residual blank line at start of MakefileWarner Losh2024-07-152-2/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* usr.bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-2722-88/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove copyright strings ifdef'd outWarner Losh2023-11-272-20/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-2730-109/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-168-8/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-1624-48/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-162-2/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* tip(1): Fix a typo in a source code commentGordon Bergling2022-09-031-1/+1
| | | | | | - s/overriden/overridden/ MFC after: 3 days
* Fix some common typos in source code commentsGordon Bergling2021-08-281-1/+1
| | | | | | | | | - s/priviledged/privileged/ - s/funtion/function/ - s/doens't/doesn't/ - s/sychronization/synchronization/ MFC after: 3 days
* tip: Fix pointer-vs-integer confusionJessica Clarke2021-06-082-4/+16
| | | | | | | | | | | | | | | | | | Currently IREMOTE assumes that every value is (initially) a pointer to a long. This is true for NUMBERs, but false for STRINGs, which are instead pointers to pointers, though on ILP32 and LP64 systems these happen to have the same representation, but this is still a strict aliasing violation, and of course breaks on systems where the representations are not the same, such as CHERI. We do not currently have any BOOLs (short, curiously) or CHARs used with IREMOTE, though the code should not be relying on that. This removes the unused setaddress macro, and the now-unused address macro due to the above issue. Reviewed by: imp, kib Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D30697
* tip: Cast via intptr_t not long when casting between pointer and intJessica Clarke2021-06-081-8/+8
| | | | | | | | | | | | Whilst all FreeBSD architectures have the same representation for intptr_t and long (even if the former is int on ILP32 architectures), this is more general and correct, and on CHERI they are not the same so warnings are generated by default for integer-to-pointer casts that aren't via (u)intptr_t. Reviewed by: imp, kib Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D30696
* mail/gprof/tip: tap with the ugly stickKyle Evans2020-04-062-56/+61
| | | | | | | | | | | | | | | | | | 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