aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/top/display.h
Commit message (Collapse)AuthorAgeFilesLines
* top: display battery capacity remainingPhilip Paeps2019-12-211-0/+1
| | | | | | | | | Submitted by: Antranig Vartanian <antranigv@freebsd.am> Reviewed by: imp, philip Differential Revision: https://reviews.freebsd.org/D22871 Notes: svn path=/head/; revision=355978
* top(1): support multibyte characters in command names (ARGV array)Daichi GOTO2019-09-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | depending on locale. - add setlocale() - remove printable() function - add VIS_OCTAL and VIS_SAFE to the flag of strvisx() to display non-printable characters that do not use C-style backslash sequences in three digit octal sequence, or remove it This change allows multibyte characters to be displayed according to locale. If it is recognized as a non-display character according to the locale, it is displayed in three digit octal sequence. Reference: https://www.mail-archive.com/svn-src-all@freebsd.org/msg165751.html https://www.mail-archive.com/svn-src-all@freebsd.org/msg165766.html https://www.mail-archive.com/svn-src-all@freebsd.org/msg165833.html https://www.mail-archive.com/svn-src-all@freebsd.org/msg165846.html https://www.mail-archive.com/svn-src-all@freebsd.org/msg165891.html Submitted by: hrs Differential Revision: https://reviews.freebsd.org/D16204 Notes: svn path=/head/; revision=352558
* Fix multiple warnings in usr.bin/top about discarded qualifiers fromDimitry Andric2019-02-101-1/+1
| | | | | | | | | | both clang and gcc, by either constifying variables, or when that is not possible, using __DECONST. MFC after: 1 week Notes: svn path=/head/; revision=343957
* top(1): include what you useEitan Adler2018-06-041-1/+2
| | | | | | | | | | | | - Change headers to more closely match what we use - use more standard functions instead of bzero, bcmp, bcopy - Add myself to authors. Tested with: base clang (amd64), gcc 9 (amd64), base clang (i386), base gcc (mips) Notes: svn path=/head/; revision=334600
* top(1): top warnings and cleanupEitan Adler2018-06-031-3/+3
| | | | | | | | | | | | | - Add const where helpful - add missing 'static' for file-local functions - use nitems where possible - convert manual abort() to assert - use strndup instead of homegrown version Tested with clang, gcc7, and gcc9 Notes: svn path=/head/; revision=334591
* top(1): const poison part 2Eitan Adler2018-06-021-3/+1
| | | | | | | Further reduce the number of warnings emitted by gcc. Notes: svn path=/head/; revision=334524
* top(1): further unconditionally assume we're on FreeBSDEitan Adler2018-05-211-1/+0
| | | | Notes: svn path=/head/; revision=333960
* top(1): build with WARNS=3Eitan Adler2018-05-211-1/+1
| | | | | | | | This fixes everything but -Wincompatible-pointer-types-discards-qualifiers Notes: svn path=/head/; revision=333959
* top(1): clean much of WARNS=3 issuesEitan Adler2018-05-211-1/+2
| | | | | | | | There is still one glaring issue: new_message is not a protoype, but can't be trivially converted since it uses K&R style var-args. Notes: svn path=/head/; revision=333951
* top(1): Migrate top to usr.binEitan Adler2018-05-191-0/+43
We've been maintaining top(1) for a long time, and the upstream hasn't existed/been used in similarly as long. Make it clear that we own top(1) Tested with 'make universe'. Everything passed except MIPS which failed for unrelated reasons. Install also tested for amd64. Reviewed by: sbruno No objections: imp, mmacy Differential Revision: https://reviews.freebsd.org/D15387 Notes: svn path=/head/; revision=333898