Re: [9fans] GCC/G++: some stress testing

2008-03-07 Thread Russ Cox
> PPS: Why is "typename" a G++ reserved word? [now safely off-topic; sorry] Because it is a C++ reserved word. It gets used in contexts (templates, in particular) where the parser needs extra help deciding that a name is going to be used as a type. Russ

Re: [9fans] Fresh (relatively speaking) Graphviz

2008-03-06 Thread Russ Cox
> I'm now getting to the 386 syscalls. The following comment in the > mkfile needs addressing. Suggestions? Change the loop to rename the generated assembly stub __seek and treat it like any other system call (no special code; just the name change). Then add this C function: int _seek(

Re: [9fans] thoughs about venti+fossil

2008-03-06 Thread Russ Cox
> (we couldn't use hashing for traffic reductions, safely). yes you can. you can use hashes to build a hash table with a collision policy. there is some company (whose name escapes me; maybe someone else will remember) that makes exactly this product, so that once network A has sent a particular

Re: [9fans] Fresh (relatively speaking) Graphviz

2008-03-05 Thread Russ Cox
>> getcallerpc: >> movl 4(%esp), %eax >> movl -4(%eax), %eax > > Just a thought: this is in the GCC function call context, which is > different from the P9 compilers'. Does the above still apply? yes, it does. standard x86 gcc and plan 9 use the same conventions for how function argum

Re: [9fans] Fresh (relatively speaking) Graphviz

2008-03-05 Thread Russ Cox
cpu% cat getcallerpc.s TEXT getcallerpc(SB), $0 MOVLv+0(FP), AX MOVL-4(AX), AX RET > .globlgetcallerpc > getcallerpc: > movl0(%esp),%edx > movl-4(%edx),%eax > ret not quite. 0(%esp) is going to be the saved %eip. getcallerpc:

Re: [9fans] thoughs about venti+fossil

2008-03-05 Thread Russ Cox
> "cryptograpically strong". the invented function may have > the same probability of collision as sha-1, but it is not > cryptographically strong. let's take this discussion elsewhere, since cryptographically strong just means "we don't know how to attack it yet" (witness md5). surely there is

Re: [9fans] thoughs about venti+fossil

2008-03-05 Thread Russ Cox
> 1. how stable is the keying ? sha-1 has only 160 bits, while >data blocks may be up to 56k long. so, the mapping is only >unique into one direction (not one-to-one). how can we be >*really sure*, that - even on very large storages (TB or >even PB) - data to each key is alway (on

Re: [9fans] plan9port build failure on Linux (debian)

2008-03-03 Thread Russ Cox
We tracked this down off-list. Given these types: char *buf; uint len; gcc-4.2 assumes that buf+len >= buf. The test for wraparound when computing len in sprint looks like: len = 1<<30; /* big number, but sprint is deprecated anyway */ /* * on PowerPC,

Re: [9fans] plan9port build failure on Linux (debian)

2008-03-03 Thread Russ Cox
> I am trying to install plan9port on a Linux system (Debian), > and am getting the following error: > > 9 yacc -d -s bc bc.y > > fatal error:can't create , :1 > mk: 9 yacc -d ... : exit status=exit(1) > mk: for i in ... : exit status=exit(1) The is just because the error has

Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-29 Thread Russ Cox
perhaps discussion of qmail would be more appropriate on some other list or in private email. russ

Re: [9fans] win32 rc

2008-02-28 Thread Russ Cox
> Anyone written a win32.c module for plan9's rc? > > I know about the modified inferno version and Byrons unix one > (which compiles fine under cygwin) but I was hoping to get the > "One True rc"™ working natively on plan9. > > I had a quick look and it doesn't seem that bad, just the usual > tr

Re: [9fans] video of an acme session

2008-02-27 Thread Russ Cox
> > There's something broken in that video. The mouse doesn't move to the > > selection on a button 3 operation. > > good eye. yes i noticed it and briefly discussed it with brucee last night. > i'm looking > at it now. this is almost never acme's fault. probably you were using vnc to connect,

Re: [9fans] troff -man prints poorly

2008-02-27 Thread Russ Cox
>> troff -ms bla.ms|lp -dstout| aux/download -H/sys/lib/postscript/font >> -mfontmat|lp -H -d printername > > That has the same end result for me as just doing troff -man foo | lp Yes, it would. However, if you spell fontmap right, it should work. Also the -H option is doing anything here -- tha

Re: [9fans] New to plan 9: what next?

2008-02-20 Thread Russ Cox
unsubscribe [EMAIL PROTECTED] > Or perhaps someone should write a book aimed at newbies on using Plan > 9 from Bell Labs. It would be called "Using Plan 9 from Bell Labs," > typeset in troff, and not go into technical details.

Re: [9fans] authenticating local server

2008-02-20 Thread Russ Cox
> I have a file server which posts a file descriptor in /srv > the idea is that this will be run from cpurc so httpd can > mount it. > > In my naive implementation the server runs as bootes so it > has different access to files to the httpd which normally runs > as none. > > I can just call becom

Re: [9fans] ld.com

2008-02-17 Thread Russ Cox
> According to the manual, ld.com is a stripped down version of 9load, > intended to fit in 64KB. It doesn't, my "production" version is: > which seems to be the current version. Any suggestions? I don't > really want to rebuild it unnecessarily. ld.com should be tossed away. you're supposed t

Re: [9fans] 9pfuse adventure

2008-02-08 Thread Russ Cox
> provide any facility to attach as a different user. So, I modified the > attach strategy to look for a USER environment variable before falling > back on getuser(). I've attached the diff, hopefully I got everything. The name in the attach is almost just a comment. What matters is the name used

Re: [9fans] managing windows in rio

2008-02-08 Thread Russ Cox
> Since I am not to the point where I run almost everything in the same > acme window, I need quite a few windows when I'm on p9 or in rio from > p9p. And I am having trouble finding and raising to focus the one I need > when there are more than, say, five of them on a res of 1280x800. i tend to k

Re: [9fans] managing windows in rio

2008-02-08 Thread Russ Cox
> I am looking into some text information in ACME > Is it a way to display line numbers along the text? no, but you can hop to a line number by typing :123 in the tag and then right-clicking on it. > Is it a way to figure out particular line number? type 'Edit =' in the tag and then middle click

Re: [9fans] libutf + libregexp9

2008-02-05 Thread Russ Cox
> Is there any examples about using "libutf" and "libregexp9"? There are manual pages linked at http://swtch.com/plan9port/unix/. If you grep for regexp or rune or utf in the Plan 9 or plan9port source trees, you will find plenty of examples in their native environment. The interface is the same

Re: [9fans] Two ramfs?

2008-02-04 Thread Russ Cox
> I saw the src/cmd/ramfs.c, and I think I should be able to write mine > simpler... For example, I'd like to take advantage of the File/Tree > interface (createfile(), ...), having all the files of the fs in > memory. > > I found also src/lib9p/ramfs.c, which looks pretty much as what I > want, b

[9fans] if you're interested in the plan 9 perl port ...

2008-02-04 Thread Russ Cox
From: [EMAIL PROTECTED] Date: Mon Feb 4 09:25:38 EST 2008 To: [EMAIL PROTECTED] Subject: a new maintenance release of Perl nearing Hi, in case you are still interested in helping out getting Perl running in many platforms, here's an announcement: http://www.xray.mpe.mpg.de/mailing-lists/perl5-po

Re: [9fans] window placement rio in p9p

2008-01-31 Thread Russ Cox
> I've been messing around with a new laptop at > work (the hinges on the old one broke), and > along the way, I'm reminded of something that's > bugged me for a while. Is there any way to > tell rio to move a window that's not manual > (i.e. using the mouse)? Is there something > in p9p equivale

Re: [9fans] p9p for Mac OS X

2008-01-31 Thread Russ Cox
> I would like to use the p9p tools for Mac OS X. As stupid as its > defaults are the filesystem is case insensitive. Therefore font > files for troff conflict (namely Hb and HB, maybe others too). Is > anyone on this list using p9p on Mac OS X? If yes, what's been our > solution for this issue? I

[9fans] plan9port & full-screen

2008-01-30 Thread Russ Cox
Two related changes to plan9port. 1. If you use rio and Firefox together, and you press F11 in Firefox to make Firefox go full-screen, rio gets out of the way entirely now, so that Firefox really does get the whole screen. Before, there was always a border on the top and left sides.

Re: [9fans] pico

2008-01-29 Thread Russ Cox
> I get something that ends in "(double-free?)" and then the program > crashes, but something like This usually means you have freed the same pointer twice or you are passing a pointer to free that was not returned by malloc. If you run acid to get a stack trace to see the context of the free,

Re: [9fans] pico

2008-01-28 Thread Russ Cox
> Byron Rakitzis (of posix rc fame) produced a version popi with the JIT > compiler, though sadly his where for cpus which are common cpus these days. Computers and compilers are fast enough now that you can get away with just feeding code into a C compiler instead of writing a full JIT. And there

Re: [9fans] How to read/write pixels from Memimage

2008-01-26 Thread Russ Cox
> However, I want to be able to read 32-bit color values. How does > Memimage store colors and You should be able to answer this by reading the programs I pointed out as well as color(6), image(6), and memdraw(2). If all else fails, you could try writing a simple program and see how far you get

Re: [9fans] sb16

2008-01-26 Thread Russ Cox
> So, I added the line > audio0=type=sb16 port=0x220 irq=5 dma=1 > to plan9.ini and 'bind #A' to termrc, but I got the error If the driver says the card isn't responding, making it continue on blindly isn't likely to change the situation. Luckily, the card you have should work, as long as

Re: [9fans] How to read/write pixels from Memimage

2008-01-26 Thread Russ Cox
> Hello. I'm porting Bell Labs' Pico image language over to Plan 9 to > use the Plan 9 native image format (image(6)), and I chose to use > Memimage. I'd like to know how to get the 32-bit RGB pixel > information out of a Memimage and into a properly allocated array of > u32ints, and to do

Re: [9fans] stdarg & va_copy

2008-01-24 Thread Russ Cox
> i didn't see anything in the definition that would make va_copy > wrong given the plan 9 definition of va_list. is there a particular > case on plan 9 that would be a problem? it might make sense to *have* va_copy, but since plan 9 programs don't use va_copy, there's no need to provide an imple

Re: [9fans] stdarg & va_copy

2008-01-24 Thread Russ Cox
> is there any reason that /$objtype/include/u.h does not > define va_copy? are there objections to this c99 macro? Yes. The definition and semantics of va_copy are sufficiently murky that it seemed best to omit it. If you are porting code that uses va_copy, you can just #define va_copy(x,

Re: [9fans] Re: Building GCC

2008-01-24 Thread Russ Cox
> But in my version of hoc, you'll see > > #ifdef PLAN9 > USED(something-or-other-because-this-is-a-signal-handler-and-I-do- > not-care-about-that-necessary-argument-as-this-handler-just-calls- > exit-or-execerror); > #endif > > and that program uses pcc. Is there a command li

Re: [9fans] VMs and current plan9.iso

2008-01-24 Thread Russ Cox
> the nice thing about scsi emulation mode... is it doesn't get nearly > as far as any of the other options: I don't believe SCSI emulation is enough. If there is no CD in the drive, you have to *delete* it from the VM config in order for Plan 9 not to hang on boot. Clearly Plan 9 and VMware

Re: [9fans] Building GCC

2008-01-22 Thread Russ Cox
> New question: when was GCC for Plan 9 written? Third edition Plan 9? > Here's why: I only had to change one file to compile X11 for Plan 9, > which was developed on Brazil, which became Fourth Edition. I noticed > that some software I wanted to port uses X11R6, the version > available. My

Re: [9fans] Inferno /sys/doc: PDFs are actually PS?

2008-01-18 Thread Russ Cox
> that's what gs produced on plan 9 when i asked for pdf. > i tried another program elsewhere, probably gs on linux, but it didn't fare > any better. > i should probably try the adobe site that converts single documents, if > that's still there. > i'm reluctant to buy a new acrobat copy just for

Re: [9fans] unique identity to virtual files

2008-01-15 Thread Russ Cox
> I have a program (A) I have written, it can optionally run atop of a > a synthetic filesystem (B) which expands some files into directories > of files. > > The A needs to be able to tell the difference between a > 'real' directory and one generated by B. the usual answer is "don't do that." i.

Re: [9fans] ip bug?

2008-01-14 Thread Russ Cox
> now if i > > ; ip/ping /net.alt/icmp!12.51.113.7!0 > > i usually get one packet back and snoopy reports there are surely more packets than that. for example, where are the arp packets that initially discover that 12.51.113.7 is 0030488ef4fb? i suspect that the machine is sending out an

Re: [9fans] snap checksum

2008-01-12 Thread Russ Cox
> does anyone know if the function /sys/src/cmd/snap/take.c:/^sumr > can return 0 for a buffer that is not all zeros? > > i think it can not, since for sum&1, the next sum at least > has 0x8000 set and otherwise if (sum&1) == 0, then either > sum == 0 or sum>>1 != 0. >> if(sum & 1) >

Re: [9fans] site is down?

2008-01-12 Thread Russ Cox
> I just would like people to say if the site is down for them or not. If you can't connect to plan9.bell-labs.com but you can connect to, say, sources.cs.bell-labs.com or even plain old www.bell-labs.com, then it's exceedingly unlikely that the problem is on your end. If you were really worried a

Re: [9fans] Re: ruby port 1.8.1 ready to use

2008-01-10 Thread Russ Cox
> Does anyone have any details on POSIX threads in APE? I looked in > Trickey's paper but it doesn't say much. Without it, Ruby does not > compile (the new VM needs it). There is no support for POSIX threads in APE. Russ

[9fans] pointless, destructive programs

2008-01-09 Thread Russ Cox
This is quite possibly my favorite bitblt program. http://research.swtch.com/2008/01/crabs-bitmap-terror.html [Apologies for being a bit off-topic.] Russ

Re: [9fans] Re: Duplicate entries in fresh plan9.ini

2008-01-09 Thread Russ Cox
> I've been looking for the cause of these duplicate entries, and they > appear to have been introduced together with the third boot option on > the cd, "Boot Plan 9 from this CD and debug 9load". > I've been able to trace the cause of the duplicate entries back to the > following line in /sys/lib/

Re: [9fans] opera under linuxemu

2008-01-03 Thread Russ Cox
> ...lerned a lot from it about Linux and Plan9. I would never > have started it by myself. What Russ left in his contrib had done the > trick (catching syscalls with a note handler)... and was well > structured and easy for me to understand. From that, it was > easy to extend and implement furthe

Re: [9fans] frogs and osx

2008-01-03 Thread Russ Cox
> Using u9fs to access my mac I find I cannot see directories (folders) > that have their own specific icon. > > This turns out to be because these directories contain a file > Icon whiel is ASCII 13, and /sys/src/9/port/chan.c:1656 > defines the frogs illegal in filenames to include carriage ret

Re: [9fans] Mac OS X Drawterm Oddity

2007-12-31 Thread Russ Cox
> On my native Mac OS X drawterm, when I snarf a , subsequent pastes > seem to insert a newline. > > On osx-x11 drawterm, gets pasted. Which one do you think is the bug? They both sound correct to me. I suspect that since OS X uses plain \r as the end of line sequence, if you snarf multiple li

Re: [9fans] Corrupted file entry on QEMU - how to recover?

2007-12-27 Thread Russ Cox
> Can someone PLEASE give me some information so I can get my files > back? Otherwise, there goes my 3D library, my hoc implementation, etc. I'm afraid you're probably out of luck, without a lot of work. The disk data structures are all described in /sys/doc/fossil.ps. If you were using snapsh

Re: [9fans] Building P9P for multiple architectures from the same source tree?

2007-12-27 Thread Russ Cox
> Is it possible to build P9P for multiple architectures (e.g. > linux i386 and amd64) in the same tree? I looked at the > documentation but didn't see anything. > > In my work environment I can't install in /usr/local/plan9 because > I don't control the machines, so I install in my (NFS mounted)

Re: [9fans] fossil acid

2007-12-27 Thread Russ Cox
> am i doing this wrong? > > ; cd /sys/src/cmd/fossil > ; acid -l fossil-acid /n/sources/plan9/386/bin/acid > /n/sources/plan9/386/bin/acid:386 plan 9 executable > /sys/lib/acid/port > /sys/lib/acid/386 > 8c -FVw 9fsys.c > 8c -FVw -a 9fsys.c >9fsys.acid >

Re: [9fans] u9fs authentication

2007-12-27 Thread Russ Cox
> on the host 'mac' /etc/u9fs.keys contains: > macpassword > powerbook > plan9.authentication.dom > > I used auth/secuser to set the password for powerbook to macpassword on the > auth > server's console. > > then I try to connect to it using: This would have worked except tha

Re: [9fans] fun and scary evil C code

2007-12-20 Thread Russ Cox
> Does C99 or any other C mandate the actual memory layout > of floats and doubles or the exact conversion of constant > representations? > I'm fairly sure they somehow mandate IEEE 754 properties, > but do they actually say that floats and doubles have to be stored > exactly that way in 4 or 8

Re: [9fans] fun and scary evil C code

2007-12-19 Thread Russ Cox
> #define TRIO_DOUBLE_INDEX(x) (((unsigned char *)&internalEndianMagic)[7-(x)]) this is actually done in /sys/src/9/port/devcons.c too: static uvlong uvorder = 0x0001020304050607ULL; static uchar* le2vlong(vlong *to, uchar *f) { uchar *t, *

Re: [9fans] upas/smtpd password authentication

2007-12-17 Thread Russ Cox
> i'm not a security expert. what case that i can't currently see > would tls solve for me that's worth the extra configuration. > what am i missing? I believe you are missing the fact that the so-called "inferno/pop" password is no less powerful from an authentication point of view than the "p

Re: [9fans] Disable cfs

2007-12-16 Thread Russ Cox
> Hello. I think that cfs is the reason why I went from 13% disk usage > to 71% in two days, and now 100% because I get > "cacheAlloc...: ...disk xxx1 full..." Do you know how to get rid of > it? Thanks. fossil and cfs are completely different programs. they use different disk partitions an

Re: [9fans] upas/smtpd password authentication

2007-12-16 Thread Russ Cox
> even over tls, it seems inconvinent to use two different passwords > (really the password and secret) for sending and downloading email. it's certainly a bug if imap or smtpd or anything else expects a password that is not the inferno/pop secret. however, sending that password in plain text is

Re: [9fans] install problem

2007-12-14 Thread Russ Cox
> --> while copying the files to the drive, I get this message: "Warning: > skipping bad log entry". > > --> then when it runs the bootsetup stage, I choose the "Plan9" option, and > it then says "Preparing menu..." and then just returns me to the beginning > of the bootsetup routine. It's like

Re: [9fans] acid (or acid manual page) bug report

2007-12-14 Thread Russ Cox
>> Ah! I understand now. /sys/lib/acid/386 gets loaded AFTER my >> symbols are loaded, contrary to what the man page says. >> My Ureg gets re-defn'ed. > > is this a bug in acid or the manual page? bug in acid; fixed. russ

Re: [9fans] rio scaling

2007-12-14 Thread Russ Cox
> Should programs rely on rio making ther windows always a goodrect or > should it deal with the > case of drawing in a 10x10 or 1x1 image? I've occasionally wanted to create tiny windows (for example I originally made bargraph less tall) and it's a little annoying that rio's requirements for tex

Re: [9fans] p9p + devdraw

2007-12-14 Thread Russ Cox
> I'd like to understand how devdraw works on plan9port. > > AFAIK, libdraw spawns the devdraw server as subprocess and > talks to it via an pipe. But this means it's not network > transparent. > > Is there any way for getting an network transparent > display server ? What does network-transp

Re: [9fans] fossil repair?

2007-12-14 Thread Russ Cox
> this is my first real fossil+venti install. i used a cd from an iso image > dated 4/15/2007, > then did a pull (12/6) and rebuilt 9pccpuf. i'm seeing this on startup: > > cacheLocalData: addr=253 type got 8 exp 0: tag got 6fc0e4fc exp 71875e60 > cacheLocalData: addr=253 type got 8

Re: [9fans] conditions in alts

2007-12-14 Thread Russ Cox
> The syntax, > alt { > x = <-c1: > print("received %d from c1\n", x); > cond && c2 <-= y: > print("sent %d to c2\n", y); > } > implies that the condition is re-evaluated. Doesn't imply that to me. > The libthread translation, > alts[1] = (Alt){c2, &y, cond ?

Re: [9fans] Re: Building a Floppy Disk

2007-12-14 Thread Russ Cox
> I can build 9pcf.gz and put it on a floppy and the new kernel with my > changes will boot, and see the sata bus. But the floppy root system is > missing those components, therefore it won't get to a working system. > > Is there a way I can boot the floppy kernel but use the CD's root fs? The k

Re: [9fans] My hoc not compiling: pcc errors?

2007-12-12 Thread Russ Cox
> Hello. I was working on generalizing my version of hoc so that you > can have strings, numbers, and sets all in an expression. But when I > tried to compile it, I got strange errors about undefined standard > functions. I looked at the include files and at the pcc -E output, > and they sh

Re: [9fans] Noob intall issues

2007-12-11 Thread Russ Cox
> Second choice is VMware, I'm using 5.5.2 build-29772 under Linux. > After finding the "echo hwaccel off > /dev/vgactl" I got the installer > to run, and things seemed to go well, but on reboot it hangs at "init: > starting /bin/rc", that one's been there for about an hour but still > no prompt.

Re: [9fans] Parallels/Mac Build 5582 almost works

2007-12-10 Thread Russ Cox
erik: >> 4. If you install the plan9 MBR which claims to be able to read past 2 GB it >> doesn't seem to be able to find what I put at > 2 GB. > > the mbr needs to be installed at the front of the disk. > do you mean pbs? there is a seperate pbslba. Although the MBR is installed at the front o

Re: [9fans] Error after pull (fossil: diskReadRaw failed)

2007-12-10 Thread Russ Cox
> After a 'pull' I get this messages. > "warning: skipping bad log entry <119>" > > And through 'cat /dev/kmesg': > > fossil: diskReadRaw failed: /dev/sdC0/fossil: score 0x002a: > part=data block 42: i/o error > fossil: diskWriteRaw failed: /dev/sdC0/fossil: score 0x0004: date > Fri Feb

Re: [9fans] venti wrarena i/o errors

2007-12-04 Thread Russ Cox
> lock 0xf0c77cf8 loop key 0xdeaddead pc 0xf01c846f held by pc 0xf01c846f proc > 307 > 295: venti pc f01da773 dbgpc203db Pread (Running) ut 1 st 537 bss > 4342000 qpc f01be14f nl 0 nd 0 lpc f01c57a1 pri 3 > 307: venti pc f01cded7 dbgpc203db Pread (Ready) ut 332 st 1137 >

Re: [9fans] p9p mk issue

2007-11-30 Thread Russ Cox
> To me what is suboptimal is that the default shell is > *different* on plan9 mk and p9p mk. Mk has run on Unix for a very long time, much longer than p9p has existed, and its default shell there has always been /bin/sh. On Plan 9 the default has always been /bin/rc. The p9p mk straddles both w

Re: [9fans] Plan 9 wiping itself?

2007-11-28 Thread Russ Cox
> The changes sound great, and eliminate my above doomsday scenario... > unless something goes really wrong with the replica log. Is it > replica/updatededb that is the culprit or just the way it is run in > replica/scan? It strikes me that if it is forced to abort for some > reason it should avoi

Re: [9fans] Plan 9 wiping itself?

2007-11-27 Thread Russ Cox
On Nov 24, 2007 1:43 PM, Uriel <[EMAIL PROTECTED]> wrote: > Somebody was asking why replica sucks? It's a bug in a shell script, which caused sources to look like some files went away and then got recreated. This happens occasionally if the replica update programs that run at Bell Labs get inter

Re: [9fans] non-plan9 acme: slight non-sensitive margin right of scrollbars?

2007-11-27 Thread Russ Cox
> maybe it is just me. anyway, with p9p acme I have been > noticing a slight margin just to the right of the scroll bars, > immediately to the left of the text, in which it is not > sensitive to mouse clicks and, if the mouse is there, > also not to text being entered. I guess I noticed it first >

Re: [9fans] segattach plan9port

2007-11-27 Thread Russ Cox
> last night I was looking into vt source. I tried to compile under > p9p and in consctl.c it was calling the p9 system call segattach. > > I was wondering if somebody can point me in a p9p port that shows > a very simple and straight forward example of the conversion of the p9 > to p9p segattach

Re: [9fans] Thinking of getting Helvetica Black, how to add to troff?

2007-11-27 Thread Russ Cox
> Hello. I'm thinking of getting the Helvetica Black font (http:// > www.linotype.com/12565/helveticablack-font.html? > PHPSESSID=fe724d529f3cedd385a9625bf2e87340#format) for troff. What > format should I get it in and how do I install it as HK in both troff > and lp? Thanks. Lp is easy: cop

Re: [9fans] SoundBlaster 16 on QEMU not working

2007-11-27 Thread Russ Cox
> Hello. I have, in my QEMU setup, a SoundBlaster 16 audio card to > emulate and the line > > audio0=sb16 > > in my plan9.ini What you wrote is equivalent to audio=sb16= The correct line for QEMU is audio0=type=sb16 Because you didn't set type=sb16, the audio driver

Re: [9fans] p9p vbackup fs type endiannes

2007-11-27 Thread Russ Cox
>> I have never tried to run the ext2 reading code on a >> little-endian machine. > > I assumed above was a typo and that we're talking about > big-endian powerpc. Yes, sorry. > I would too -- doesn't the filesystem's inode lookup method > usually (on Unix) do any endianness swap for inode numbe

Re: [9fans] p9p mk issue

2007-11-22 Thread Russ Cox
> That was the first thing I tried -- didn't I mention that in > my original email on this? But setting MKSHELL in an > included file works for only that file and then we are back > to sh. > > Try this and watch it fail: > > echo MKSHELL=rc > mkshell > echo ' > all: > for (i in a b) >

Re: [9fans] troff ignoring .eo/.ec after first time

2007-11-22 Thread Russ Cox
> On about the third page, some code begins, but at the print() > statement at the end there is some strangeness. If you look inside > the .ms file, there are some .eo and .ec requests. .eo turns off \x > and .ec turns it back on. But why is it ignored after that first > page, which works c

Re: [9fans] kernel memory allocator got confused?

2007-11-22 Thread Russ Cox
steve simon: > aux/cifs: 146 long share names too long for RAP (>13 chars) > 23795 cda: checked 8223 page table entries > 23849 mk: checked 53 page table entries > 23851 mk: checked 50 page table entries > 23853 mk: checked 53 page table entries > 6308 rc: checked 48 page table entries > mem user o

Re: [9fans] p9p mk issue

2007-11-22 Thread Russ Cox
> OK, how about this? If env. var MKSHELL is set to rc, then > set the default value of make variable MKSHELL to rc else to > sh. You get exactly the same effect as now and I get what I > want by setting MKSHELL env. var to rc. No. The fact is that some mkfiles are written with rc recipes and s

Re: [9fans] sources/contrib

2007-11-22 Thread Russ Cox
> Does anyone see any merit in having a stacked mailing list? For what i'd like is to have a mailing list i can subscribe to that is 9fans with just the technical content and none of the whining. (so this message wouldn't make it through.) russ

Re: [9fans] p9p vbackup fs type endiannes

2007-11-22 Thread Russ Cox
> I'm trying to use p9p's vbackup(8) on a linux powerpc system. > > # vbackup -m /boot /dev/hda3 > vbackup: ffsopen: bad magic 0x53ef wanted 0xef53 > > Linux statfs(2) says 0xef53 is a linux ext2 partition type. There > is an ext3 partition at /dev/hda3, so vbackup (its call to fsysop

Re: [9fans] thousands of interrupts per second

2007-11-21 Thread Russ Cox
> Ok another fresh install, I killed timesync, but am still getting > thousands of interrupts. And I'm noticing I'm getting about 18 fossil > instances and 14 venti instances. > > not sure if that's normal or not. Are you sure you have a recent CD? What you're describing sounds like the venti sy

Re: [9fans] p9p mk issue

2007-11-21 Thread Russ Cox
> >> Don't laugh but I am trying to use identical mkfiles on > >> FreeBSD & plan9 for some programs and it seems this is > >> impossible. > > For now I just changed default MKSHELL to rc in src/cmd/mk. > What I was really arguing for was for simplifying MKSHELL > semantics or getting rid of it alt

Re: [9fans] dns question

2007-11-19 Thread Russ Cox
> The problem: no DNS. Snooping from the linux and plan 9 side shows no > packets go to 192.168.18.10 for dns requests. Is the /lib/ndb/local > misdirecting dns somehow? I hate to yank the /lib/ndb/local, however, > as it is useful when the plan 9 guest is running in NAT as opposed to > BRIDGE mode

Re: [9fans] /n/sources/contrib/

2007-11-19 Thread Russ Cox
> by the way, if the datestamp in the lsr file is not the current > day (you know, cp -x), you'll miss the file with the lsr file. no, you won't. i said to diff the two lsr files and copy the ones whose lines had changed. so any change to the modification time, size, or content hash will cause y

Re: [9fans] namespace oddness

2007-11-19 Thread Russ Cox
> what's going on here? the bind of an empty directory onto > /net seems to disrupt the mount table somehow. > i can't think of an existing feature of the namespace > implementation that would explain this behaviour. > is something ignoring the device number, maybe? > > does anyone else get the sa

Re: [9fans] /n/sources/contrib/

2007-11-19 Thread Russ Cox
>> The web page Uriel pointed at contains a recipe but no explanation. >> The explanation is that every night the file /n/sources/lsr is updated >> with a list of all the files on sources and their modification times, >> sizes, and content hashes. You can copy lsr and then diff it against >> your

Re: [9fans] /n/sources/contrib/

2007-11-18 Thread Russ Cox
> I started to mirror the entirety of /n/sources/contrib, but the > results are disappointing. > > If I'm not mistaken, there is no "replica" facility around "contrib", > could it be arranged? The web page Uriel pointed at contains a recipe but no explanation. The explanation is that every night

Re: [9fans] Glendix?

2007-11-13 Thread Russ Cox
> 1) Modify the Linux kernel to present a 9P interface to itself (too > hard, almost like re-writing several important parts of the kernel) > 2) Modify the Plan 9 userspace to work with POSIX (Yuck, and Plan9Port > already does this) > 3) Create a custom INIT process which will be responsible for p

Re: [9fans] A sad story and a question

2007-11-11 Thread Russ Cox
> What if Time Machine is implemented around Venti? It's implemented around ln. http://arstechnica.com/reviews/os/mac-os-x-10-5.ars/14#time-machine-internals Russ

Re: [9fans] venti errors

2007-11-11 Thread Russ Cox
> 2007/ 10:17:36 err 3: corrupted disk index bucket: n=41371 max=215, > range=[0,396984) > 2007/ 10:17:38 err 3: corrupted disk index bucket: n=55627 max=215, > range=[0,396984) > /boot/venti: bad bucket XXX > 2007/ 10:17:38 err 3: corrupted disk index bucket: n=8135 max=215, > range

Re: [9fans] Bounds checking bug in fcall(2) functions

2007-11-10 Thread Russ Cox
> On second thought I think you are correct. At the end of the function > the pointer might be one byte past the buffer size, but then it won't > do any reads or writes (But it could be a problem if the buffer is > right at the end of the virtual memory space :). Sorry about the buggy > bug report.

Re: [9fans] consterm

2007-11-06 Thread Russ Cox
On 11/6/07, Eric Van Hensbergen <[EMAIL PROTECTED]> wrote: > Has anyone done a term program to connect to Plan 9 or Inferno -- > kinda like drawterm, without the draw bits? I guess I am thinking > about something that exports /dev/cons, /mnt/term, /dev/audio, etc. -- > but then just runs an rc on

Re: [9fans] Acme SAC for OS X Version 0.24

2007-11-05 Thread Russ Cox
> as another data point (like there isn't enough confiusion in this thread > already...), p9p debian unstable passes all russ' tests except the last: > >> Left-click in the tag so that the highlight on "Look hello" >> goes away. Now use the middle button to highlight "Look hello". >> The other "h

Re: [9fans] Acme SAC for OS X Version 0.24

2007-11-05 Thread Russ Cox
> now, if you want something a bit more difficult, try opening a file > named "test(1).txt" from within acme :) it's not exactly trivial. it's not exactly difficult: New test(1).txt russ

Re: [9fans] Acme SAC for OS X Version 0.24

2007-11-05 Thread Russ Cox
Here's a bunch of things to try to get started. If you have problems, say which ones worked for you and which didn't. Type date somewhere and middle-click on it. A new +Errors window should pop up with the current date. Middle-click on date again. The date should appear a second time in the +Err

[9fans] plan9port on leopard

2007-11-05 Thread Russ Cox
I believe that plan9port now compiles and runs successfully on OS X 10.5 (Leopard). Thanks to Andrey Mirtchovski, Bakul Shah, David Leimbach, and Jeff Sickel. Russ

Re: [9fans] Acme SAC for OS X Version 0.24

2007-11-05 Thread Russ Cox
> How do you open a file with it? And here's something I never figured > out (I thought the 9.intro.pdf showed how, but I was mistaken): how > do you use the Look command? http://swtch.com/plan9port/man/man1/acme.html unlike modern unix man pages, the plan 9 man pages actually contain useful info

Re: [9fans] how to run rio from plan9port?

2007-11-03 Thread Russ Cox
> I had installed plan9port in debian. Now I learn it. If I try to run rio as > > $ startx $PLAN9/bin/rio > > rio started. But if I say "New" so as to create terminal. But X Window > Systems say: > > --- rio: X_KillClient(0x61): BadValue (integer parameter out of > range for operation) I've

Re: [9fans] p9p's upas/fs for plan9?

2007-11-01 Thread Russ Cox
> I noticed that upas/fs will load all messages into memory on > startup. Since this will take forever with a couple thousand > messages in my mailboxes I wondered wether I am the only one with > that issue. Uriel mentioned that p9p's upas/fs could have a fix on > that issue. > > Russ, do you think

  1   2   3   4   5   6   7   8   9   10   >