summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.c
AgeCommit message (Expand)Author
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
2007-11-01make check on -s and interactive s consistent; from Tilo StritzkyOtto Moerbeek
2007-10-16Properly adjust headers displayed when the screen contains few lines.Otto Moerbeek
2007-10-04only init screen when in interactive mode; ok ray@Otto Moerbeek
2007-09-27No need to use two buffers for reading data from the user. From MarkOtto Moerbeek
2007-09-26reuse available var, from Mark LumsdenOtto Moerbeek
2007-09-18redundant asignment; from Mark LumsdenOtto Moerbeek
2007-09-10typo in message, from Mark Lumsden.Otto Moerbeek
2007-07-27u_endscreen()'s argument is entirely unused; inspired by zinovik@cs.karelia.ruTheo de Raadt