summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.c
AgeCommit message (Expand)Author
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
2022-12-16top(1): always recount number of online CPUsScott Soule Cheloha
2022-09-10top(1): remove last vestiges of "last pid" supportScott Soule Cheloha
2020-08-26Add "t" to toggle the display of routing tableskn
2020-08-23Filter by routing tablekn
2020-07-26Add / as alias for g (grep)kn
2020-06-25Remove unused "remaining" member in struct handlekn
2020-01-06Implement scrolling in top(1) using 9 and 0 keys.Vadim Zhukov
2019-10-08Simplify threads flag handlingkn
2019-10-08Replace "boolean.h" with <stdbool.h>kn
2019-10-06Avoid gasting around get_process_info()kn
2018-11-28Allow reverse sort orderkn
2018-11-17Add new KERN_CPUSTATS sysctl(2) so we can identify offline CPUs.cheloha
2018-11-02Accept numeric user IDskn
2018-11-01Merge duplicate code into helper functionskn
2018-10-05Revert KERN_CPTIME2 ENODEV changes in kernel and userspace.cheloha
2018-09-26KERN_CPTIME2: set ENODEV if the CPU is offline.cheloha
2018-09-22Use user_from_uid() and uid_from_user() directly. The wrappersTodd C. Miller
2018-09-13Fix warnings caused by user_from_uid() and group_from_gid() nowTodd C. Miller
2018-07-29After "termcap" initilization is finished, top appears to not open anyTheo de Raadt
2017-03-15annoying whitespace die die dieTheo de Raadt
2015-11-05allow "kill" from top, by using proc instead of idMarc Espie
2015-11-04replace setbuf with setvbuf, from Frederic NowakTed Unangst
2015-10-30top renice command requires pledge "id", from Michael LesniewskiTheo de Raadt
2015-10-25need "getpw" pledge; spotted by matthieuTheo de Raadt
2015-10-23With new pledge "ps" and "vminfo" requests, ps/top/w become possible.Theo de Raadt
2015-05-06Display thread IDs instead of the name of the process's owner when "-H"Martin Pieuchot
2014-09-17if there are more than 8 cpus, default to combined cpu stats (likeDavid Gwynne
2014-04-07Just exit if we get an error or HUP when poll()ing the keyboard.Todd C. Miller
2013-01-14When showing threads, say so. Fix up some comments and names at the same time.Philip Guenther
2012-06-08Add checks for command line input (or the TOP environment var)lum
2012-06-05Add support for hiding a user's processes in top.Bryan Steele
2012-04-20Silence warnings. Okay deraadt@.Paul Irofti
2011-12-16Use H to make top show process threads, instead of the current T. This isJoel Sing
2010-04-24delete two extra ; that got inserted somewhere along the lineTheo de Raadt
2010-04-21Handle a strdup failure.lum
2010-03-26Remove unnecessary ptr.lum
2010-03-23Fix pointer usage with the renice and kill error message structure. Pointer w...lum
2010-03-22make argument check for '-s' cli option and interactive 's' consistent. ok otto@lum
2010-03-18While resizing, show correct CPU stats, from Mark LumsdenOtto Moerbeek
2010-01-29Allow sorting by command and pid. Also, allow partial matches with strncmp.Ted Unangst
2009-12-10add an option '1' to display all cpu stats combined. helps save spaceTed Unangst
2009-07-18restore -S as toggle;Jason McIntyre
2009-06-04with -d1, switch interactive mode off, so the screen isn't restoredStuart Henderson
2007-11-29fix small glitch in displaying process list header; from Mark LumsdenOtto Moerbeek
2007-11-27use symbolic constant 'Infinity' instead of -1 where appropriate; fromOtto Moerbeek
2007-11-22Diff from Mark Lumsden: cleanup of reading strings and numbers, toOtto Moerbeek
2007-11-06prevent segv on wrong sort name; Mark Lumsden.Otto Moerbeek
2007-11-04Also show warning message for -U and -p in message area; noted by MarkOtto Moerbeek
2007-11-04Get rid of the very annoying warning message + delay when a commandOtto Moerbeek