|
|
Up |
|
|
  |
Author: Todd C. MillerTodd C. Miller
Date: Mar 8, 2008 05:57
Diff to call donlist() when required (but in a single place). There
are three formats that need the kernel info so use a flag to indicate
which they are.
- todd
Index: keyword.c
===================================================================
RCS file: /home/cvs/openbsd/src/bin/ps/keyword.c,v
retrieving revision 1.27
diff -u -p -r1.27 keyword.c
--- keyword.c 13 Apr 2007 19:20:23 -0000 1.27
+++ keyword.c 7 Mar 2008 14:35:05 -0000
@@ -85,8 +85,8 @@ int utime(), stime(), ixrss(), idrss(),
/* Bit types must match their respective entries in struct kinfo_proc2 */
VAR var[] = {
- {"%%cpu", "%%CPU", NULL, 0, pcpu, 4},
- {"%%mem", "%%MEM", NULL, 0, pmem, 4},
+ {"%%cpu", "%%CPU", NULL, NLIST...
|
| Show full article (3.88Kb) |
|
| |
no comments
|
|
  |
Author: Todd C. MillerTodd C. Miller
Date: Mar 7, 2008 08:11
In message <47CEF18B.7020304@ bsdua.org>
so spake Alexey Vatchenko (av):
> This is my try #3 to post this patch :)
> It makes ps/`ps ax` to show "S" state when idle less that 20sec.
I think it is better to just mark the variables that need a call
to donlist() via a flag and use a single call to donlist().
- todd
Index: bin/ps/keyword.c
===================================================================
RCS file: /home/cvs/openbsd/src/bin/ps/keyword.c,v
retrieving revision 1.27
diff -u -p -u -r1.27 keyword.c
--- bin/ps/keyword.c 13 Apr 2007 19:20:23 -0000 1.27
+++ bin/ps/keyword.c 7 Mar 2008 14:35:05 -0000
@@ -85,8 +85,8 @@ int utime(), stime(), ixrss(), idrss(),
/* Bit types must match their respective entries in struct kinfo_proc2 */
VAR var[] = {
- {"%%cpu", "%%CPU", NULL, 0, pcpu, 4},
- {"%%mem", "%%MEM", NULL, 0, pmem, 4},
+ {"%%cpu", "%%CPU", NULL, NLIST...
|
| Show full article (4.12Kb) |
|
| |
no comments
|
|
  |
Author: Paul StoeberPaul Stoeber
Date: Mar 6, 2008 08:08
fmt_scaled() rounds wrong. Example:
#include
#include
int main() {
long long n = 1024 * 1023 + 461; /* should round to 1023K */
char buf[FMT_SCALED_STRSIZE];
if (fmt_scaled(n, buf) == 0)
printf("%%lld -> %%s\n", n, buf); /* 1048013 -> 1024K */
return 0;
}
scan_scaled() doesn't have a user in src/ or xenocara/ or ports/ or
any of the distfiles of the ports having "util" in their "WANTLIB".
The patch implements fmt_scaled() with rigour (I hope) and kills
scan_scaled().
Index: src/lib/libutil/shlib_version
===================================================================
RCS file: /cvs/src/lib/libutil/shlib_version,v
retrieving revision 1.20
diff -u -r1.20 shlib_version...
|
| Show full article (26.53Kb) |
|
no comments
|
|
  |
|
|
  |
Author: JungJung
Date: Mar 5, 2008 21:18
oops, too late.
sorry
---
- Jung
|
| |
|
no comments
|
|
  |
Author: Maurice JanssenMaurice Janssen
Date: Mar 5, 2008 18:16
Hi,
The latest 4.3-beta and 4.3 snaphots give me some problems when I use
shutdown -hp on an Ultra5 (with IDE disk).
Upon reboot, all filesystems are checked because they were not properly
unmounted. When I use 'shutdown -h' and turn the machine off manually
after a few seconds, all filesystems are clean when I turn the machine
back on.
I can't remember having this problem with 4.1 or 4.2.
Maurice
console is /pci@1f,0/pci@1,1/ebus@1/se@14,400000:a
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2008 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 4.3 (GENERIC) #1552: Tue Mar 4 17:13:27 MST 2008
deraadt@ sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 335544320 (320MB)
avail mem = 313352192 (298MB)
mainbus0 at...
|
| Show full article (3.24Kb) |
|
no comments
|
|
  |
Author: Chris CappuccioChris Cappuccio
Date: Mar 5, 2008 18:12
> Brad wrote:
>> The default is NOT /usr/src/xenocara. This is wrong.
>
> Having source outside of /usr/src is wrong.
>
> You developers are a curious folk.. then again, you're the brains who have Xorg R7 in /usr/X11R6.. ;)
>
> Idiotic.
>
Whatever... Xenocara has to be outside /usr/src, or else it becomes a subset
of the 'src' repository, even though 'xenocara' is its own repository.
/usr/X11R6 is a historical curiousity that is hard-coded into scripts,
library and execution paths for a variety of purposes.
It would be idiotic to change these things and then make users and developers
suffer for no gain other than making it look proper.
Chris
|
| |
|
no comments
|
|
  |
Author: Iruata SouzaIruata Souza
Date: Mar 5, 2008 18:12
On Wed, Mar 5, 2008 at 4:56 PM, Chris Cappuccio nmedia.net> wrote:
>> Brad wrote:
>>> The default is NOT /usr/src/xenocara. This is wrong.
>>
>> Having source outside of /usr/src is wrong.
>>
>> You developers are a curious folk.. then again, you're the brains who have Xorg R7 in /usr/X11R6.. ;)
>>
>> Idiotic.
>>
>
> Whatever... Xenocara has to be outside /usr/src, or else it becomes a subset
> of the 'src' repository, even though 'xenocara' is its own repository.
>
> /usr/X11R6 is a historical curiousity that is hard-coded into scripts,
> library and execution paths for a variety of purposes.
>
> It would be idiotic to change these things and then make users and developers ...
|
| Show full article (0.94Kb) |
|
no comments
|
|
  |
Author: Alexey VatchenkoAlexey Vatchenko
Date: Mar 5, 2008 18:06
Hi!
This is my try #3 to post this patch :)
It makes ps/`ps ax` to show "S" state when idle less that 20sec.
Index: bin/ps/print.c
===================================================================
RCS file: /cvs/openbsd/src/bin/ps/print.c,v
retrieving revision 1.43
diff -u -u -p -r1.43 print.c
--- bin/ps/print.c 6 Nov 2007 10:22:29 -0000 1.43
+++ bin/ps/print.c 5 Mar 2008 19:12:13 -0000
@@ -211,6 +211,9 @@ state(const struct kinfo_proc2 *kp, VARE
VAR *v;
char buf[16];
+ if (!nlistread)
+ (void)donlist();
+
v = ve->var;
flag = kp->p_flag;
cp = buf;
|
| |
|
no comments
|
|
  |
|
|
  |
Author: Alexander SchrijverAlexander Schrijver
Date: Mar 5, 2008 18:06
I also just remembered I forgot to add something to the patch.
this should be added to /usr/include/pwd.h (line 62)
62 #define _PW_PITOKEN "__PI!"
/usr/share/mk/bsd.own.mk (line 20)
19 # Set `PI' to `yes' to build with support for PI.
20 PI?= yes
On Wed, Mar 5, 2008 at 8:13 PM, Alexander Schrijver
gmail.com> wrote:
> Sorry, I fixed it.
|
| |
|
no comments
|
|
|
|
|
|
|