i thoufgt th accepted way was, (assumping your machine has an IDE interface),
to use an IDE to compact flash adapter and and a CF card, and store the
nvram on this.
this gives you the simple interface of IDE but no rotating disks.
-Steve
I am trying to run configure for a GNU project on plan9.
yes I know, but stay with me...
it mostly works but part of the configure script fails where it runs
awk over a header file and uses a rather sill RE to find all defines/undefines.
/^[\t ]*#[\t ]*(define|undef)[\t
]+[_abcdefghijklmnopqrst
My understanding is that bison can be convinced to output some static
tables which the Go authors munge into some C source (with awk).
These tables allow the Go parser to generate more useful and
accurate error messages.
I believe using bison is not mandatory if you don't mind hacking
the code a
strange, cpu is definitely encrypted, and import uses cpu to start export on
the remote machine so it should be encrypted too - unless I misunderstood.
the fs protocol used by srv is not encrypted, I'am guessing because machines
need to use it to boot and adding booting over encrypted links was to
Subject rfork N
I want to construct a new namespace for an app, including a new root dir.
I was hoping to do this with a few lines of script starting with rfork N,
however this seems to be a dead end.
I can still access kernel devices directly using the # escape in filenames,
which includes '#s/f
> don't you just want rfork Nm?
I don't think so, that is worse, this would really mean
I couldn't mount anything.
I don't mind the new app adding mounts if it wants to, but
I want it to start with a new root dir and children, so
I need to flush out the old namespace.
the problem is as soon as I
> auth/newns
Aha!
excellent, this is just what I need.
thanks
-Steve
> con -l /srv/fossil
> prompt: fsys main
> main: check fix
> ...
that looks plausable though its from memory,
I have not checked the manual pages in detail.
the error you saw at the start:
iostate is 2 in blockwrite
looks very reminescent of when I had a real
hardware failure on a physi
You can migrate from fossil to fossil and venti
but it's a faf and takes quite a bit of care/reading manuals;
this is how I did it the first time I installed fossil.
reinstalling from scratch is probably easier if your fossil is
only an experimental system.
-Steve
> fsys main snaptime -s 60 -a 0530 -t 2880
Beware: there is currently a bug in fossil which can cause
it to deadlock under load if ephemerial snapshots are enabled.
This I reccomend you use a configuration more like:
fsys main snaptime -s none -a 0530 -t none
-Steve
this is my script to do this, runs on the machine behind the firewall (larch)
and connects to the default file server.
#!/bin/rc
while(){
cpu -c 'rm -f /srv/larch ;
srvfs larch /mnt/term ;
while() sleep 600 '>[2] /dev/null
sleep 6
}
I certinaly had problems a few years ago with fossil deadlocking,
since I disabled ephemeral snapshots it has been quite reliable.
My feeling (nothing more than that) was that the deadlocks seemed to
occur when I receved email just at the time of the snapshot.
the problem seemed to occur at a rat
Hi,
This is not a critical problem, more a point of interest.
My new desktop machine reports very high interrupt rates in stats,
the bargraph on stats is stock at 100%, a count of 176000 (ints/sec ?)
I added erik's interrupt counter code and see that these are occuring
on irq 10, which my hardwa
Anyone have any pointers to a diff for C code.
I have two libraries, A and B.
B is and expanded and modified version of A and I have been
asked to extract A from B to build two libraries one
built on top of the other.
What I think I need is a program which parses C and will
do diffs at the level
after the recent discussions on nsec()...
does anyone already have the snippet of code to do fine grained
timeings on the x86 platform using the hardware performance counters?
I would use nsec() but I'am timing systemcalls so I expect my results
would be swamped by nsec()'s performance.
Thanks
> you could create a 9p->http->9p bridge to work around high-latency links
my understanding is, this is pretty much what octopus does for
comms, see http://lsub.org/ls/octopus.html, though it keeps within
the 9p protocol, but it adds some extra RPCs.
[Hope I have not muddled my project names here
> That's a very interesting point. Implementing lguest on Plan 9 would
> require something like 13 "system calls". Far easier than doing the
> near-400 system calls of linux correctly.
At the cost of running an entire linux kernel on plan9...
cinap's linuxem (with my hacks) implements 139 syscall
> I can't plumb a URL to Firefox running under the linuxulator.
I haven't tried this, but in theroy it would be easy enough
to write a plan9 dbus client and a plumbing rule which would
do exactly this.
-Steve
anyone updated dhog's 9wm so it looks more rio-listic
rather than 8½ styled.
also, anyone ported it to ape on plan9 I know, but stay with me:
9wm with equis would make x11 on plan9 a nicer place to live.
-Steve
I have an indent port in my contrib (though you say you don't like it),
and plan9 has cb(1).
what don't you like about indent?
I use it with erik's bcmt which replaces c++ style comments with C ones,
a carfully tailored proto file, and this: sed 's/\) {/){/
.
This gives me pretty much plan9-sty
"One I have is based on the nokia E5 (and is called the Wank E5)"
surely a forutune?
-Steve
working on linuxemu I find perl seems to use floating point
in a signal handler - I have not worked out where or why as
getting debug symbols for perl is harder than I expected.
I understand note handlers are not alowed to use floating point,
but why is this - is it just for simplicity - "it was n
Its quite possible that I'am doing somthing foolish,
but just in case its in the design...
It appears to me that when using rwlocks on plan9
I have to release the read lock before I can take the write lock
in a process - i.e. a single process cannot hold both.
This means that when updating a data
Thanks to all who replied, I understand rwlocks
a little better now.
-Steve
The advice I got a couple of years ago was to go for 7200RPM SATA3 disks,
make sure they are branded as enterprise quality (worth paying for) and
buy them from different manufacturers.
Then mirror the disks and hopefully one disk will die before the other and
thus you get some long term reliabalit
> With Venti, you could use venti/rdarena to export arenas from the
> old Venti, then import them to the new Venti with venti/wrarena.
> Finally, format the Fossil partition from the last Fossil score.
Honestly I would advise against this, I did it but it was really
quite painful. When I upgraded
I do miss this on plan9 from time-to-time.
-Steve
Why can I not re-bind #M?
/sys/src/9/port/chan.c:1374
I want to use auth/newns to flush out my namespace
then build a new one including some bits of devcons.
Is this a security issue for cpu servers? I cannot see
what it is protecting me from.
Also, why is this done here and not in fsat
As a UK resident it has occasionaly hit me how some bits of plan9
(and there are only a few) are US centric.
perhaps we could have somthing like /adm/country/ (analogous to /adm/timezone)
which would have various config files for things like radar, areacodes/stdcodes
zipcodes/postcodes, weather, t
I think this goes further that I would (exeutable libraies)
I imagined only that we could have a few scripts and "database" files
in country specific directories.
this model would also allow me to explicitly run usa/radar newyork
before going on holiday whilst running radar would tell
me its rain
Sorry for the noise, I was tired.
thans to all who replied.
-Steve
Out of interest - what is the problem with ext2srv with too many
files/subdirs? what error does it give, does it crash?
-Steve
Your email does not include the output of disk/prep /dev/sdE0/data.
You have a 1.8TB disk, which has a single DOS partition,
and your fossil sees a 1.8Tb disk, but what size is the
fossil partition? if it was in fact 200Gbytes then this
would explain the problem.
-Steve
> Can I grow fossil on the fly?
I don't believe you can, fossil is usually used with venti and venti can
definitely
be grown on the fly, fossil alone is normally confined to just laptops where
this is
not an issue.
> Why did prep create a 512MB swap
> partition when I have 2GB RAM?
good questi
Anyone written plumb(1) in ansi c for a non-plan9 OS,
By this I don't mean the plumber as such, but a command which
writes correctly formatted messages into /.../mnt/plumb/send.
-Steve
I don't know who is control of the reflector for this list but I have been
seeing
duplicated posts for the last couple of days.
-Steve
Anyone implemented RFC 5965, Abuse Reporting Format?
For those only slightly interested, its a multipart
mime message with the offending message split into
different parts and special tags applied to them.
I try to report all spam that gets through the plan9 spam
SMTP filtering layer (usually 1 t
I believe go can be tweeked a little build correctly without
bison, but some of the error messages gc generates will be less
helpful.
for me the best solution would be for yacc to be modified
to produce the error message tables directly, rather than
mimicing bison - producing a debug file withch c
> One further issue is whether go has any other bison
> dependencies.
as off march (when I last played with a port) it didn't,
there where a few bits of bison syntax which are different
in yacc but these could be papered over whith a few lines of
sed - ur yacc could even be taught this alternative
Perhaps I'am way off base but surely the neatest solution would be to
modify yacc to produce a nice clean message format, modify the gc
to use that format.
The reason for not using just the same format blindly is it was designed
with the structure of gc in mind rather than a clean output format.
Subject factotum auth for commodity web browsers?
Hi,
I have a distant memory of somone talking about adding
factotum support to mozilla or firefox, but I can nolonger
fine a reference - did I imagine it?
Is there such a thing for p9p perhaps?
-Steve
re: etherbcm.c
thanks,
Again it will have to wait till monday for me to try.
BTW I'am not sure if I emphasised enough how grateful I am for all your
patient work in getting SSE working.
Its great to make progress on this, though the performance of opera +
linuxemu + equis (fgb's X11 server) is
I have a mirrored pair of disks under devfs.
I have a series of 512 byte partitions which
hold different /dev/fs configs, one for mirrored,
one for disk1 only and one for disk2 only. This means
the fossil and venti configs all refer to /dev/fs/XXX and will
work in any mode.
These configs liik lik
By far the best books on troff (IMHO) are the pair by Gehani and Lally,
Document Formatting and Typesetting on the Unix system, volume 1 and 2.
They are out of print but available from alibris.com and somtimes on
amazon new & used.
-Steve
> It can't be that
> hard to parse out DIR= from there and turn it into a native mkfile.
Ok, its not that simple but perhaps somthing along the lines of
/sys/src/cmd/mk/mkconv could help?
-Steve
mkmk is in the contrib package contrib/mkmk
http://man.cat-v.org/plan_9_contrib/1/mkmk
I would say mkmk was an interesting experiment rather than a resounding success.
The idea was to simplify re-porting foreign code to plan9 by autogenerating the
mkfile from just the C source and some heuristi
I have used art(1) to generate pic(1) for some drawings.
several people have tried to port art(1) - which was in the 2nd edition
and released by the labs in extras. I collected their changes and
add a couple of small fixes of my own - in my contrib.
My biggest problem with art is its interface is
I assume you are just turning off your machine, and not running fshalt
first. It is important to always run fshalt before shutting down a plan9
machine which has written to its disks.
This is not necessary for diskless terminals, cpu servers
or systems booted from readonly media like cdroms :-).
> pull -s *
This will not work. You need to pull each file that is marked
as modified, prefixed by the -s option to take the server (the labs)
version or -c to keep the version you have locally (and silence
the error).
It is the work of moments to load the debug printed by pull -v
into favorite p
I ported Russ's ssh agent to plan9 for use with
the native, and linuxemu openssh implementations.
The program is a protocol converter parsing requests
from openssh and extracting the keys from factotum
as requited.
Code in /n/sources/contrib/steve/ssh-agent.tgz
-Steve
> pcc -o 8.out app_rand.8 apps.8 asn1pars.8 ca.8 ciphers.8 crl.8
> crl2p7.8 dgst.8 dh.8 dhparam.8 dsa.8 dsaparam.8 ec.8 ecparam.8 enc.8
> engine.8 errstr.8 gendh.8 gendsa.8 genrsa.8 nseq.8 ocsp.8 openssl.8
> passwd.8 pkcs12.8 pkcs7.8 pkcs8.8 prime.8 rand.8 req.8 rsa.8 rsautl.8
> s_cb.8 s_client.8
You can use kfs or cwfs with venti but the usual combination is
venti with fossil, this is more of a symbiotic arrangmenet than
venti would be with the others. Cwfs contains an archival server
and a short term store like venti and fossil.
mirroring and striping is possible with cwfs's backend, or
Not sure I understand, this is native plan9 not p9p. to the best of my knowledge
there is only one true factotum on plan9.
Sufice to say it works on the labs distribution.
-Steve
Ah, sorry, yes, new factotum.
too much christmas cheer.
-Steve
> pcc -c /sys/src/cmd/gs/zlib/gzio.c
> /sys/src/cmd/gs/zlib/gzio.c:181[stdin:1575] function args not checked: fdopen
> /sys/src/cmd/gs/zlib/gzio.c:627[stdin:1995] incompatible types: "INT" and
> "VOID" for op "AS" pcc: cpp: 8c 29761: error
Again, plan9 has moved a little since /sys/src/ape/z/mkf
> ??none??: cannot open file: /386/lib/ape/libz.a
I think if you rebuild /sys/src/ape/lib/z as described
in my previous email this should go away.
-Steve
I split my disk up into fossil, venti, and other
(as well as a few other small partitions like nvram and fs).
My 'other' filesystem is a fossil partition but it is never
dumped to venti as it only holds files which are temporary or
which are already backed up elsewhere - e.g. CDROM ISO images.
Do
> You'd save a bunch of energy if you only powered up venti
> disks once @ 4AM for a few minutes (and on demand when you
> look at /n/dump).
If fossil is setup to dump to venti then it needs venti to
work at all. Fossil is a write cache, so, just after the dump
at 4am fossil is empty and consists
> So it seems sufficient to backup my arenas, am I
> right?
Yes, exactly, I haev done this several times.
It might take a few hours and some studying of manuals
but the arenas are all you need.
-Steve
You could always use googl'es DNS server if local conditions (firewalls) permit.
8.8.8.8 and 8.8.4.4
-Steve
Interesting one.
Both sed and awk has treat EOF as a line terminator
so either of these will work:
awk '{print}' junk
sed '' junk
but sam doesn't seem to regard a line without a newline as
having an end, so its not simple here:
{ echo ',x/$?\n/ c/\n/' ; echo '1,$p' } |
I am trying to get a plan9 box to serve a seccond
private network, /net.priv (I already use /net.alt for other things).
I can duplicate cs, dns, tftp dhcp etc on the seccond network (dns resolving
not withstanding) but I haven't worked out how to teach fossil to listen to
anything but the default
Ok, for the archives
fossil does an rfork(RFNAMEG) so changing namespaces after it is
started doesn help.
fossil has a bind console command which allows you to bind in devices
later (most excellent).
the filesystem fossil sees is devroot() only, so if you create a new
filesystem entry like /net.
Kudos to Mr Miller,
-Steve
> I thought we were an autonomous collective.
Yes, but somhow a "Gang of four" sounds so much more exciting.
-Steve
> I think "frail" is a mischaracterization.
Indeed, upas has been my only mail interface for about 7 years, without a
glitch,
though I have recently bought an ipad - but that connects via imap to plan9 too.
-Steve
source:
http://plan9.bell-labs.com/sources/contrib/steve/root/sys/src/cmd/pm
binary, via cfront:
http://plan9.bell-labs.com/sources/contrib/steve/root/386/bin/aux/pm
-Steve
Various projects have worked on 8c to make it generate code for other OSs,
have any of these resulted in code that could generate a very _very_ simple
ELF shared library sutiable for linux?
-Steve
> don't forget jeff's pic controllers.
perhaps I have forgotten, perhaps I missed them
link please ?
-Steve
Thanks to all who have replied.
I have spoken to russ; 8l may be able to generate object files soon,
but there is no plan for support for shared libraries.
Its OK, I still have some options:
use gcc/gas/gld on linux
generate the shared library as a blind data file on plan9
> I've got HDMI video working in Plan 9 too
Plan9 runs on the rasberry-PI?
-Steve
Tis the season for exotic sam command language questions,
though mine is not that exotic.
I want to edit some xml (yes I know) and capitalise all the labels
in it. I only want to do this once so I don't care that it will
envoke tr thousands of times and take a minuite or so.
This is what I tried:
I am confused, and appologise to all for the noise.
,x/label="[^"]+"/ {
x/ [a-z]/ | tr a-z A-Z
}
does exactly what I wanted, I don't understand why in my toy tests it
didn't appear to work, probably a typo.
for the record I was tring to do this:
label="He
> now that you mention it, vt is missing the flyback transformer whine. you
> should be able to *hear* what's displayed.
perhaps it is there an you are no-longer able to hear it? :-)
I can no longer hear line rate in the UK (15.625kHz).
-Steve
Hi,
Anyone worked out an idiom that would allow me to
use Brdline()/Blinelen() to read a file which
contains continuation lines?
I want to read a text file which consists of lines terminated
by newlines, but lines with leading whitespace are considered
to be continuation lines.
Brdline() is very
Never having fiddled with troff's font tables anyone care to
give me a quick tutorial on how to add missing characters, the
one I need at present is 0x00a3 = '£' = UK pound symbol.
Thanks,
-Steve
- Dan C.
Glad to see you survived the storm Dan.
-Steve
I am working on a project that insists on 4 space indentation of code.
I can change the tabstop environment variable so I layout the code
how they want but I am still inderting tabs into my source.
I can use russ's tab(1) to convert the tabs to whitespace before every
checkin, but thats a bit pai
I need to learn c++ for work - people have strong opinions on
languages I know, and not everyone likes c++ but its a requirment for me.
I really want to develop a good sence of c++ style, I learnt C at the feet of
K&R and then the plan9 sourcecode so I learnt how to write clean elegant code
(I thi
Somone was working on a port of the apache portable
runtime a while back but I have lost their email.
could they contact me please?
Thanks,
-Steve
> How do you studiously not do something? Doesn't the imply working
> hard at something?
Indeed, everything I did read about Go made it look very attractive so I am
ignoring it
as I know myself. If I read more I will start to get annoyed that I am wasting
my time learning C++
when Go is a much b
I'am trying (again) to build svn for plan9 native.
8c is blowing up with the error:
bad in naddr: NAME cache_init_state
the offending like is:
static volatile svn_atomic_t cache_init_state = 0;
Is this legal c code, static and volatile?
if it is anyone any ideas how to fix 8c - comp
Thanks for the comments,
I dropped the volatile and that bit compiles,
I am getting close I think.
And in answer to charles, there is all sorts going on in there.
counting the semicolons gives:
Apache portable utils 16049
Apache portable runtime 24852
sqlite3
> "The expression sizeof(object) yields an integer equal to the
> size of the specified object."
>
> Not "unsigned integer". Old habits die hard.
I feel your pain.
We use lint a lot here and it irritates me greatly when it
grumbles about loss of precision in assignment
from sizeof() or nelem()
Any 9fans use jira or is it just me?
FWIW I am working on a client.
-Steve
> If it requires PAE, it will not run on Banias and Dothan B-stepping
> and C-stepping (on 400MHz FSB) CPUs (most Pentium M's).
one question, is the kernel able to print a message if it is started
on incompatible machine:
panic: this kernel requires PAE which is not supported by this hard
> /sys/include/ape/u.h
I have a distant memory that this was a result of
Andrey and Presotto's work to get links to build and run
on plan9.
-Steve
trying to get svn to build natively on plan9 and I am getting
an error from 8c which I don't know, e.g.:
bad in naddr: NAME cache_init_state<>+0(SB)
Can anyone explain this to me?
Thanks,
-Steve
> looks like you need the address of something that hasn't got one.
> for example for indirection, array indexing, etc.
Ah, yes, taking the address of a volatile is a no-no it seems.
-Steve
hugo% history -D -d sourcesdump /n/sources/plan9/sys/src/cmd/mkfile
...
Feb 15 14:05:48 GMT 2005 /n/sourcesdump/2006/0321/plan9/sys/src/cmd/mkfile 2414
[jmk]
11c11
< BUGGERED=gc|lmlvideo|dwb|unix|perl|celp|mosml|ovac|vfs|aviation|tex
---
> BUGGERED=gc|lmlvideo|dwb|unix|perl|celp|mosml|ovac|vfs|avi
Fantastic work!
This is going to be really useful (to me).
-Steve
I have a set of floppies somwhere but I don't have a floppy drive
at home, if no one gets there first I and Charles doesn't mind I will
put the images on sources on Monday.
FYI I put some old stuff, though none of it 3rd ed, in
/n/sources/steve/historic/*
-Steve
> Not sure why the licensing question came up.
My fault, I was just a little unsure about copying the
distribution floppies that VN had produced, I thought
that checking with Charles would be polite.
It turns out its all academic as I can only find the 2nd ed
floppies, the 3rd ed one(s) if I ever
Anyone already ported (back ported?) p9p's stats to plan9?
I want to see stats of plan9 and linux boxen on my plan9 desktop.
-Steve
> How do they propose to maintain it when the equipment starts failing?
Not sure what you mean, but we run arcnet in bus mode (no central hub), on
75 ohm coax with modified PCI cards using 75ohm terminations - 75ohm coax
abounds in TV stations.
The advantage of this is we can use existing Video w
New toys in my contrib to convert modern
microsoft office XML files to text or troff/tbl source.
these live in a directory opc as the standard is known as Open
Packaging Conventions and there may be more tools to come.
docx2troff works pretty well, the formatting is imperfect but
looks OK, embedd
Hi,
rc is not working how I expect it to.
This works fine
echo a b c | rc -c 'a=`{read}; echo @ $a(2-) @'
@ b c @
This i did not expect
echo a b c | rc -c 'echo @ $(2-) @'
@ @
Perhaps I need some expectation managment?
-Steve
I have rebuilt equis with the change in ape's select
and it seems to work fine (tested with xlock and xterm only).
this was not quite straightforward due to changes in ape, and
the compiler becomming a little stricter.
On this subject, what is the general feeling on integer
type'ed functions whic
> What does kenc do with a void function attempting to return 0?
t.c:6 incompatible types: "VOID" and "INT" for op "RETURN"
-Steve
> So it looks
> like a fix was made somewhere else in that file and not put back into
> the Plan 9 sources.
Just an idea, but now that gcc has kenc compatibility modes thanks to a GO
author,
plan9ports could be merged back with mainline plan9 to a large extent.
It could then become a much smaller
801 - 900 of 980 matches
Mail list logo