C Cirello | 26 May 00:40 2015

Plumb(er) + Acme + MacOS X - don't work


I cannot make the plumbing to work on acme.

I have create a plumbing file at ~/lib/plumbing with:
# isbn10 search through Amazon
type is text
data matches '([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])'
plumb start open 'http://www.amazon.com/s/?field-keywords='$1

Initially I realized that I forgot to start plumber. So I am starting
plumber manually, and loading the plumbing rules with
cat $HOME/lib/plumbing | 9p write plumb/rules

That gives me this:
 9p read plumb/rules

type is text
data matches '([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])'
plumb start open 'http://www.amazon.com/s/?field-keywords='$1

If I do, in the command line:
plumb 1234512345

it launches the browser perfectly, the same goes for plumb option in
9term. However in acme it does not work - I tried selecting before
middle-clicking, selecting before right-clicking, middle-click and
right-click. Nothing worked.

(Continue reading)

Jens Staal | 25 May 20:44 2015

"..." and "##' stuff with pcc?

Hi all.

I tried using the following shim header to satisfy <err.h> in a package I want to build.


It looked pretty neat since it does everything in the header.

It did however not work (I guess the "..." and "##" are to blame?) so now I wonder how/if it is possible with the posix compiler on plan9?

dexen deVries | 25 May 14:30 2015

mk - how to work around environment size limit on linux

i'm using plan9port mk on linux and just hit the environment+argument length limit -- linux' execve($PLAN9/bin/rc, ... ) returns E2BIG because $newprereq gets too large.

how do i work around? is there an idiomatic way of splitting up $newprereq into smaller chunks?

the mkfile is:

  for (i in $newprereq)
    do_stuff $i

<|./generate-rules-for-files PATTERN

where ./generate-rules-for-files outputs rules like TIMESTAMP_FILE: file_matching_pattern
Jeff Sickel | 24 May 19:03 2015

Re: multicast


Did you ever figure out how to setup addmulti?


> On Oct 6, 2014, at 10:41 AM, Steve Simon <steve <at> quintile.net> wrote:
> I am trying to listen to multicast DNS packets
> but when I try to configure the IP interface it fails,
> what am I missing?
> I do this (multicast with promiscuous)
> 	snprint(addr, sizeof(addr), "%s/udp!*!*", Netdir);
> 	if((cfd = announce(addr, dir)) < 0)
> 		sysfatal("%s cannot announce, %r\n", addr);
> 	if(fprint(cfd, "addmulti") < 0)
> 		sysfatal("add multicast addr failed, %r");
> and it dies with 'addmulti for a non multicast address'
> which is caused by this failing: 
> /sys/src/9/ip/ipifc.c
> 	int
> 	ipismulticast(uchar *ip)
> 	{
> 		if(isv4(ip)){
> 			if(ip[IPv4off] >= 0xe0 && ip[IPv4off] < 0xf0)
> 				return V4;
> 		}
> 		else if(ip[0] == 0xff)
> 			return V6;
> 		return 0;
> 	}
> But 0xe0 is 224 so it should not fail.
> I'am very confused.
> -Steve

Ryan Gonzalez | 23 May 23:41 2015

I killed plan9.ini; what to do?

I was tweaking plan9.ini for autologin and must have typed something wrong because I got this:

I want to try to fix it, but I don't know how. Do I need to reinstall Plan 9 again?

[ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong.
Ryan Gonzalez | 23 May 23:06 2015

Empty plan9.iso.bz2?

Just decided to download the newest CD image and ended up downloading an empty archive. I tried downloading via Curl and Chrome, with both giving the same results.

[ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong.
Brantley Coile | 23 May 17:31 2015

How do I get a CSR CA's like?

I’m trying to buy a certificate.  Actually, I’m trying to *get* a certificate.  They seem to already have
my money.  Anyway, they want me to paste a Certificate Signing Request into their web page.  I have done the following:

	dmr% auth/rsagen -b2048 >key 
	dmr% auth/rsa2csr 'C=US ST=Georgia L=Athens O=South Suite CN=www.etherdrive.com' key >xx 
	dmr% auth/pemencode 'CERTIFICATE SIGNING REQUEST' <xx >csr 

I then pasted the contents of ‘csr’ into the page and get “This CSR has an invalid signature!”

What am I doing wrong?

erik quanstrom | 23 May 17:53 2015

ot: pascal rides again?

well, at least dennis wrote "why pascal is not my favorite programming language".

from go build

	./cat.go:36: cannot use data (type [8192]byte) as type []byte in argument to cat

what?  perhaps i'm missing something about the language, but it sure seems ironic.

- erik

Ryan Gonzalez | 23 May 01:52 2015

Is it *legal* to use the Plan 9 regex library from MIT-licensed code?

[ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong.
Benjamin Huntsman | 21 May 23:49 2015

plan9port on AIX

So, it's been a few years since I did any work on it, but I'm trying to update the AIX support a bit.

I know there aren't lots of home AIX users, but it seems everywhere I've worked professionally has had gobs
of AIX deployed.

My primary goal is to have sam and acme running.

I got lots of stuff building and working, including sam -d.  However, there is an issue when trying to run it
with the graphical interface, and the problem seems vaguely familiar, so I thought I'd throw it out here to
see if anyone could help with a hint to point me in the right direction...

When I run sam, the samterm window pops up and looks correct.  However, if I right-click, the menu pops up, but
is empty.  Just a green rectangle with no text.  At that point, samterm hangs and I have to kill the sam
process.  Alternatively, if I try to type in the sam command window, it will then hang.

I suspect the issue is in devdraw, because acme exhibits similar behavior.  Upon launch of acme, an initial
empty white window pops up, and then nothing happens.  However, unlike sam, the acme process can be stopped
using ctrl-c.

Sound familiar?  If not, I'll keep poking at it.

Thanks in advance!


Brantley Coile | 21 May 23:09 2015

Plan 9 on SRX/VSX rides again

I’m happy to report we are back in the storage business based on Plan 9.  We acquired the rights to the
SRX/VSX and HBA initiator drivers and will be selling, supporting and advancing the technology.  I had
been working on a non-Plan 9 appliance platform to avoid any conflict with Coraid, but now that’s not a
problem.  I’ll be integrating the new stuff I’ve been working on over the past several months into the
Coraid products.  We’ll use The Brantley Coile Company to market the SRX and VSX as software, not
hardware.  We’ll release the specs for buying your own SRX hardware.

The SRX and VSX code will also be open sourced. 

It feels nice to have the technology back where it originated from.

bwc <at> EtherDrive.com