CVS commit: src/bin/ps
Module Name:src Committed By: christos Date: Fri Jun 4 22:39:41 UTC 2021 Modified Files: src/bin/ps: ps.c Log Message: use parsenum like everywhere else in the code. To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: wiz Date: Fri Jun 4 08:17:53 UTC 2021 Modified Files: src/bin/ps: ps.c Log Message: Sort options in usage. To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: wiz Date: Fri Jun 4 08:16:14 UTC 2021 Modified Files: src/bin/ps: ps.1 Log Message: Sort options in synopsis. To generate a diff of this commit: cvs rdiff -u -r1.111 -r1.112 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: cjep Date: Fri Jun 4 06:28:42 UTC 2021 Modified Files: src/bin/ps: ps.1 ps.c Log Message: PR standards/11223 Add -G to take a single group argument heading towards POSIX.2 compliance. Patch from jperkin and reviewed by simonb. To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/bin/ps/ps.1 cvs rdiff -u -r1.93 -r1.94 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: maya Date: Sat Apr 17 08:35:33 UTC 2021 Modified Files: src/bin/ps: print.c Log Message: Remove SCCS workaround. No binary change. To generate a diff of this commit: cvs rdiff -u -r1.134 -r1.135 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: christos Date: Tue Apr 6 13:35:52 UTC 2021 Modified Files: src/bin/ps: print.c Log Message: - dedup code - add a safe_strftime() to handle error cases To generate a diff of this commit: cvs rdiff -u -r1.133 -r1.134 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: simonb Date: Tue Apr 6 05:13:24 UTC 2021 Modified Files: src/bin/ps: print.c Log Message: Fix the column width calculation for the lstart column if an empty column header is specified. Fixes bug pointed out by Ted Spradley in https://mail-index.netbsd.org/netbsd-users/2021/04/05/msg026808.html . To generate a diff of this commit: cvs rdiff -u -r1.132 -r1.133 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: simonb Date: Tue Apr 6 04:49:41 UTC 2021 Modified Files: src/bin/ps: Makefile Log Message: We only need -Wno-format-y2k for print.c . To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/bin/ps/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: simonb Date: Wed Aug 26 10:54:13 UTC 2020 Modified Files: src/bin/ps: nlist.c Log Message: Don't rely on the USPACE kernel define as a fallback if the vm.uspace sysctl fails. We've got bigger problems if the sysctl fail anyway. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/bin/ps/nlist.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: maxv Date: Wed Sep 19 15:20:39 UTC 2018 Modified Files: src/bin/ps: print.c Log Message: Don't display l_wchan, either there is something in l_wmesg and we display it, or there's nothing and we print "-". To generate a diff of this commit: cvs rdiff -u -r1.129 -r1.130 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: christos Date: Wed Apr 11 18:52:05 UTC 2018 Modified Files: src/bin/ps: keyword.c print.c ps.c Log Message: use EXIT_FAILURE instead of 1 To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/bin/ps/keyword.c cvs rdiff -u -r1.128 -r1.129 src/bin/ps/print.c cvs rdiff -u -r1.89 -r1.90 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: christos Date: Wed Apr 11 18:52:29 UTC 2018 Modified Files: src/bin/ps: ps.c Log Message: kvm_geterr() already contains errno, use errx. To generate a diff of this commit: cvs rdiff -u -r1.90 -r1.91 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: kamil Date: Fri Jan 12 23:01:14 UTC 2018 Modified Files: src/bin/ps: ps.c Log Message: Fix an unitialized memory read bug in ps(1) rawcpu of type int, is declared inside main(){} and it can be passed as uninitialized to setpinfo(). The setpinfo() function has a switch checking the value of rawcpu: if (!rawcpu) pi[i].pcpu /= 1.0 - exp(ki[i].p_swtime * log_ccpu); rawcpu is set to 1 with the command line argument "-C". -C Change the way the CPU percentage is calculated by using a "raw" CPU calculation that ignores "resident" time (this normally has no effect). Bug reproducible with an invocation: "ps u". It hides with "ps uC". Initialize rawcpu by default to 0, before the getopt(3) machinery. Detected with MSan running on NetBSD/amd64. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.89 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: kamil Date: Sat Dec 9 14:56:54 UTC 2017 Modified Files: src/bin/ps: extern.h keyword.c print.c Log Message: ps: Rename local routine name from uname to usrname This removes symbol name routine clash with libc's uname(3). This allows to build ps(1) against LLVM Sanitizers. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/bin/ps/extern.h cvs rdiff -u -r1.54 -r1.55 src/bin/ps/keyword.c cvs rdiff -u -r1.127 -r1.128 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: wiz Date: Mon Aug 28 05:57:37 UTC 2017 Modified Files: src/bin/ps: ps.1 Log Message: Bump date for previous. Remove/replace bogus Tn uses. To generate a diff of this commit: cvs rdiff -u -r1.108 -r1.109 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: rin Date: Mon Dec 26 20:52:39 UTC 2016 Modified Files: src/bin/ps: ps.c Log Message: simplify logic; there must be no CPU usage when p_swtime is zero To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: christos Date: Mon Dec 12 20:35:36 UTC 2016 Modified Files: src/bin/ps: print.c Log Message: Handle functions that use the offset from either kinfo_proc2/kinfo_lwp properly. To generate a diff of this commit: cvs rdiff -u -r1.126 -r1.127 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: christos Date: Fri Dec 2 21:59:03 UTC 2016 Modified Files: src/bin/ps: extern.h print.c ps.1 ps.c ps.h Log Message: provide a tree like display with -d, from FreeBSD To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/bin/ps/extern.h cvs rdiff -u -r1.125 -r1.126 src/bin/ps/print.c cvs rdiff -u -r1.105 -r1.106 src/bin/ps/ps.1 cvs rdiff -u -r1.86 -r1.87 src/bin/ps/ps.c cvs rdiff -u -r1.28 -r1.29 src/bin/ps/ps.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: rin Date: Mon Nov 28 08:21:10 UTC 2016 Modified Files: src/bin/ps: extern.h print.c ps.c ps.h Log Message: Calculate CPU usage (pcpu) once per process if it is required. This change significantly improves performance for slow machines when output is sorted by pcpu. ok martin To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/bin/ps/extern.h cvs rdiff -u -r1.124 -r1.125 src/bin/ps/print.c cvs rdiff -u -r1.85 -r1.86 src/bin/ps/ps.c cvs rdiff -u -r1.27 -r1.28 src/bin/ps/ps.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: rin Date: Mon Nov 28 08:19:23 UTC 2016 Modified Files: src/bin/ps: extern.h nlist.c print.c Log Message: for donlist{,_sysctl}: - obtain log_ccpu = log(ccpu) rather than ccpu itself - use common default values and warn users appropriately when errors occur ok martin To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/bin/ps/extern.h cvs rdiff -u -r1.26 -r1.27 src/bin/ps/nlist.c cvs rdiff -u -r1.123 -r1.124 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: rin Date: Mon Nov 28 08:18:27 UTC 2016 Modified Files: src/bin/ps: ps.c Log Message: KNF ok martin To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: sevan Date: Wed Aug 10 22:00:56 UTC 2016 Modified Files: src/bin/ps: ps.1 Log Message: Earliest reference in the TUHS archive is v3 Unfortunately only the source code for the compiler is present for that release. The v2 archive is missing the manuals & only contains a some of the commands. Switch to v3 and reference manual category eight, as per r1.32 of src/bin/ps/ps.1 from OpenBSD. Heads up from Ingo Schwarze. To generate a diff of this commit: cvs rdiff -u -r1.104 -r1.105 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: sevan Date: Wed Aug 10 18:44:50 UTC 2016 Modified Files: src/bin/ps: ps.1 Log Message: Document the version ps first appeared. To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: joerg Date: Sat Nov 15 01:58:34 UTC 2014 Modified Files: src/bin/ps: print.c Log Message: Use l_wmesg if the string is not empty. Don't bother checking l_name for nullness. To generate a diff of this commit: cvs rdiff -u -r1.122 -r1.123 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: dholland Date: Sat Jun 28 17:32:27 UTC 2014 Modified Files: src/bin/ps: ps.c Log Message: Don't print junk errnos. Avoids: % ps -tfoo ps: /dev/ttyfoo: Undefined error: 0 Exit 1 To generate a diff of this commit: cvs rdiff -u -r1.81 -r1.82 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: dholland Date: Sun Apr 20 23:31:40 UTC 2014 Modified Files: src/bin/ps: ps.c Log Message: Don't bother using variables whose value is never changed from the initialization value. To generate a diff of this commit: cvs rdiff -u -r1.80 -r1.81 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: dholland Date: Sun Apr 20 22:48:59 UTC 2014 Modified Files: src/bin/ps: extern.h print.c ps.h Log Message: Use an enum type for PRINTMODE vs. WIDTHMODE. Compiler output diffs have been checked. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/bin/ps/extern.h cvs rdiff -u -r1.121 -r1.122 src/bin/ps/print.c cvs rdiff -u -r1.26 -r1.27 src/bin/ps/ps.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: wiz Date: Wed Jan 15 09:24:31 UTC 2014 Modified Files: src/bin/ps: ps.1 Log Message: Bump date for previous. To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: mlelstv Date: Wed Jan 15 08:09:10 UTC 2014 Modified Files: src/bin/ps: ps.c Log Message: Make ps -s use LTIME instead of TIME in the default output format. To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.79 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: mlelstv Date: Wed Jan 15 08:07:53 UTC 2014 Modified Files: src/bin/ps: extern.h keyword.c print.c ps.1 Log Message: Add an LTIME column that prints lwp cputime. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/bin/ps/extern.h cvs rdiff -u -r1.53 -r1.54 src/bin/ps/keyword.c cvs rdiff -u -r1.120 -r1.121 src/bin/ps/print.c cvs rdiff -u -r1.101 -r1.102 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: joerg Date: Mon May 7 13:14:31 UTC 2012 Modified Files: src/bin/ps: ps.c Log Message: Push logic to convert a ttyname to a device number into its own function. Improve dealing with ptyfs by explicitly handling missing pts/%d entries, if the kernel supports the pts device (PR 40813). To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: wiz Date: Sun Apr 15 21:20:17 UTC 2012 Modified Files: src/bin/ps: ps.1 Log Message: Increase width of table column so it formats more nicely. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: wiz Date: Sun Apr 15 18:10:13 UTC 2012 Modified Files: src/bin/ps: ps.c Log Message: Choose better argument name for `-U' (sync with man page). >From Bug Hunting in email. To generate a diff of this commit: cvs rdiff -u -r1.76 -r1.77 src/bin/ps/ps.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: wiz Date: Sun Apr 15 18:09:50 UTC 2012 Modified Files: src/bin/ps: ps.1 Log Message: - choose better argument name for `-U'; - add argument names for options in man page; - improve wording, punctuation, capitalization. >From Bug Hunting in email. To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: wiz Date: Thu Mar 15 15:49:59 UTC 2012 Modified Files: src/bin/ps: ps.1 Log Message: Remove trailing whitespace. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: christos Date: Thu Mar 15 15:43:43 UTC 2012 Modified Files: src/bin/ps: ps.1 Log Message: Fix obsolete example (that referred to letters in process state that are not set anymore), and clarify their meaning. To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: dholland Date: Thu Feb 23 21:54:28 UTC 2012 Modified Files: src/bin/ps: ps.1 Log Message: The 'lstart' column uses strftime %c, not %C. Noted by mrg. To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: wiz Date: Mon Feb 13 12:55:28 UTC 2012 Modified Files: src/bin/ps: print.c Log Message: Remove unused variable. >From cppcheck via Henning Petersen in PR 46002. To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: dholland Date: Fri Jan 27 05:59:18 UTC 2012 Modified Files: src/bin/ps: ps.1 Log Message: Minor English improvements for -w, partly from Snader_LB. To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: dholland Date: Mon Jun 13 03:42:15 UTC 2011 Modified Files: src/bin/ps: print.c Log Message: When converting from pages to kilobytes, cast the return value of getpagesize() to size_t. For some reason getpagesize() is defined to return int, and several of the page counts we get come back from the kernel as int32_t; in LP64 without the cast the byte count will be computed in a 32-bit value and for large processes will overflow and become negative... and then remain negative when divided by 1024 to convert to kilobytes. Fixes a problem I hit the other day where I saw negative RSS, which turns out also to be PR 40642. Note: other logic in here will break down when we first get >2TB processes... and int32 page counts will break on >8TB processes. But hopefully we won't see any of that for a few years yet. To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: dholland Date: Sun Feb 13 08:34:01 UTC 2011 Modified Files: src/bin/ps: ps.1 Log Message: fix typo, from Randolf Richardson in PR 44559 To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: christos Date: Sat Jan 22 21:09:52 UTC 2011 Modified Files: src/bin/ps: print.c Log Message: fix previous. To generate a diff of this commit: cvs rdiff -u -r1.116 -r1.117 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: christos Date: Sat Jan 22 20:55:58 UTC 2011 Modified Files: src/bin/ps: print.c Log Message: Make printing of lwp flags similar to the process one, identifying (O)nproc (K)ernel threads and scheduler (a)ctivations. To generate a diff of this commit: cvs rdiff -u -r1.115 -r1.116 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: njoly Date: Wed Jul 28 17:39:54 UTC 2010 Modified Files: src/bin/ps: print.c Log Message: Do not check pcpu value against 100.0 but rather 99.95, to properly deal with value rounding. From a...@. To generate a diff of this commit: cvs rdiff -u -r1.114 -r1.115 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: njoly Date: Tue Jul 27 12:40:49 UTC 2010 Modified Files: src/bin/ps: print.c Log Message: Make %cpu drop the decimal part when reaching 100%, to stay in the 5 expected columns. To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.114 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: joerg Date: Fri May 14 17:37:06 UTC 2010 Modified Files: src/bin/ps: ps.1 Log Message: Don't break lines in .It, there be dragons in groff. To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/bin/ps
Module Name:src Committed By: joerg Date: Mon Mar 22 18:35:09 UTC 2010 Modified Files: src/bin/ps: ps.1 Log Message: Use .In instead of .Aq Pa for header files To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92 src/bin/ps/ps.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.