summaryrefslogtreecommitdiff
path: root/usr.bin/w
AgeCommit message (Collapse)Author
2018-07-13Add & update author credits for Mary Ann Horton.cheloha
Add credits for leave(1) and w(1); update credit for script(1). Supported by the Spinellis repo and CSRG SCCS logs. ok brynet millert jca jmc schwarze
2017-12-18Add the CLOCK_BOOTTIME clockid for use with clock_gettime(2)cheloha
and put it to use in userspace in lieu of the kern.boottime sysctl. Its absolute value is the time that has elapsed since the system booted, i.e., the system uptime. Use in top(1), w(1), and snmpd(8) eliminates a race with settimeofday(2), adjtime(2), etc. inherent to deriving the system uptime via the kern.boottime sysctl. Product of a great deal of discussion/revision with jca@, tb@, and guenther@. ok tb@ jca@ guenther@ dlg@ mlarkin@ tom@
2017-12-14when -h is passed don't print any header, as is common practise in other ↵Jasper Lievisse Adriaanse
systems too. adjust uptime.1 while here as pointed out by martijn@ ok tb@ jca@ martijn@
2017-07-27kp can be NULL (eg, stale utmp entry), so adjust the comment.Jeremie Courreges-Anglas
Prompted by another diff from Klemens Nanni
2017-05-30stop reacharound from w(1) to ps(1); no functional change;Ingo Schwarze
diff from bcallah@; OK tedu@ deraadt@
2016-03-19if -a is specified, allow "dns" in pledge requests.Theo de Raadt
problem noticed by Raf Czlonka
2015-10-23With new pledge "ps" and "vminfo" requests, ps/top/w become possible.Theo de Raadt
2015-08-31calculate screen size way earlier, this will provide some opportunitiesTheo de Raadt
for taming the string manipulation in the later half of the program.
2015-03-15tzfile.h is an internal header that should never have been installed.Todd C. Miller
What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-15Reduce instances of `` '' in manuals.Anthony J. Bentley
troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-08Cannot find a reason for this to need machine/cpu.hTheo de Raadt
2014-07-04Track whether a process is a zombie or not yet fully built via flagsPhilip Guenther
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state. Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads. tweaks kettenis@ feedback and ok matthew@
2013-11-20str derives from argv; so use an unsigned char cast for isspace()Theo de Raadt
ok ratchov
2013-11-11%lld for time_t even if division occursTheo de Raadt
2013-10-31sometimes we find .h we no longer needTheo de Raadt
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2012-12-18We no longer use struct eproc for kinfo_proc in sysctl.h so thereTodd C. Miller
is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
2012-06-24Fix comment. Pointed out by Seth Wright (seth at crosse.org)Philip Guenthe
2012-01-15Document what remains of the 2BSD heritage.Ingo Schwarze
All facts found on the CSRG CD 1 in the 2bsd directory. Feedback and ok jmc@, ok sobrado@. Note the large number of 3BSD -> 2BSD changes. Kirk McKusick asked Cynthia Livingston (cael@, of USENIX, who converted most manuals from man(7) to mdoc(7) for the 4.3BSD-Net/2 release and added lots of historical information around that time) what happened in this respect, and she answered that she often wrote "appeared in 3BSD" when she was unsure of when a utility was added. Thanks to Kirk and Cynthia for that clarification.
2011-07-28Adjust for machdep.consdev -> kern.consdev sysctl change. This should restoreMark Kettenis
the functionality to figure out the real console device when /dev/console is used. ok millert@, deraadt@
2011-04-26tyop in commentJasper Lievisse Adriaanse
2011-04-10Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowPhilip Guenthe
that we've got name we want for the API we want "ZAP!" deraadt@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2008-09-30Properly display files with embedded colons being xferred via ftd.Todd C. Miller
Closes PR 5119. OK miod@
2007-05-31convert to new .Dd format;Jason McIntyre
2005-07-20remove the -M and -N flags to uptime, they do nothing.Jared Yanovich
w(1) is unaffected by this. closes PR#4298 ok millert, deraadt
2005-04-11spacingTheo de Raadt
2005-01-09w(1) does not deal w/ cpu time;Jason McIntyre
from netbsd -r 1.16;
2004-11-18handle SONPROC; ok aaron, deraadt, krwMarkus Friedl
2004-09-14delete unused variableTheo de Raadt
2004-08-18- .Xr utmp 5Jason McIntyre
- sort options and sync usage()
2004-01-08Silence warningTodd C. Miller
2004-01-08Convert to kinfo_proc2; ok deraadt@Todd C. Miller
2003-11-26Minor cleanup. Remove gratuitous use of __CONCAT that was neededTodd C. Miller
to avoid SCCS braindamage. Also use ANSI function headers while we are here. Based on a diff from espie@
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-13a few more strlcpyTheo de Raadt
2002-09-17ansiTheo de Raadt
2002-06-08No need to be setgid kmem anymore.Angelos D. Keromytis
2002-02-19Fix gethostname() usage.Mike Pechkin
deraadt@ ok
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-19kill more registersMike Pechkin
millert@ ok
2001-11-09Since all our arches have /dev/ksyms, replace rigid mentions of the kernelMiod Vallat
being /bsd with more correct terms, and remove /bsd and /dev/kmem from the FILES section if they were there.
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2001-06-27UVM is no longer an optionArtur Grabowski
2001-05-30- Fix usagesmart
- Remove an instance of "'buf[sizeof(buf) - 1] = '\0'" - A few style nits deraadt@ ok