Carlos Sánchez de La Lama | 23 Apr 14:51 2014

Namespace customization

Hi all,

I am trying to put some customizations to the default namespace on a cpu
server with 2 nics. But I am having some problems:

If i put

bind -a #l1 /net.alt
bind -a #I1 /net.alt

on /lib/namespace, it works ok. But if I put the same two lines in
/cfg/$sysname/namespace (which gets executed at the end of
/lib/namespace) it does not.

In the latter case, those two get bound if I manually re-run /386/init
at the console of the cpu server after boot.

After googling and checking a bit, I see $sysname is set in cpurc, so I
will not be available at namespace creation.

Is there a way to have $sysname available at that point? Otherwise, the
lines using $sysname in stock /lib/namespace should be removed (they
lead to confusion). Any other way to customize namespace per-machine?



Alexander Kapshuk | 22 Apr 15:53 2014

Re: writing to /dev/$winid/addr


I'm working on a script where I want to get hold of a particular string
and use it as a new name of a particular window.

What I've tried so far, although not successfully, is writing to
/dev/$winid/addr with the intention of then being able to read the
string found from the /dev/$winid/data or /dev/$winid/xdata.

acme(4) says,
addr        may be written with any textual address (line number,
               regular expression, etc.), in the format understood by
               button 3 but without the initial colon, including com-
               pound addresses, to set the address for text accessed
               through the data file.

Here's an example of what I tried.
echo '/[A-Z]+\![a-z0-9]+\![0-9a-z]+' >/dev/$winid/addr

Which results in an 'address out of bounds' message being generated.

How does one write to 'addr'? Clearly, the shortcoming is on my part.
I'm just not sure what it is that's missing.


Jan | 20 Apr 18:47 2014

bootsetup failure on 9legacy

During the final step of the 9legacy install on an IBM Thinkpad T60 I get an error saying that it fails to mount the 9fat partition and copy the files from the /n/newfs directory. I did notice an earlier error where it failed to apply dma to my hard drive, citing an I/O error. An error similar to the one I get during bootsetup. Any advice?
kokamoto | 20 Apr 11:45 2014

What happened on lib9p?

I'm still seeing 'sources' and 9front sources.
In 9fron sources there are significant changes on lib9p
and those time stamp is younger than 2011.

Something important happened on 9P protocol
while I was peacefully sleeping?


Riddler | 19 Apr 23:56 2014

Missing /dev/etherX ?

Hey guys,

I'm running the stock plan9 kernel in VirtualBox and I am expecting to see two /dev/etherX entries but there is only one.

When I first installed it it had only one network card present, which worked with no issues. I added a new one (host only network) with the same model (Intel PRO/1000 MT Server) giving me two adapters (the first one is NAT).

However, the /dev/ether0 entry has now changed its Ethernet address and is referring to the 2nd Ethernet card. The first one seems to have vanished. I searched the archives and didn't find anything, however I found one saying to check /dev/kmesg. There seems to be two relevant entries in there which I've put in below.

#l0: i82543: 1Gbps port 0xF0420000 irq 10: [2nd cards MAC]
#l1: i82543: 1Gbps port 0xF0440000 irq 10: [1st cards MAC]

So it seems to at least pick up on the two cards, but only creates one /dev/eatherX? Is this expected or is there some additional configuration I need to do?

Any suggestions?

Jan | 19 Apr 16:50 2014

setting resolution; 9legacy ibm thinkpad t60.

when i boot 9legacy I set the resolution as 1024x768 then select [xga]. According to this page 1024x768 is a valid option for xga. However rio fails to start and if I select the default resolution rio renders 3 black windows and the colours are inverted. To view the text in anyone of the windows I have to select another one for the text to appear. Any advice? 
Riddler | 18 Apr 21:52 2014

Floating point and dividing by 0

Hello again,

Continuing on with my floating point adventures, I have a question that I hope someone can provide some input on.

I'm general idea of what I'm doing the following:
    double zero = 0.0;
    notify(fpnotecatch); //Ignore divide by zero note for a moment
    double pInf = 1.0/zero;
    notify(0); //Back to default note handler

    if(isInf(pInf, 1) <= 0 && isInf(pInf, 0) <= 0) exits("Divide by zero did not result in infinity");

The error "did not result in infinity" is always tripped. My understanding is that according to the spec it should have resulted in either + or - infinity.

I suspect it's not required as there was a note thrown instead, and I can't think of any reason why you would deliberately ignore the note like I do of the top of my head. Thought I would mention it anyway see what input you guys had.

kokamoto | 18 Apr 06:46 2014

nusb/disk in 9front and usb/disk in sources

I'm now seeing two types of usb/disk implementation
as in the title.

The 9front's one can recognize partions in the usb disk,
however, the other cannot.   I feel the 9front's usb/disk
is much better than the other.
On the other hand, the former doesn't use threadmain().

Is it be safe to mix the 9front's usb/disk onto the sources's


erik quanstrom | 18 Apr 03:29 2014

another kbd issue

as i turns out, Kmouse = Spec|0x100 = 0xf900 is not in the unicode
private use area, and it's assigned.

- erik

Riddler | 17 Apr 20:12 2014

'Compose' key and Unicode characters

Hello guys,

I'm toying with floating point and the possibility of making some regression tests for Plan 9's FP support. At the moment I'm testing results of computations that should result in +/- infinity and as plan9 is built with Unicode in mind figured I should attempt to use the actual ± 0x00B1 symbol.

I'm aware there are shortcuts for some of these (including ±) in "lib/keyboard" but I could not get the +- shortcut to work. I discovered it's because I wasn't using numpad keys (I'm on a laptop), when I do it works as expected.

I'm assuming it's because of the 'shift' key in between to get the + and - symbols and I'm wondering if it is meant to work with shift or does it intentionally only work with the numpad?

arisawa | 17 Apr 14:30 2014

origin of /root

Hello  all,

have we reliable way to find the origin of /root.
local file system?
remote file system?

Kenji Arisawa