| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
| |
Describe -m argument as "mode" instead of "display".
MFC after: 3 days
|
|
|
|
|
|
| |
While here, fix the indentation of the second line in the message.
MFC after: 3 days
|
|
|
|
|
|
| |
While here, add a short sentence introducing the options.
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
B is listed as an interactive command to toggle the display of threads.
This is a typo introduced during the conversion of the manual page to
mdoc.
Fixes: 9d6cce02a78c967e69b603d503545c4b43d7765f
MFC after: 3 days
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D32098
|
|
|
|
|
|
|
|
| |
This fixes a -Wnested-extern error with GCC 9. There is an existing
extern declaration in top.h.
Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D31937
|
|
|
|
|
| |
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/536/files
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Reviewed by: imp@
Pull Request: https://github.com/freebsd/freebsd-src/pull/479
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unset VIS_SAFE flag as it turned out to be actually unsafe
for continuos top display as it's passing through sequences
resulting cursor movement (backspace, tab, carriage-return),
and explicitly set VIS_TAB for the same reason.
Reported by: Mark Millard <marklmi@yahoo.com>, swills
Tested by: Mark Millard <marklmi@yahoo.com>, swills
Notes:
svn path=/head/; revision=363207
|
|
|
|
|
|
|
|
|
|
| |
The sysctl was removed by r76078 in 2001.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes:
svn path=/head/; revision=362711
|
|
|
|
|
|
|
|
|
| |
PR: 244153
Reported by: 0mp
MFC with: r359594
Notes:
svn path=/head/; revision=359597
|
|
|
|
|
|
|
|
|
| |
PR: 244153
Submitted by: fehmi noyan isi <fnoyanisi@yahoo.com>
MFC after: 3 days
Notes:
svn path=/head/; revision=359594
|
|
|
|
|
|
|
|
|
| |
Submitted by: Antranig Vartanian <antranigv@freebsd.am>
Reviewed by: imp, philip
Differential Revision: https://reviews.freebsd.org/D22871
Notes:
svn path=/head/; revision=355978
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Otherwise small quantities look nonsensical. For instance, when
swapping in a single page we would print "4096 In".
Fix code indentation while here.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=354829
|
|
|
|
|
|
|
|
|
|
|
| |
This uses the same logic as with the -s option, first validating the
entered value, then storing the result in a struct timeval.
MFC after: 3 days
X-MFC-With: r352818
Notes:
svn path=/head/; revision=352819
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In r334906, the -s option was changed to allow fractional times, but
this only functioned correctly for batch mode. In interactive mode, any
delay below 1.0 would get floored to zero. This would put top(1) into a
tight loop, which could be difficult to interrupt.
Fix this by storing the -s option value (after validation) into a struct
timeval, and using that struct consistently for delaying with select(2).
Next up is to allow interactive entry of a fractional delay value.
MFC after: 3 days
Notes:
svn path=/head/; revision=352818
|
|
|
|
|
|
|
|
|
|
|
| |
The description talks about 'number', while the final argument was
'count'. Since 'count' is already used for the count of displays,
change the final argument name to 'number'.
MFC after: 3 days
Notes:
svn path=/head/; revision=352804
|
|
|
|
|
|
|
| |
locale to LC_CTYPE in the ENVIRONMENT section.
Notes:
svn path=/head/; revision=352568
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=349957
|
|
|
|
|
|
|
|
|
|
|
| |
Submitted by: antranigv@freebsd.am
Reviewed by: bapt
MFC after: 1 month
Sponsored by: Klara Systems
Differential Revision: https://reviews.freebsd.org/D18928
Notes:
svn path=/head/; revision=349235
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to no longer be displayed. This was because the reimplementation of
setup_buffer() did not copy the previous contents into any reallocated
buffer.
Reported by: James Wright <james.wright@jigsawdezign.com>
PR: 236947
MFC after: 3 days
Notes:
svn path=/head/; revision=345807
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In line_update(), set lastcol correctly after moving to any non-zero
column, so the "overwrite old stuff" part does not attempt to address
negative offsets in the current line.
Rewrite setup_buffer() to always allocate at least 80 characters,
otherwise various calls to summary_format() will overwrite the end of
the buffers, if the screen width gets small enough.
MFC after: 1 week
Notes:
svn path=/head/; revision=344381
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid setting zero bytes beyond the length of the 'thisline' parameters
in i_process() and u_process(), and don't attempt to memset a negative
number of bytes.
MFC after: 1 week
Notes:
svn path=/head/; revision=343959
|
|
|
|
|
|
|
|
|
| |
declarations from base gcc, by renaming those variables.
MFC after: 1 week
Notes:
svn path=/head/; revision=343958
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
getopt_long(3) requires the long options be terminated by a NULL block.
Without the terminator, an invalid long option results in a segmentation
fault.
Reported by: Brandon Bergren
MFC after: 1 week
Notes:
svn path=/head/; revision=343165
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
PR: 230872
Approved by: re (marius)
MFC after: 1 week
Notes:
svn path=/head/; revision=338315
|
|
|
|
|
|
|
| |
This also makes make "-v" exit without error, since it isn't.
Notes:
svn path=/head/; revision=338189
|
|
|
|
|
|
|
|
|
|
|
| |
When top -sH is run it continually updates. It should issue an warning
instead.
Reported by: jmg
PR: 230803
Notes:
svn path=/head/; revision=338187
|
|
|
|
| |
Notes:
svn path=/head/; revision=337661
|
|
|
|
|
|
|
|
|
| |
It does not make sense to show a "thread count" column when displaying
threads separately. In fact we don't, but do show the header for this
column. Fix this.
Notes:
svn path=/head/; revision=337448
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
incremented
- fix an AddressSanitizer error
Submitted by: devnexen@gmail.com
Reviewed by: eadler
Approved by: gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D16183
Notes:
svn path=/head/; revision=336756
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
regressed in r336028
PR: 229842
Reported by: Ali Abdallah <aliovx@gmail.com>
Reviewed by: eadler, cy
Approved by: gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D16455
Notes:
svn path=/head/; revision=336753
|
|
|
|
|
|
|
|
| |
Approved by: gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D16452
Notes:
svn path=/head/; revision=336737
|
|
|
|
|
|
|
|
|
|
|
|
| |
The original intention was 4 columns but with a usable a result. In
practice this was not the case. Increase the number of columns to 5
until humanize_number learns alternative ways of presenting the number.
Requested by: many
Ref D15801
Notes:
svn path=/head/; revision=336707
|
|
|
|
| |
Notes:
svn path=/head/; revision=336174
|
|
|
|
|
|
|
|
|
|
|
|
| |
Encoding-specific processing introduced in r335836 is not recommended.
And doing getenv("LANG") and assuming an encoding based on it is a
very bad practice to internationalize software.
Submitted by: hrs
Differential Revision: https://reviews.freebsd.org/D16203
Notes:
svn path=/head/; revision=336160
|
|
|
|
|
|
|
|
|
|
|
| |
by r336028
Reviewed by: cy
Approved by: gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D16174
Notes:
svn path=/head/; revision=336150
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2nd argument of vsnprintf() to get the strlen of next_msg so that the
appropriate size is used.
Found with gcc.
/usr.bin/top/display.c: In function 'new_message':
/usr.bin/top/display.c:963:31: error:
argument to 'sizeof' in 'vsnprintf' call is the same expression as the
destination; did you mean to provide an explicit length?
[-Werror=sizeof-pointer-memaccess]
vsnprintf(next_msg, sizeof(next_msg), msgfmt, args);
Reviewed by: daichi
Notes:
svn path=/head/; revision=336031
|
|
|
|
|
|
|
|
|
|
|
| |
by "-a" and expand to match terminal width
Reviewed by: eadler
Approved by: gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D16083
Notes:
svn path=/head/; revision=336028
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
args is empty.
Instead, use kvm_getargv() unconditionally to obtain the process
arguments. It means that one additional sysctl(2) is performed there.
Submitted by: Thomas Munro
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D16111
Notes:
svn path=/head/; revision=335937
|
|
|
|
|
|
|
|
|
| |
is unsigned in riscv GCC, so use guaranted signed char type.
Sponsored by: DARPA, AFRL
Notes:
svn path=/head/; revision=335889
|
|
|
|
|
|
|
|
|
|
|
| |
mode to 'io' mode, an artifact remains because the buffer is not
"finished" with a NULL terminator using sbuf_finish().
An example of this is, when the "m" command is entered, the title line
will contain COMMANDND instead of COMMAND. This commit fixes this.
Notes:
svn path=/head/; revision=335881
|
|
|
|
|
|
|
|
|
| |
There isn't any need to limit the size of the screen. Utilities like
'less -S' don't have a (meaningful) limit anyways. This also makes the
way to dynamically changing the column widths based on the screen width.
Notes:
svn path=/head/; revision=335850
|
|
|
|
|
|
|
|
|
| |
Reviewed by: eadler
Approved by: gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D16006
Notes:
svn path=/head/; revision=335836
|
|
|
|
|
|
|
|
|
| |
Reviewed by: eadler
Approved by: gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D16006
Notes:
svn path=/head/; revision=335685
|