CVS commit: src/bin/ps

2021-11-05 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Sat Nov 6 06:38:03 UTC 2021 Modified Files: src/bin/ps: ps.1 Log Message: s/maxiumum/maximum/ To generate a diff of this commit: cvs rdiff -u -r1.114 -r1.115 src/bin/ps/ps.1 Please note that diffs are not public domain; they

CVS commit: src/bin/ps

2021-11-05 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Sat Nov 6 06:38:03 UTC 2021 Modified Files: src/bin/ps: ps.1 Log Message: s/maxiumum/maximum/ To generate a diff of this commit: cvs rdiff -u -r1.114 -r1.115 src/bin/ps/ps.1 Please note that diffs are not public domain; they

CVS commit: src/bin/ps

2021-09-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Sep 15 13:16:57 UTC 2021 Modified Files: src/bin/ps: keyword.c Log Message: Don't assign v to newvar, so we can still access the original length. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/bin/ps/key

CVS commit: src/bin/ps

2021-09-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Sep 15 13:16:57 UTC 2021 Modified Files: src/bin/ps: keyword.c Log Message: Don't assign v to newvar, so we can still access the original length. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/bin/ps/key

CVS commit: src/bin/ps

2021-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 14 22:14:11 UTC 2021 Modified Files: src/bin/ps: ps.1 Log Message: reflect reality on flags. To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.114 src/bin/ps/ps.1 Please note that diffs are not public domain

CVS commit: src/bin/ps

2021-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 14 22:14:11 UTC 2021 Modified Files: src/bin/ps: ps.1 Log Message: reflect reality on flags. To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.114 src/bin/ps/ps.1 Please note that diffs are not public domain

CVS commit: src/bin/ps

2021-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 14 22:01:17 UTC 2021 Modified Files: src/bin/ps: keyword.c print.c ps.c ps.h Log Message: use emalloc and friends, add ktrace flag printing. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/bin/ps/keyw

CVS commit: src/bin/ps

2021-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 14 22:01:17 UTC 2021 Modified Files: src/bin/ps: keyword.c print.c ps.c ps.h Log Message: use emalloc and friends, add ktrace flag printing. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/bin/ps/keyw

CVS commit: src/bin/ps

2021-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 14 17:09:18 UTC 2021 Modified Files: src/bin/ps: Makefile keyword.c print.c ps.1 ps.h Log Message: Provide symbolic printing of some keywords by capitalizing them. To generate a diff of this commit: cvs rdiff -u -r1.30

CVS commit: src/bin/ps

2021-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Sep 14 17:09:18 UTC 2021 Modified Files: src/bin/ps: Makefile keyword.c print.c ps.1 ps.h Log Message: Provide symbolic printing of some keywords by capitalizing them. To generate a diff of this commit: cvs rdiff -u -r1.30

CVS commit: src/bin/ps

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 15:27:50 UTC 2019 Modified Files: src/bin/ps: ps.c Log Message: ps(1): Guard freeing the memory of pinfo with __NO_LEAKS. No more leaks are detected by LSan/NetBSD as of the LLVM snapshot (clang10svn) from 2019-09-15.

CVS commit: src/bin/ps

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sun Sep 15 15:27:50 UTC 2019 Modified Files: src/bin/ps: ps.c Log Message: ps(1): Guard freeing the memory of pinfo with __NO_LEAKS. No more leaks are detected by LSan/NetBSD as of the LLVM snapshot (clang10svn) from 2019-09-15.

Re: CVS commit: src/bin/ps

2019-09-12 Thread Kamil Rytarowski
On 13.09.2019 03:51, Roy Marples wrote: > On 12/09/2019 20:55, Joerg Sonnenberger wrote: >> On Thu, Sep 12, 2019 at 01:52:19AM +0100, Roy Marples wrote: >>> On 11/09/2019 20:03, Robert Elz wrote:   Date:    Wed, 11 Sep 2019 17:02:53 +   From:    "Kamil Rytarowski" >>>

Re: CVS commit: src/bin/ps

2019-09-12 Thread Roy Marples
On 12/09/2019 20:55, Joerg Sonnenberger wrote: On Thu, Sep 12, 2019 at 01:52:19AM +0100, Roy Marples wrote: On 11/09/2019 20:03, Robert Elz wrote: Date:Wed, 11 Sep 2019 17:02:53 + From:"Kamil Rytarowski" Message-ID: <20190911170253.d097ff...@cvs.netbsd.or

Re: CVS commit: src/bin/ps

2019-09-12 Thread Joerg Sonnenberger
On Thu, Sep 12, 2019 at 01:52:19AM +0100, Roy Marples wrote: > On 11/09/2019 20:03, Robert Elz wrote: > > Date:Wed, 11 Sep 2019 17:02:53 + > > From:"Kamil Rytarowski" > > Message-ID: <20190911170253.d097ff...@cvs.netbsd.org> > > > >| Free it when no longer

Re: CVS commit: src/bin/ps

2019-09-11 Thread Martin Husemann
On Thu, Sep 12, 2019 at 04:33:40AM +0700, Robert Elz wrote: > Does anyone really want to make the shell, or other programs, run slower > just so someone can say that all memory was nicely (but pointlessly) freed > before exit ? I strongly support Robert's view here. There should be *NO* performanc

Re: CVS commit: src/bin/ps

2019-09-11 Thread Kamil Rytarowski
On 12.09.2019 02:52, Roy Marples wrote: > On 11/09/2019 20:03, Robert Elz wrote: >> Date:    Wed, 11 Sep 2019 17:02:53 + >> From:    "Kamil Rytarowski" >> Message-ID:  <20190911170253.d097ff...@cvs.netbsd.org> >> >>    | Free it when no longer used, just before the progr

Re: CVS commit: src/bin/ps

2019-09-11 Thread Roy Marples
On 11/09/2019 20:03, Robert Elz wrote: Date:Wed, 11 Sep 2019 17:02:53 + From:"Kamil Rytarowski" Message-ID: <20190911170253.d097ff...@cvs.netbsd.org> | Free it when no longer used, just before the program termination. Can we please avoid this kind of nons

Re: CVS commit: src/bin/ps

2019-09-11 Thread Robert Elz
Date:Wed, 11 Sep 2019 21:13:24 +0200 From:Kamil Rytarowski Message-ID: <6c853bc7-6510-459e-d451-51f988617...@gmx.com> | We have got even fixups in libc for such "nonsense" cases. Why? In 99% (or more) of libc the fixes are relevant, as those functions can be call

Re: CVS commit: src/bin/ps

2019-09-11 Thread Kamil Rytarowski
On 11.09.2019 21:03, Robert Elz wrote: > Date:Wed, 11 Sep 2019 17:02:53 + > From:"Kamil Rytarowski" > Message-ID: <20190911170253.d097ff...@cvs.netbsd.org> > > | Free it when no longer used, just before the program termination. > > Can we please avoid this kind

Re: CVS commit: src/bin/ps

2019-09-11 Thread Robert Elz
Date:Wed, 11 Sep 2019 17:02:53 + From:"Kamil Rytarowski" Message-ID: <20190911170253.d097ff...@cvs.netbsd.org> | Free it when no longer used, just before the program termination. Can we please avoid this kind of nonsense. Everything is freed when every progra

CVS commit: src/bin/ps

2019-09-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 11 17:02:53 UTC 2019 Modified Files: src/bin/ps: ps.c Log Message: Plug memory leak in ps(1) pinfo is allocated in setpinfo() with calloc(3). Free it when no longer used, just before the program termination. Detected wit

CVS commit: src/bin/ps

2019-09-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Sep 11 17:02:53 UTC 2019 Modified Files: src/bin/ps: ps.c Log Message: Plug memory leak in ps(1) pinfo is allocated in setpinfo() with calloc(3). Free it when no longer used, just before the program termination. Detected wit

CVS commit: src/bin/ps

2019-08-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Aug 6 18:07:51 UTC 2019 Modified Files: src/bin/ps: keyword.c ps.1 Log Message: Restore maxrss, idrss, isrss, ixrss printing in ps(1) The RSS related statistics are now back in the NetBSD kernel. These values were disabled s

CVS commit: src/bin/ps

2019-08-06 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Aug 6 18:07:51 UTC 2019 Modified Files: src/bin/ps: keyword.c ps.1 Log Message: Restore maxrss, idrss, isrss, ixrss printing in ps(1) The RSS related statistics are now back in the NetBSD kernel. These values were disabled s

CVS commit: src/bin/ps

2019-06-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jun 19 21:25:51 UTC 2019 Modified Files: src/bin/ps: print.c Log Message: Add a fallback definition of LSDEAD in ps(1) The symbol is no longer available in headers. Requested by To generate a diff of this commit: cvs rdiff

CVS commit: src/bin/ps

2019-06-19 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jun 19 21:25:51 UTC 2019 Modified Files: src/bin/ps: print.c Log Message: Add a fallback definition of LSDEAD in ps(1) The symbol is no longer available in headers. Requested by To generate a diff of this commit: cvs rdiff

re: CVS commit: src/bin/ps

2019-06-19 Thread matthew green
> It still works on NetBSD-4 kernels (if it doesn't, it's not caused by > this change). > > The only difference is that it will print '?' for (LS)DEAD process > (short-lived state). right - that is what i am wanting not to break. > sysstat ps.c has this change for a long time now. > > How about

Re: CVS commit: src/bin/ps

2019-06-18 Thread Kamil Rytarowski
On 19.06.2019 00:31, matthew green wrote: > "Kamil Rytarowski" writes: >> Module Name: src >> Committed By:kamil >> Date:Tue Jun 18 02:23:29 UTC 2019 >> >> Modified Files: >> src/bin/ps: print.c >> >> Log Message: >> Make LSDEAD usage conditional >> >> LSDEAD is not use

re: CVS commit: src/bin/ps

2019-06-18 Thread matthew green
"Kamil Rytarowski" writes: > Module Name: src > Committed By: kamil > Date: Tue Jun 18 02:23:29 UTC 2019 > > Modified Files: > src/bin/ps: print.c > > Log Message: > Make LSDEAD usage conditional > > LSDEAD is not used since NetBSD-5.0 and will be gone. > > The same conditional u

CVS commit: src/bin/ps

2019-06-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jun 18 02:23:29 UTC 2019 Modified Files: src/bin/ps: print.c Log Message: Make LSDEAD usage conditional LSDEAD is not used since NetBSD-5.0 and will be gone. The same conditional usage is already in ps.c in the same program.

CVS commit: src/bin/ps

2019-06-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jun 18 02:23:29 UTC 2019 Modified Files: src/bin/ps: print.c Log Message: Make LSDEAD usage conditional LSDEAD is not used since NetBSD-5.0 and will be gone. The same conditional usage is already in ps.c in the same program.

Re: CVS commit: src/bin/ps

2010-07-28 Thread Nicolas Joly
On Wed, Jul 28, 2010 at 01:14:40PM +0200, Alan Barrett wrote: > On Tue, 27 Jul 2010, Nicolas Joly wrote: > > v = ve->var; > > - doubleprintorsetwidth(v, getpcpu(k), 1, mode); > > + dbl = getpcpu(k); > > + doubleprintorsetwidth(v, dbl, (dbl >= 100.0) ? 0 : 1, mode); > > } > > I think you

Re: CVS commit: src/bin/ps

2010-07-28 Thread Alan Barrett
On Tue, 27 Jul 2010, Nicolas Joly wrote: > v = ve->var; > - doubleprintorsetwidth(v, getpcpu(k), 1, mode); > + dbl = getpcpu(k); > + doubleprintorsetwidth(v, dbl, (dbl >= 100.0) ? 0 : 1, mode); > } I think you need to test (dbl >= 99.95); otherwise values in the range from 99.95