Quentin Garnier | 1 Oct 01:06 2005

small config(1) change and additions

Hi folks,

I've just committed a change to config(1) that might have side effects
on your configuration files if you use tricks that were previously
allowed by config(1) (whether you're aware of it).  Orphaned devices
are now ignored (though config(1) still warns), which means the kernel
will compile as if the device instance were never mentioned.  This
might lead to surprises when booting the kernel, although previous
behaviour of config(1) lead to obscure linking errors.  So watch for

However, referencing by number (in an attachment) a device that doesn't
have a matching instance but has a starred instance won't be considered
orphaning anymore.

As for the other commit, it adds two statements to the grammar:

   no device at <attachment>
   no <device>

Please see the commit log for details on how to use it.

As always, if you have any trouble with those new features, fill a PR.
I plan to add regression tests for config(1) at some point, and maybe
someday I'll have time to write a man page describing the syntax...


Quentin Garnier - cube <at> cubidou.net - cube <at> NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
(Continue reading)

Hubert Feyrer | 1 Oct 01:13 2005

Re: w with 24h format

On Fri, 30 Sep 2005, Rui Paulo wrote:
> | I'd prefer to see the Login time 10:22PM as 22:22.
> Maybe this could be done locale-specific ?


> I agree with the idea of sending a PR.

Including patch. :)

  - Hubert

Greg Troxel | 1 Oct 02:13 2005

Re: ath driver and wep

I made the following change (locally, not committed) yet to
sys/dev/ic/ath.c to write wep keys to the hardware on power up.  This
intends to fix the problem of wep keys being set while the power is
off (ifconfig nwkey before ifconfig up), or lost during ifconfig
down/up.  I tested on one machine and an ifconfig down/up resulted in
a working configuration where previously it did not (and I received a
report from someone else who had the same problem).

I'm using a single 40-bit WEP key.

I'm hesitant to commit it because I don't fully understand how this is
supposed to be handled and I suspect it doesn't handle non-wep keys

This is in ath_mode_init; line numbers are likely off since I have a
lot of local changes.

--- ath.c.~1.37.~	2005-09-30 12:12:48.000000000 -0400
+++ ath.c	2005-09-30 20:08:28.000000000 -0400
 <at>  <at>  -1911,6 +1911,7  <at>  <at> 
 	struct ieee80211com *ic = &sc->sc_ic;
 	struct ath_hal *ah = sc->sc_ah;
 	u_int32_t rfilt, mfilt[2];
+	int i;

 	/* configure rx filter */
 	rfilt = ath_calcrxfilter(sc, ic->ic_state);
 <at>  <at>  -1919,6 +1920,15  <at>  <at> 
 	/* configure operational mode */
(Continue reading)

Steven M. Bellovin | 1 Oct 02:23 2005

Re: w with 24h format

In message <Pine.LNX.4.61.0510010112290.24261 <at> m24s24.vlinux.de>, Hubert Feyrer 
>On Fri, 30 Sep 2005, Rui Paulo wrote:
>> | I'd prefer to see the Login time 10:22PM as 22:22.
>> Maybe this could be done locale-specific ?
>> I agree with the idea of sending a PR.
>Including patch. :)

It looked to be a very simple change; the time-printing is isolated to 
a separate file pr_time.c.  My original thought was an enviornment
variable W_TIMEFORMAT that would hold a strftime string, but in fact 
there are three separate cases in the code.

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb

NetBSD source update | 1 Oct 02:23 2005

triweekly CVS update output

Updating release-1-6 src tree (netbsd-1-6):

Updating release-1-6 tar files:
src/top-level: collecting... replacing... done
src/bin: collecting... replacing... done
src/crypto: collecting... replacing... done
src/dist: collecting... replacing... done
src/distrib: collecting... replacing... done
src/doc: collecting... replacing... done
src/etc: collecting... replacing... done
src/games: collecting... replacing... done
src/gnu: collecting... replacing... done
src/include: collecting... replacing... done
src/lib: collecting... replacing... done
src/libexec: collecting... replacing... done
src/regress: collecting... replacing... done
src/sbin: collecting... replacing... done
src/share: collecting... replacing... done
src/sys: collecting... replacing... done
src/tools: collecting... replacing... done
src/usr.bin: collecting... replacing... done
src/usr.sbin: collecting... replacing... done
src/config: collecting... replacing... done

Running the SUP scanner:
SUP Scan for release-1-6 starting at Sat Oct  1 00:11:52 2005
SUP Scan for release-1-6 completed at Sat Oct  1 00:12:03 2005

Updating release-2-0 src tree (netbsd-2-0):
(Continue reading)

Christos Zoulas | 1 Oct 03:17 2005

Re: w with 24h format

In article <9982.1128112790 <at> www72.gmx.net>,
Zafer Aydogan <zafer <at> gmx.org> wrote:
>This is a feature request:
>I'd like to have the possibility to see the time in 24h Format, when using
>the command "w". I'm living in a country where AM and PM is not used.
>It would be great to have an Option to set these.
>$ w
>10:36PM  up 181 days, 10:54, 1 user, load averages: 0.07, 0.10, 0.08
>USER    TTY FROM                           LOGIN <at>   IDLE WHAT
>zafer    p0 wh30221.techfak.uni-kiel.de 10:22PM     0 w
>zafer <at> mia:~ $
>I'd prefer to see the Login time 10:22PM as 22:22.

The real fix is to add localization code to it.


Kent Peacock | 1 Oct 03:37 2005

Re: w with 24h format

> The real fix is to add localization code to it.

Yep. Solaris has this already...


Hubert Feyrer | 1 Oct 03:45 2005

Re: w with 24h format

On Fri, 30 Sep 2005, Kent Peacock wrote:
>> The real fix is to add localization code to it.
> Yep. Solaris has this already...

In what version?

tabaluga% w
   3:44am  in Betrieb 16:38,  1 Benutzer,  Durchschnittslast: 0,03, 0,00, 
User     tty           login <at>   idle   JCPU   PCPU  what
feyrer   pts/1         3:44am                      w
tabaluga% uname -a
SunOS tabaluga 5.10 Generic i86pc i386 i86pc

  - Hubert

Kent Peacock | 1 Oct 05:08 2005

Re: w with 24h format

> In what version?

Solaris 8+ has support for locales. See man strftime(3C). However, it does
appear that the "w" command is not localized. Sorry about that:

kent <at> nomad-70:69> setenv LC_TIME fr
kent <at> nomad-70:70> date
vendredi, 30 septembre 2005, 20:07:46 PDT
kent <at> nomad-70:71> w |head -10
  8:07pm  up 24 day(s),  8:20,  4 users,  load average: 0.56, 0.38, 0.33
User     tty           login <at>   idle   JCPU   PCPU  what
kent     dtlocal      17Sep05    21   1:12     11  olwmslave
kent     pts/4        17Sep05 2days      6         /bin/csh
kent     pts/5        17Sep05    10      1      1  /bin/csh
kent     pts/6        17Sep05 2days                /bin/csh
kent     pts/7        17Sep0513days                /bin/csh
kent     pts/8        17Sep0511days                /bin/csh
kent     pts/9        17Sep05 8days                /bin/csh
kent     pts/10       17Sep05 4days                /bin/csh
kent <at> nomad-70:72> ...


NetBSD source update | 1 Oct 05:51 2005

daily CVS update output

Updating src tree:
P src/bin/sh/jobs.c
P src/distrib/sets/lists/comp/mi
P src/doc/CHANGES
P src/include/sysexits.h
P src/sbin/mount_tmpfs/mount_tmpfs.c
P src/sbin/newbtconf/newbtconf.8
P src/share/examples/fstab/Makefile
P src/share/man/man3/Makefile
U src/share/man/man3/sysexits.3
P src/sys/arch/arc/arc/locore_machdep.S
P src/sys/arch/sparc/sparc/locore.s
P src/sys/dev/ic/igsfb.c
P src/sys/fs/cd9660/cd9660_vfsops.c
P src/sys/fs/tmpfs/tmpfs_subr.c
P src/usr.bin/config/defs.h
P src/usr.bin/config/gram.y
P src/usr.bin/config/main.c
P src/usr.bin/config/mkioconf.c
P src/usr.bin/config/pack.c
P src/usr.bin/config/sem.c
P src/usr.bin/config/sem.h
P src/usr.bin/gzip/gzip.1
P src/usr.bin/rwho/rwho.1
P src/usr.bin/rwho/rwho.c

Updating pkgsrc tree:
? pkgsrc/INDEX
? pkgsrc/README-IPv6.html
(Continue reading)