mailing.openbsd.tech
  Home FAQ Contact Sign in
mailing.openbsd.tech only
 
Advanced search
March 2008
motuwethfrsasuw
     12 9
3456789 10
10111213141516 11
17181920212223 12
24252627282930 13
31       14
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
mailing.openbsd.tech Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Re: [PATCH] ps, S state         


Author: Todd 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
  Re: [PATCH] ps, S state         


Author: Todd 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
  [patch] rewrite of libutil/fmt_scaled.c         


Author: Paul 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
  [patch] src/distrib/notes/sparc64/hardware update.         


Author: Jung
Date: Mar 5, 2008 21:23

updated before 4.3 release.

thanks
---
- Jung
Show full article (5.53Kb)
no comments
  Re: [patch] src/distrib/notes/sparc64/hardware update.         


Author: Jung
Date: Mar 5, 2008 21:18

oops, too late.
sorry

---
- Jung
no comments
  dirty fs after shutdown -hp on sparc64         


Author: Maurice 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
  Re: Incorrect default directory specified in /usr/src/xenocara/README         


Author: Chris Cappuccio
Date: Mar 5, 2008 18:12

Unix Fan [unixfan@canada.com] 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
suffer for no gain other than making it look proper.

Chris
no comments
  Re: Incorrect default directory specified in /usr/src/xenocara/README         


Author: Iruata Souza
Date: Mar 5, 2008 18:12

On Wed, Mar 5, 2008 at 4:56 PM, Chris Cappuccio nmedia.net> wrote:
>
> Unix Fan [unixfan@canada.com] 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
  [PATCH] ps, S state         


Author: Alexey 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
  Re: getpwent subsystem         


Author: Alexander 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
1 2 3