aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Add missing display messages when toggling modes.Mark Johnston2018-11-301-0/+9
| | | | | | | | | | PR: 233667 Submitted by: James Wright <james.wright@jigsawdesign.com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18331 Notes: svn path=/head/; revision=341346
* Move trim(1) from usr.bin to usr.sbin to become trim(8).Eugene Grosbein2018-11-294-385/+0
| | | | | | | | Requested by: se MFC after: 1 month Notes: svn path=/head/; revision=341243
* trim(1): unbreak build after r341232 for platforms using gcc and not clangEugene Grosbein2018-11-291-2/+3
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=341233
* Add new small tool trim(1) to delete contents for blocks on flashEugene Grosbein2018-11-294-0/+384
| | | | | | | | | | based storage devices that use wear-leveling algorithms. Reviewed by: hackers@ MFC after: 1 month Notes: svn path=/head/; revision=341232
* Allow truss to operate on ELFv2 processes.Justin Hibbits2018-11-291-0/+11
| | | | | | | | | | | | | | Summary: Currently, truss doesn't work on ELFv2 processes due to not recognizing the ABI. Since there's no special handling needed here, just adding a PROCABI struct for it is sufficient to get it working. Submitted by: git_bdragon.rtk0.net Differential Revision: https://reviews.freebsd.org/D18352 Notes: svn path=/head/; revision=341179
* llvm-objdump.1: remove more unintentional optionsEd Maste2018-11-271-10/+1
| | | | | | | | | | | | Some options come from static constructors in LLVM libraries and are automatically added to llvm's usage output. They're not really supposed to be llvm-objdump options. Reported by: Fangrui Song in LLVM review D54864 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=341055
* llvm-objdump.1: fix igor / mandoc -Tlint warningsEd Maste2018-11-261-2/+3
| | | | | | | Accidentally omitted from r340972. Notes: svn path=/head/; revision=340975
* llvm-objdump.1: remove invalid optionsEd Maste2018-11-261-8/+0
| | | | | | | | | | | | Some options appear in llvm-objdump's usage information as a side effect of its option parsing implementation and are not actually llvm-objdump options. Reported in LLVM review https://reviews.llvm.org/D54864. Reported by: Fangrui Song Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=340973
* llvm-objdump: initial man pageEd Maste2018-11-262-1/+213
| | | | | | | | | | | | | | | | | | Based on llvm-objdump's online documentation and usage information. This serves as a starting point; additional detail and cleanup still required. Also being submitted upstream in LLVM review D54864. I expect to use this bespoke copy while we have LLVM 6.0 or 7.0 in FreeBSD; when we update to LLVM 8.0 it should be upstream and we will switch to it. PR: 233437 Reviewed by: bcr (man formatting) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18309 Notes: svn path=/head/; revision=340972
* pom: Fix fencepost bugs.Thomas Munro2018-11-201-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Under some conditions pom would report "waning" and then "full", show higher percentages than it should, and get confused by DST. Fix. Before: 2018.01.30: The Moon is Waxing Gibbous (97% of Full) 2018.01.31: The Moon is Waning Gibbous (100% of Full) 2018.02.01: The Moon is Full 2018.02.02: The Moon is Waning Gibbous (98% of Full) After: 2018.01.30: The Moon is Waxing Gibbous (96% of Full) 2018.01.31: The Moon is Waxing Gibbous (99% of Full) 2018.02.01: The Moon is Full 2018.02.02: The Moon is Waning Gibbous (97% of Full) PR: 231705 Submitted by: Andrew Gierth Approved by: allanjude (mentor) MFC after: 2 weeks Differential Revision: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231705 Notes: svn path=/head/; revision=340655
* Add a fortune describing how to upload a machine's dmesg information to theBenedict Reuschling2018-11-191-0/+6
| | | | | | | | | | | | | | | | | | | NYCBUG database. We want to encourage our users to upload their dmesgs so that the project can get a better insight into what kind of hardware is run on. This helps in making data-driven decisions about i.e., platform and driver support. Note that dmesgs may contain sensitive information like hardware serial numbers, hence uploading them without review is discouraged. Reviewed by: brooks, imp, allanjude Approved by: allanjude MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D17705 Notes: svn path=/head/; revision=340649
* brandelf: capsicumize itMariusz Zaborski2018-11-182-2/+31
| | | | Notes: svn path=/head/; revision=340572
* brandelf: fix style nitsMariusz Zaborski2018-11-181-25/+26
| | | | | | | | | | No functional change intended. Reviewed by: emaste, markj Differential Revision: https://reviews.freebsd.org/D17966 Notes: svn path=/head/; revision=340567
* s/caph_enter_capser/caph_enter_casper/gMariusz Zaborski2018-11-121-1/+1
| | | | | | | Reported by: npn Notes: svn path=/head/; revision=340382
* s/caph_enter_with_casper/caph_enter_casper/Mariusz Zaborski2018-11-121-1/+1
| | | | | | | Reported by: npn Notes: svn path=/head/; revision=340380
* wc: We should sandbox wc only if Capers is available.Mariusz Zaborski2018-11-121-1/+1
| | | | Notes: svn path=/head/; revision=340377
* head: sandbox using capsicumMariusz Zaborski2018-11-122-1/+25
| | | | | | | | Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D14409 Notes: svn path=/head/; revision=340376
* wc: sandbox wc using capsicumMariusz Zaborski2018-11-122-1/+37
| | | | | | | | Reviewed by: AllanJude, emaste Differential Revision: https://reviews.freebsd.org/D14409 Notes: svn path=/head/; revision=340374
* head: fix style nitsMariusz Zaborski2018-11-121-8/+13
| | | | | | | | | | | No functional change intended. Reviewed by: emaste MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D14498 Notes: svn path=/head/; revision=340370
* Fix printing of 64-bit counters on 32-bit ppc platforms.Michael Tuexen2018-11-126-19/+23
| | | | | | | | | | | | Several statistic counters are uint64_t values and are printed by systat using %lu. This results in displaying wrong numbers. Use PRIu64 instead. While there, print variables of size_t using %zd. MFC after:i 3 days Differential Revision: https://reviews.freebsd.org/D17838 Notes: svn path=/head/; revision=340361
* Make outfile constant.Xin LI2018-11-121-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=340359
* Move llvm-profdata build into MK_LLVM_COV blockEd Maste2018-11-091-1/+1
| | | | | | | | | | | | | | llvm-profdata is used with llvm-cov for code coverage (although llvm-cov can also operate independently in a gcov-compatible mode). Although llvm-profdata can be used independently of llvm-cov it makes sense to group these under one option. Also handle these in OptionalObsoleteFiles.inc while here. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=340296
* llvm-cov: also install as gcov (if GNU gcov is disabled)Ed Maste2018-11-091-0/+6
| | | | | | | | | | | | llvm-cov provides a gcov-compatible interface when invoked as gcov. Reviewed by: dim, markj MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17923 Notes: svn path=/head/; revision=340289
* Cross-reference nohup(1) and daemon(8).Mateusz Piotrowski2018-11-091-2/+3
| | | | | | | | | Reviewed by: bcr Approved by: krion (mentor, implicit), mat (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D17920 Notes: svn path=/head/; revision=340283
* bspatch: simplify capsicumizationMariusz Zaborski2018-11-071-20/+16
| | | | | | | | | | | Assume that user wants to run with capsicum support if he builds the software with HAVE_CAPSICUM. Treat running application without capsicum in the kernel as an error. MFC after: 3 weeks Notes: svn path=/head/; revision=340239
* elfdump: Add -E to test if a file is an ELF binary.Brooks Davis2018-11-052-6/+21
| | | | | | | | | | | | | This is intended to replace potentially unreliable checks like: file -b $1 | grep -q '^ELF ..-bit .SB executable' Reviewed by: emaste Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15971 Notes: svn path=/head/; revision=340169
* capsicum: use a new capsicum helpers in toolsMariusz Zaborski2018-11-0413-42/+35
| | | | | | | Use caph_{rights,ioctls,fcntls}_limit to simplify the code. Notes: svn path=/head/; revision=340138
* Teach man(1) about C.UTF-8.Yuri Pankov2018-11-041-6/+14
| | | | | | | | | | | | While here, use LANG as the proper source to select man pages language/encoding, falling back to LC_CTYPE. Reviewed by: bapt Approved by: kib (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D17835 Notes: svn path=/head/; revision=340128
* usr.bin/sed/tests: fix one of the regression test cases by adding itsYuri Pankov2018-10-311-0/+1
| | | | | | | | | | | results file to the build. Reviewed by: kevans Approved by: kib (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D17776 Notes: svn path=/head/; revision=339955
* Teach procstat -x about the AT_EHDRFLAGS ELF auxiliary vector.John Baldwin2018-10-291-0/+6
| | | | | | | | | | | Submitted by: Shawn Webb <lattera@gmail.com> Reviewed by: brooks Obtained from: HardenedBSD (bb71e9889d1362df01c2e5162e84cd7a4fc029c8) MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D17067 Notes: svn path=/head/; revision=339894
* truss: Fix display of shm_open(SHM_ANON, ...).Thomas Munro2018-10-282-1/+10
| | | | | | | | | | | | | Currently truss(1) shows shm_open(SHM_ANON, ...) as shm_open("(null)", ...). Detect the special value and display it by name. Reviewed by: jhb, allanjude, tuexen Approved by: mjg (mentor) MFC with: r339224 Differential Revision: https://reviews.freebsd.org/D17461 Notes: svn path=/head/; revision=339840
* localedef: define characters in "space" class also as "print", exceptYuri Pankov2018-10-271-4/+16
| | | | | | | | | | | | | | for the known conflicts ("control" characters can't be "print"able). POSIX doesn't explicitly forbid this, and actually includes <space> character in "print". PR: 225692 Reviewed by: bapt, cem (previous version), pfg (previous version) Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D17467 Notes: svn path=/head/; revision=339827
* Add an IMPLEMENTATION NOTES section to ldd.1.Mark Johnston2018-10-231-1/+10
| | | | | | | | | PR: 231926 Reviewed by: emaste MFC after: 1 month Notes: svn path=/head/; revision=339653
* ar: report errno on warning/errorEd Maste2018-10-234-12/+15
| | | | | | | | | | | | | | Previously ar would report an error like "ar: fatal: Write error" without including additional errno information. Change warnings and errors to include archive_errno() so that the user may have some idea of the reason for the failure. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17650 Notes: svn path=/head/; revision=339648
* Add a "live" mode to ktrdump.John Baldwin2018-10-222-14/+62
| | | | | | | | | | | | | | | | | | | | | | | Support a "live" mode in ktrdump enabled via the -l flag. In this mode, ktrdump polls the kernel's trace buffer periodically (currently hardcoded as a 50 millisecond interval) and dumps any newly added entries. Fancier logic for the timeout (e.g. a command line option or some kind of backoff based on the time since the last entry) can be added later as the need arises. While here, fix some bugs from when this was Capsicum-ized: - Use caph_limit_stream() for the output stream so that isatty() works and the output can be line-buffered (especially useful for live mode). - Use caph_limit_stderr() to permit error messages to be displayed if an error occurs after cap_enter(). Reviewed by: kib, 0mp (manpage) MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D17315 Notes: svn path=/head/; revision=339620
* Add -b/-l options to localedef(1) to specify output endianness and useYuri Pankov2018-10-205-60/+108
| | | | | | | | | | | | | | | | it appropriately when building share/ctypedef and share/colldef. This makes the resulting locale data in EL->EB (amd64->powerpc64) cross build and in the native EB build match. Revert the changes done to libc in r308170 as they are no longer needed. PR: 231965 Reviewed by: bapt, emaste, sbruno, 0mp Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D17603 Notes: svn path=/head/; revision=339489
* Add myself to calendar, and update mentors-mentee relationships.Alexandre C. GuimarĂ£es2018-10-201-0/+1
| | | | | | | | | Reviewed by: mat (mentor) Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D17396 Notes: svn path=/head/; revision=339457
* A single comma was missing to separate the "see also" items inBenedict Reuschling2018-10-201-1/+1
| | | | | | | | | | last.1 and lastlogin.8. Add it back. PR: 231187 Submitted by: david.marec@davenulle.org Notes: svn path=/head/; revision=339450
* Add myself to committers-src.dot and calendar.freebsd.Yuri Pankov2018-10-101-0/+1
| | | | | | | Approved by: re (gjb), kib (mentor) Notes: svn path=/head/; revision=339274
* MFH r338661 through r339253.Glen Barber2018-10-091-0/+1
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/openssl111/; revision=339255
* | MFH r339206-r339212, r339215-r339239Glen Barber2018-10-081-0/+4
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/openssl111/; revision=339240
| * Teach truss how to display shm_open(2), shm_unlink(2)Allan Jude2018-10-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | Submitted by: Thomas Munro <munro@ip9.org> Reviewed by: tuexen, kib Approved by: re (rgrimes) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D17457 Notes: svn path=/head/; revision=339224
* | MFH r338661 through r339200.Glen Barber2018-10-0510-64/+161
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/openssl111/; revision=339201
| * top(1): Rework DESCRIPTION OF MEMORY section.Mateusz Piotrowski2018-10-021-52/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to markup issues, the DESCRIPTION OF MEMORY section is rather unreadable; rework it a bit, using subsections for different lines of the top output, and move it closer to description. While here, pet manlint ordering other sections as expected. Submitted by: Yuri Pankov <yuripv@yuripv.net> Reviewed by: eadler Approved by: re (gjb), krion (mentor) Differential Revision: https://reviews.freebsd.org/D17369 Notes: svn path=/head/; revision=339080
| * Remove references to the "new" NFS clients and servers. The "old"Edward Tomasz Napierala2018-10-011-4/+3
| | | | | | | | | | | | | | | | | | | | | | NFS stack is long gone. Approved by: re (gjb) MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=339071
| * Don't override LDFLAGS set in bsd.cpu.mk.Brooks Davis2018-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a direct commit to a generated file. Simon plans to fix this upstream before the next import. PR: 231557 Approved by: re (gjb) Obtained from: CheriBSD Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=338925
| * Import mandoc 1.14.4Baptiste Daroussin2018-09-201-2/+2
| | | | | | | | | | | | | | | | Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=338826
| * 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
| * Move install of locate.rc to usr.bin/locate/locate/Brad Davis2018-09-181-4/+1
| | | | | | | | | | | | | | | | | | | | This leverages CONFS to handle the install and purges an old comment. Approved by: re (blanket, pkgbase), bapt (mentor) Differential Revision: https://reviews.freebsd.org/D17215 Notes: svn path=/head/; revision=338758
| * Move mail.rc install to usr.bin/mail.Brad Davis2018-09-181-0/+1
| | | | | | | | | | | | | | | | | | | | This leverages CONFS to do the install Approved by: re (blanket, pkgbase), bapt (mentor) Differential Revision: https://reviews.freebsd.org/D17216 Notes: svn path=/head/; revision=338757