Re: [9fans] FP register usage in Plan9 assembler

2016-02-03 Thread erik quanstrom
> WRT to drawbacks in the loader for writing assembly, one of the > biggest problems is merciless optimization that cannot be disabled on > a per translation-unit basis (we're using a loader, remember?) As an > example, it's damned near impossible to perform PC-relative branching > in the vector

Re: [9fans] rc exec error behaviour

2016-01-31 Thread erik quanstrom
On Sun Jan 31 16:56:19 PST 2016, henesy@gmail.com wrote: > Will this project (rc-go?) be hosted at a particular bitbucket/hg > repository for pull requests, etc? > > On 01/31/2016 12:58 AM, Skip Tavakkolian wrote: > > Sign me up for testing. > > > > On Sat, Jan 30, 2016, 5:16 PM Prof Brucee

Re: [9fans] Install: root file system

2016-01-11 Thread erik quanstrom
> If I'm not mistaken, the man page about kfs is misleading. It says that > indeed what is not fossil is treated as "kfs", but that "kfs" handles > cd9660 or dos too. > > If I understand correctly, this is not true. This is 9660srv or dossrv > or bzfl programs that are copied as "kfs" in the

Re: [9fans] a question on csquery

2016-01-09 Thread erik quanstrom
> > tcp!io.local!1 > /net/tcp/clone 192.168.0.5!1 > /net/tcp/clone 2402:6b00:22cd:bf80::5!1 > > > io% > > is there any reason that csquery should not show both IPs > when address is sysname on that csquery command is executed? perhaps a dns failure? i am not seeing this for this entry

Re: [9fans] a question on csquery

2016-01-09 Thread erik quanstrom
On Sat Jan 9 15:46:03 PST 2016, aris...@ar.aichi-u.ac.jp wrote: > hello erik, > > did you try ndb/csquery on the machine named dual? there is no machine named "dual". it was just a set of ndb entries. i tried the same experiment with a machine i have, and got the same result. - erik

Re: [9fans] subtracting pointers on amd64 6c

2016-01-06 Thread erik quanstrom
On Tue Jan 5 23:02:59 PST 2016, cinap_len...@felloff.net wrote: > it appears that %t and %z are already used by a bunch of programs, > including the kernel: > > term% grep -n 'fmtinstall\(''[zt]''' */*.c */*/*.c */*/*/*.c > cmd/trace.c:137: fmtinstall('t', timeconv); > 9/port/edf.c:122:

Re: [9fans] subtracting pointers on amd64 6c

2016-01-05 Thread erik quanstrom
> since 6c is more commonly used now, and there's more interest or need, > it's probably best just to introduce the difference type and change > the result type. it's the same thing with usize. i'll see if i can > add some code to check for mismatches automatically. > > there are usable ANSI

Re: [9fans] subtracting pointers on amd64 6c

2016-01-05 Thread erik quanstrom
On Tue Jan 5 11:49:06 PST 2016, charles.fors...@gmail.com wrote: > On 5 January 2016 at 19:01, Devon H. O'Dell wrote: > > > so given any of the examples in this thread, if you typedef'ed > > ptrdiff_t to long, then the compiler technically isn't actually doing > >

Re: [9fans] subtracting pointers on amd64 6c

2016-01-05 Thread erik quanstrom
> ...and arguing with it, based on assuming charles is disagreeing with > me about reasonable behavior. he isn't. apparently, you didn't take > the time to read what i had written in the first place. or at least > not past the first sentence. > > this is really annoying to me because it tends to

Re: [9fans] subtracting pointers on amd64 6c

2016-01-05 Thread erik quanstrom
On Tue Jan 5 14:34:52 PST 2016, cinap_len...@felloff.net wrote: > > there are usable ANSI formats for the difference and sizeof types. > > so one would write %td instead of %ld for ptrdiff type? that seems > easy. yup. > i'm not so sure how usize/ssize would work. %zud and %zd? or would > the

Re: [9fans] bug or feature ? --- ip/ping -6

2016-01-04 Thread erik quanstrom
> erik quanstrom <quans...@quanstro.net> once said: > > unfortunately, the simlification removes the code that solves an important > > use case. it's important to be able to specify the protocol or network > > stack, > > such as in > > > >

Re: [9fans] bug or feature ? --- ip/ping -6

2016-01-04 Thread erik quanstrom
> "most" commands do not. for example, > > cpu -h /net.alt/tcp!ladd.quanstro.net > it turns out i had a bit of extra time since it's too icy to leave the house. :-( anyway, here are all the programs that take -x mntpt, as determined by the man pages. vnc(1) vncs

Re: [9fans] bug or feature ? --- ip/ping -6

2016-01-03 Thread erik quanstrom
unfortunately, the simlification removes the code that solves an important use case. it's important to be able to specify the protocol or network stack, such as in ip/ping /net.alt/icmp!someaddress the diff is here and i'll be working on a patch. the basic idea is to translate only the

Re: [9fans] bug or feature ? --- ip/ping -6

2016-01-03 Thread erik quanstrom
> i spent some time thinking about this problem. > > the purpose of -6 is to force icmpv6. (one can use a v4 address > with icmpv6, that works due to ipv4 embedding.) this is not the same as > controlling name lookup. since there are better more flexible tools > for doing that by hand. the

Re: [9fans] bug or feature ? --- ip/ping -6

2016-01-03 Thread erik quanstrom
On Sun Jan 3 13:42:21 PST 2016, 23h...@gmail.com wrote: > your ipv4 "embedding" doesn't need to be part of the ping tool. it's > not commonly used anyway. i think the attribution here is false. i read the man page for that information. in any event, ping as patched is wrong. addresses like

Re: [9fans] mDNS

2016-01-02 Thread erik quanstrom
On Sat Jan 2 01:31:36 PST 2016, st...@quintile.net wrote: > > , > > I am confused, are you talking of replacing the interface to dns(1)? > > I had no real plan, maybe to just make mDNS accumulate broadcast and > multicast mDNS messages into a virtual file in /lib/ndb format. > > more

Re: [9fans] Pi updates

2016-01-02 Thread erik quanstrom
On Fri Jan 1 21:15:03 PST 2016, blstu...@bellsouth.net wrote: > On Fri, 1/1/16, erik quanstrom <quans...@quanstro.net> wrote: > > i'm looking @ the gpio interface, and i wonder what the recommended > > technique for sampling a pin might be from a shell script? >

Re: [9fans] Install: root file system

2016-01-02 Thread erik quanstrom
i'm not sure what the root cause of your problem is, due to not enough data, but it does remind me of a limitation that has been bugging me. to boot from usb cleanly, i added a bit to the boot process that creates a loopback sd device /dev/sdu0 that points to the usb disk device. i've been

[9fans] rpi emmc

2016-01-02 Thread erik quanstrom
in diffing bls' version and sources, i see some significant differences, but it's not clear which one is more up-to-date. anyone? - erik ; 9diff emmc.c /n/sources/plan9/sys/src/9/bcm/emmc.c:178,184 - emmc.c:178,188 static int datadone(void*) { - return emmc.datadone; +

Re: [9fans] rpi emmc

2016-01-02 Thread erik quanstrom
On Sat Jan 2 21:23:12 PST 2016, blstu...@bellsouth.net wrote: > On Sat, 1/2/16, David du Colombier <0in...@gmail.com> wrote: > > > in diffing bls' version and sources, i see some significant > > > differences, but it's not clear which one is more up-to-date. > > > > Brian Stuart's version is

Re: [9fans] bonjour mDNS?

2016-01-01 Thread erik quanstrom
On Fri Jan 1 19:32:25 PST 2016, m...@boschma.cx wrote: > > > On 2 Jan 2016, at 7:05 am, Steve Simon wrote: > > anyone done any work to implement mDNS / bonjour on plan9? > > > > No, but I have an interest; just starting out with Plan9 :) > > > my rough plan is to write a

Re: [9fans] Rio: possibility to forbid resizing a window?

2016-01-01 Thread erik quanstrom
> Is there such possibility with rio? yes, this is implemented by games/sudoku. just refuse to resize. - erik

Re: [9fans] bug or feature ? --- ip/ping -6

2016-01-01 Thread erik quanstrom
unfortunately, there is some imprecision when mixing -4 and -6 with names, and i don't have a tidy solution. also, the man page claims that the biggest an icmp packet could possibly be is 8192 bytes, which is incorrect. icmp is fragmented like any other ip packet, so the maximum payload is

Re: [9fans] Pi updates

2016-01-01 Thread erik quanstrom
On Wed Dec 30 14:27:27 PST 2015, blstu...@bellsouth.net wrote: > On Wed, 12/30/15, Skip Tavakkolian <9...@9netics.com> wrote: > > > - Enhancements for I2C and SPI > > > > is there an updated devrtc3231.c, or a conventional user space > > fs, that uses the new i2c? > > Yes, there's a devi2c

Re: [9fans] need a REAL WORKING iso

2016-01-01 Thread erik quanstrom
On Fri Jan 1 03:56:33 PST 2016, fpussa...@contactoffice.fr wrote: > hello all > > where can i get a iso file for 9front or plan9 for raspberry pi > > > I have the bell-labs./contrib/miller one but it is all > stuck/restricted. even writting to /dev/keymap is impossible... > neither

Re: [9fans] bug or feature ? --- ip/ping -6

2016-01-01 Thread erik quanstrom
on reading the man page, i found a small flaw in the implementation. according to the man page, -6 forces is of icmp6, even if the address is icmp4. i changed ping to do that.as a result, i added a -4 flag which forces the ping to use icmp4. obviously, there is no native 6-in-4, so this is

Re: [9fans] contrib/install

2015-12-20 Thread erik quanstrom
> I wonder, have you installed the contribution package? If not then this is > what you need, I think - it's been a few years since I did this... > > 9fs sources > /n/sources/contrib/fgb/root/rc/bin/contrib/install fgb/contrib > > Once this completes you should be able to do the installs you

Re: [9fans] Writing a CD image

2015-12-02 Thread erik quanstrom
that's a new warning that I think is in error. I don't remember the details. - erik On Dec 1, 2015 11:53 PM, lu...@proxima.alt.za wrote: > > What does the following mean? > > nwa is 262298 but invis track starts blk 0 > cdfs: nwa from drive 0 != computed nwa 262,146 > be careful!  assuming

Re: [9fans] Compiling ken-cc on Linux

2015-11-27 Thread erik quanstrom
> Funny, but actually I was wondering if there is any subtle issue in the > standards of the C language that makes it somehow hard to implement. > For example I've met a few times weird implementations of libraries and > frameworks dictated by broken standards: once they are in, they can never >

Re: [9fans] Compiling ken-cc on Linux

2015-11-27 Thread erik quanstrom
> memory bug in Jörg Schilling's Bourne shell (likely developed only > on Solaris rooted) simply by compiling and starting it under > FreeBSD. And i have found stack read violations simply by running given cdrtools, this is not a surprise.

[9fans] libsec/port/hmac.c

2015-11-27 Thread erik quanstrom
hmac_x(uchar *p, ulong len, uchar *key, ulong klen, uchar *digest, DigestState *s, DigestState*(*x)(uchar*, ulong, uchar*, DigestState*), int xlen) { int i; uchar pad[Hmacblksz+1], innerdigest[256]; if(xlen > sizeof(innerdigest)) return nil;

Re: [9fans] Undefined Behaviour in C

2015-11-26 Thread erik quanstrom
On Thu Nov 26 03:25:34 PST 2015, brantleyco...@me.com wrote: > Hi Bakul. Long time since our Bay Area plan 9 hacking sessions. I've avoided > the valley all together for a year and a half now. Not quite long enough yet. > > I thought the same thing, using ~0 for nil, but realized two things.

Re: [9fans] Undefined Behaviour in C

2015-11-26 Thread erik quanstrom
aren't there any Biobufs at the start of structures?  I only have a phone here so I can't verify. - erik On Nov 26, 2015 8:50 AM, Charles Forsyth wrote:On 26 November 2015 at 16:42, Brantley Coile wrote:I’m still kind of dubious that there are

Re: [9fans] Undefined Behaviour in C

2015-11-25 Thread erik quanstrom
so to answer bwc's question, no.  not always.  On Nov 25, 2015 4:59 AM, Charles Forsyth wrote:The link to the lwn.net article explains that using mmap the naughty application mapped a page to virtual 0, which was then available in kernel mode in that process, and all

Re: [9fans] blank line in /lib/ndb/local

2015-11-09 Thread erik quanstrom
On Mon Nov 9 04:32:24 PST 2015, aris...@ar.aichi-u.ac.jp wrote: > Hello, > > manual ndb(6) says: "Each line starting without white space starts a new > tuple. Lines starting with # are comments.” > > assume we have an entry such as: > dom=foo > # a blank line follows > > auth=bar

Re: [9fans] blank line in /lib/ndb/local

2015-11-09 Thread erik quanstrom
On Mon Nov 9 20:03:06 PST 2015, aris...@ar.aichi-u.ac.jp wrote: > hello, > > your blank line doesn’t have a white space. > > > 2015/11/10 12:02、erik quanstrom <quans...@quanstro.net> のメール: > > > > On Mon Nov 9 04:32:24 PST 2015, aris...@ar.aichi-u.ac.jp

Re: [9fans] blank line in /lib/ndb/local

2015-11-09 Thread erik quanstrom
On Mon Nov 9 21:10:14 PST 2015, aris...@ar.aichi-u.ac.jp wrote: > yes, your right. > the manual says what the code does. > however I don’t think it is a good idea to make sense in white spaces within > blank line. > probably the code does not suppose blank lines within ndb entry. > i don't

Re: [9fans] 9vx on OSX

2015-11-07 Thread erik quanstrom
On Sat Nov 7 02:53:10 PST 2015, aris...@ar.aichi-u.ac.jp wrote: > Hello, > > thanks all. > > > mine is weird: when I type “abc”, I have “aabbcc”. > > I replaced 9vx (not only 9vx binary but whole set of 9vx package) on Yosemite > by the one that is working on Mountain Lion. > however the

Re: [9fans] Off topic: Linus rants against GCC-isms

2015-11-04 Thread erik quanstrom
On Wed Nov 4 19:43:55 PST 2015, arn...@skeeve.com wrote: > Hi All. > > Although this group in general doesn't like Linux, I think most of you > might enjoy his rant: > > http://gizmodo.com/you-dont-need-to-understand-programming-to-appreciate-t-1739927472 and yet i look at the linux kernel my

Re: [9fans] cpu from one CPU server to another CPU server

2015-11-04 Thread erik quanstrom
On Wed Nov 4 11:15:04 PST 2015, burt...@inbox.com wrote: > Hi, > > When I log into my first CPU server using drawterm, I try to cpu to my second > CPU server and the first one in drawterm just hangs after entering the > username/password. After I run the cpu command, all subsequent windows in

Re: [9fans] rpi boot

2015-10-24 Thread erik quanstrom
On Fri Oct 23 15:37:55 PDT 2015, cyberfo...@gmail.com wrote: > I don't have the Plan9 uSD card handy, but to the best of my recollection > all Raspberry Pi SD cards have at least two partitions on them. The ARM > processor remains halted upon reset and the VideoCore loads the image from > the

Re: [9fans] RUDP and/or others

2015-10-18 Thread erik quanstrom
On Sun Oct 18 17:11:11 PDT 2015, k...@sciops.net wrote: > On Sun, Oct 18, 2015 at 04:59:44PM -0700, erik quanstrom wrote: > > On Sun Oct 18 16:16:59 PDT 2015, 9...@9netics.com wrote: > > > > Anyone know of a leaner reliable datagram protocol? I know I saw one a > > >

Re: [9fans] RUDP and/or others

2015-10-18 Thread erik quanstrom
On Sun Oct 18 16:16:59 PDT 2015, 9...@9netics.com wrote: > > Anyone know of a leaner reliable datagram protocol? I know I saw one a > > year ago, but I just can't remember what it was! > > are you looking for Internet Link (IL)? there's also rudp, which if i have gotten my second-hand stories

Re: [9fans] RUDP and/or others

2015-10-18 Thread erik quanstrom
On Sun Oct 18 15:53:44 PDT 2015, akuk...@gmail.com wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > >On Mon, 19 Oct 2015 00:43:56 +0200 > >Aleksandar Kuktin wrote: > > > Anyone know of a leaner reliable datagram protocol? I know I saw one a > > year ago,

Re: [9fans] Web Gardens

2015-10-18 Thread erik quanstrom
On Thu Oct 15 20:50:52 PDT 2015, k...@sciops.net wrote: > On Thu, Oct 15, 2015 at 07:10:01PM -0700, erik quanstrom wrote: > > > > i'd recommend a google search > > > > https://www.google.com/webhp?sourceid=chrome-instant=1=2=UTF-8#q=web%20garden > > &g

Re: [9fans] Web Gardens

2015-10-15 Thread erik quanstrom
On Mon Oct 12 09:16:37 PDT 2015, k...@sciops.net wrote: > On Mon, Oct 12, 2015 at 05:57:16PM +1300, Andrew Simmons wrote: > > As a diversion from the discussion of the existential essence of > > Javascript, > > could I ask the group for a view on the meaning of the term "Web Garden"? > > I was

Re: [9fans] off topic - a good Git reference

2015-10-02 Thread erik quanstrom
did you fix the SSL interface in python, too?  - erik On Oct 2, 2015 9:37 PM, Nick Owens <misch...@offblast.org> wrote:9front now supports tls 1.2 in libsec/devtls. Mercurial can make use of it through webfs. On Oct 2, 2015 7:35 PM, "erik quanstrom" <quanstro@quanstro.net&g

Re: [9fans] off topic - a good Git reference

2015-10-02 Thread erik quanstrom
On Fri Oct 2 18:46:06 PDT 2015, k...@sciops.net wrote: > On Fri, Oct 02, 2015 at 11:56:47PM +0200, a.regenf...@gmx.de wrote: > > >Mercurial works. > > If you have got an installed python. > > that's pretty much universally the case for mercurial, yes. well, there are some problems with ssl. -

Re: [9fans] off topic - a good Git reference

2015-10-02 Thread erik quanstrom
On Wed Sep 30 03:03:36 PDT 2015, brantleyco...@me.com wrote: > How can it be a secret 'society' if there's just one member for each secret > society? > > Sent from my iPad > > > On Sep 29, 2015, at 11:11 PM, erik quanstrom <quans...@quanstro.net> wrote: > > >

Re: [9fans] Replacement for find

2015-09-30 Thread erik quanstrom
On Wed Sep 30 01:12:36 PDT 2015, charles.fors...@gmail.com wrote: > On 30 September 2015 at 09:01, Wolfgang Helbig wrote: > > > But I consider it ugly, to ask for the disk usage if you just want to > > recursively list all files. > > > > It probably is not ideal, even when

Re: [9fans] off topic - a good Git reference

2015-09-29 Thread erik quanstrom
On Tue Sep 29 12:45:25 PDT 2015, k...@sciops.net wrote: > On Tue, Sep 29, 2015 at 02:18:20PM -0300, Tiago Natel wrote: > > is there someone else interested in write a git tool for plan 9 ? > > > > []'s > > This has been written. You just need to fill out a Secret Plan 9 Super > Secret Society

Re: [9fans] dns message

2015-09-26 Thread erik quanstrom
> ipnet=local ip=192.168.0.0 ipmask=255.255.255.0 > ipgw=192.168.0.1 > smtp=ar !> ntp=ntp.jst.mfeed.ad.jp ip > auth=hebe > fs=hebe > # the dns values are advertised by DHCP server > # we assume that dhcpd is running on the same ip. look /cfg/common/cpurc >

Re: [9fans] dns message

2015-09-26 Thread erik quanstrom
On Sat Sep 26 15:52:28 PDT 2015, aris...@ar.aichi-u.ac.jp wrote: > thank you erik. > you are very careful! > I didn’t aware that garbage. > however removing “ip” does not fix my problem. > looking source code I guess: names that are not followed by “=“ are just > discarded. > I want to know

Re: [9fans] Out of pseudo mount points

2015-09-23 Thread erik quanstrom
On Wed Sep 23 15:34:38 PDT 2015, adriano.vera...@mail.com wrote: > I have 2 identical hosts (same hw, same kernel, same cpurc, ) ... but > > A# import -b B /srv /srv > A# mount /srv/kfs /n/k > > beeing /srv/kfs imported from B, works as expected and > > B# import -b A /srv /srv > B# mount

Re: [9fans] Issues with USB mouse in 9atom

2015-09-22 Thread erik quanstrom
On Tue Sep 22 17:47:17 PDT 2015, quans...@quanstro.net wrote: > I mentioned booted. > > - erik > > > On Sep 22, 2015 2:58 PM, erik quanstrom <quans...@quanstro.net> wrote: > > > > > Yeah, I installed from the CD. But that image is for amd64, corr

Re: [9fans] Issues with USB mouse in 9atom

2015-09-22 Thread erik quanstrom
I mentioned booted. - erik On Sep 22, 2015 2:58 PM, erik quanstrom <quans...@quanstro.net> wrote: > > > Yeah, I installed from the CD. But that image is for amd64, correct? a 64 > > bit processor? My junk computer is an old gateway, with a celeron D, a > > whoppin

Re: [9fans] Issues with USB mouse in 9atom

2015-09-22 Thread erik quanstrom
> Yeah, I installed from the CD. But that image is for amd64, correct? a 64 > bit processor? My junk computer is an old gateway, with a celeron D, a > whopping 256 MB of ram, and a full 100 GB hard disk space. But since this > is 32 bit to my knowledge, would a possible solution involve making a >

Re: [9fans] Issues with USB mouse in 9atom

2015-09-21 Thread erik quanstrom
> After obtaining a disk drive for an old PC I've had for a little while, I > was overjoyed to turn it into a dedicated 9 machine. I realized could have > a second server as part of my 9junk grid! However, it seems the original > site from bell labs is down, and that since 9front apparently can't

Re: [9fans] tls and iphones and ios9 (sigh)

2015-09-18 Thread erik quanstrom
On Fri Sep 18 06:01:44 PDT 2015, cinap_len...@felloff.net wrote: > so you need server side support for what cipher suits and protocol > versions exactly? > > the work has been done in 9front libsec and devtls to support ecdhe > and dhe and tls 1.2 on the *client* side at least. so you can start >

Re: [9fans] tls and iphones and ios9 (sigh)

2015-09-17 Thread erik quanstrom
combover. I see what you did there. - erik On Sep 17, 2015 8:42 AM, Jeff Sickel wrote: > > > > On Sep 17, 2015, at 9:33 AM, Steve Simon wrote: > > > > I upgraded my iphone to ios9 and now cannot access my email on plan9 - > > no sniggering at

Re: [9fans] tls and iphones and ios9 (sigh)

2015-09-17 Thread erik quanstrom
On Thu Sep 17 12:49:37 PDT 2015, j...@corpus-callosum.com wrote: > > > On Sep 17, 2015, at 12:46 PM, Skip Tavakkolian <9...@9netics.com> wrote: > > > >> combover. I see what you did there. > > > > ha! i can trump that… > > There’s a direct correlation to length of hair and billable rate.

Re: [9fans] kenc vlong double

2015-09-13 Thread erik quanstrom
> MOVLv+-8(SP),F0 <- nope. actually, double nope. the move if implemented as written is wrong. we want to move a quad to a float, not a long to a float. - erik

Re: [9fans] kenc vlong double

2015-09-13 Thread erik quanstrom
> --- a/sys/src/cmd/cc/com.cSun Sep 13 13:51:00 2015 +0200 > +++ b/sys/src/cmd/cc/com.cSun Sep 13 19:59:43 2015 +0200 > @@ -182,8 +182,8 @@ > r = new1(OCAST, n->right, Z); > r->type = t; > n->right = r; > -

Re: [9fans] kenc vlong double

2015-09-13 Thread erik quanstrom
> On 13 September 2015 at 19:21, erik quanstrom <quans...@quanstro.net> wrote: > > > isn't the && !mixedasop() added to the condition the problem: > > the cast should not be elided if it's a float/double. t > > > > the test is correct, beca

[9fans] irq latency

2015-09-07 Thread erik quanstrom
tl;dr: pcie access = latency it's interesting to take a look at irq latency for a number of devices on different machines. it looks like the experimental device --- the interrupt does nothing --- gives us a lower bound for irq latency, which works out to be 36ns (!). clearly this doesn't

Re: [9fans] irq latency

2015-09-07 Thread erik quanstrom
On Mon Sep 7 18:24:05 PDT 2015, quans...@quanstro.net wrote: > tl;dr: pcie access = latency speaking of latency, 9fans seems to have >6hr latency right now. - erik

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-06 Thread erik quanstrom
<charles.fors...@gmail.com> wrote:On 6 September 2015 at 16:02, erik quanstrom <quanstro@quanstro.net> wrote:a slot of local interest?  doesn't malloc serve that purpose well enough?It doesn't create a name for a per-process global.

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-06 Thread erik quanstrom
On Sat Sep 5 23:33:50 PDT 2015, cinap_len...@felloff.net wrote: > hey charles! > > is privfree() broken? it appears it chains the slots together, > but only the calling process will get a correct chain. the chain > head (privs) is shared (in bss) and seen by all process so the > others will get

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-06 Thread erik quanstrom
> probably, since a shared bitmap would need a lock and allow > any process to allocate a slot, which could then either be broadcast > to allow per-process tagging (as above), or allocation of a slot of only > local interest. even so, tprivfree is incomplete. a slot of local interest? doesn't

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-05 Thread erik quanstrom
On Sat Sep 5 07:06:44 PDT 2015, giac...@tesio.it wrote: > 2011-05-20 3:30 GMT+02:00 erik quanstrom <quans...@quanstro.net>: uh, wow. i hope this wasn't my mailer dragging the past up. > > one note is that while i'm aware of privalloc(2), i didn't use it. the > > implemen

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-05 Thread erik quanstrom
by the way, the following program runs without asserting for me with or without the waits. - erik --- #include #include void task(void **p) { assert(*p == nil); *p = (void*)(uintptr)getpid(); } void spawn(void (*t)(void**), void **p) { int pid; switch(pid =

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-05 Thread erik quanstrom
> May be my problem is that p is global in my case? global variables are in the bss, and thus shared. p will have the same value in each thread, but *p should point into the stack, and thus the same virtual address will be mapped to different physical pages of memory. however, if *p is assigned

Re: [9fans] acme search backwards

2015-09-03 Thread erik quanstrom
ara...@mgk.ro> wrote: > > On Thu, Sep 3, 2015 at 3:11 PM, erik quanstrom <quans...@quanstro.net> wrote: > > because the keyboard doesn't pass modal presses to user space > > There has been solved in 9front in 2011: http://man.cat-v.org/9front/8/kbdfs > > -- > Aram Hăvărneanu > >

Re: [9fans] acme search backwards

2015-09-03 Thread erik quanstrom
On Thu Sep 3 02:40:05 PDT 2015, rudolf.syk...@gmail.com wrote: > On 3 September 2015 at 11:16, Mathieu Lonjaret > > https://groups.google.com/d/msg/comp.os.plan9/Q6R9iuu0lE8/u3h-FUnXOmEJ > > Thanks for the link! > I wonder, why is it that they claim that implementing the functionality > of: > 3b

Re: [9fans] On Linux, what is the rc init file?

2015-08-30 Thread erik quanstrom
On Fri Aug 28 10:24:30 PDT 2015, rym...@gmail.com wrote: YES!! That was it! My plan9home directory didn't contain a bin folder; that was somewhere else. When I symlinked it there, it worked! Thank you! out of curiousity, why use a non-standard install? - erik

Re: [9fans] On Linux, what is the rc init file?

2015-08-30 Thread erik quanstrom
On Fri Aug 28 09:09:09 PDT 2015, asbras...@gmail.com wrote: On Fri, Aug 28, 2015 at 11:49:41AM -0400, s...@9front.org wrote: Take a look at $PLAN9/rcmain. sl Well, punch me in the face and call me Suzanne! That changes everything, because absence of a .bashrc lookalike was the thing

Re: [9fans] python for plan9 ?

2015-08-15 Thread erik quanstrom
On Sat Aug 15 16:06:57 PDT 2015, v...@klankschap.nl wrote: is there a python 3.4 port ? .F nope. - erik

Re: [9fans] p9p sed vs linux sed

2015-08-14 Thread erik quanstrom
i think the change doesn't work for any multi-line file: ; cp /sys/src/cmd/sed.c /tmp/notsed.c ; cd /tmp ; ed notsed.c ; ed notsed.c 27827 putline(Biobuf *bp, Rune *buf, int n) +4 ebputc(bp, '\n'); d w 27808 q ; tmk notsed.c 6c -FVTw notsed.c 6l -o 6.notsed notsed.6 ; ; {echo a ; echo b}

Re: [9fans] read9pmsg usage

2015-08-10 Thread erik quanstrom
on plan 9 systems 0 writes are not discarded. - erik On Aug 10, 2015 7:11 AM, Giacomo Tesio giac...@tesio.it wrote:Hi, Ive a probably naive question that I cant figure out.Ive just noticed that fcall(2) statesRead9pmsg calls read(2) multiple times, if necessary, to read an entire 9P message into

[9fans] dhcp problem with windows 7 client

2015-07-31 Thread erik quanstrom
i'm looking at a windows 7 client that is not happy with dhcp. i know this machine had been happy dhcp'ing on the network 18 months ago, but now it's not. here's the symptom: lilly Jul 31 05:57:38 Discover(0.0.0.0-10.1.1.1) xid(e52418a9)flag(0)ea(6480993af534)id(id016480993af534)need(mask

Re: [9fans] dhcp problem with windows 7 client

2015-07-31 Thread erik quanstrom
looks like the problem was a prior config having given another device the same ip. the client is not giving up its address even after lease expiration. - erik On Jul 31, 2015 5:58 AM, erik quanstrom quans...@quanstro.net wrote: i'm looking at a windows 7 client that is not happy with dhcp

Re: [9fans] Harvey OS: A new OS inspired heavily by Plan 9

2015-07-26 Thread erik quanstrom
just speaking for myself, I found the fact that plan 9 was a self contained thing to be a must have. i don't consider the gcc toolchain to be a feature. if "fast compilation" is a feature over plan 9, I'd like to see some numbers. - erik On Jul 25, 2015 3:15 PM, Axel Belinfante

Re: [9fans] Harvey OS: A new OS inspired heavily by Plan 9

2015-07-26 Thread erik quanstrom
wrong list? ;-) On Jul 26, 2015 1:47 PM, hiro 23h...@gmail.com wrote: I'm trying to argue from a Linux point of view.

Re: [9fans] Has Linux jumped the shark?

2015-07-24 Thread erik quanstrom
On Thu Jul 23 22:12:56 PDT 2015, prof.bru...@gmail.com wrote: You are not helping at all. We know that Peter has done *everything*. brucee On Fri, Jul 24, 2015 at 2:49 PM, cinap_len...@felloff.net wrote: http://9front.org/img/pjwshark.png so it's peter. the most interesting man in

Re: [9fans] usb disk - no partitions?

2015-07-22 Thread erik quanstrom
On Tue Jul 21 02:03:39 PDT 2015, cinap_len...@felloff.net wrote: you have to use disk/partfs with the original usb/disk driver. nusb/disk in 9front supports partitions. in 9atom, there is a loopback sd driver, should performance matter. - erik

Re: [9fans] Plumbing - Files with spaces

2015-07-22 Thread erik quanstrom
do you mean frogs not runes? the normal rules are ok with most runes. - erik On Jul 22, 2015 6:29 AM, dexen deVries dexen.devr...@gmail.com wrote:there is trfs(4), not sure if applicable to plan9port.trfs -  translate spaces and other runes in file names file

Re: [9fans] Gawk in 9front-ports

2015-07-09 Thread erik quanstrom
confirmed. it's existence is due to early gnu programs fighting with small variations in unix and compilers. byron's rc used a small script to the same effect. but for the most part, this all could be avoided with careful planning and not using esoteric functions. gcc also had its own

Re: [9fans] rsc's libtask on embedded

2015-07-09 Thread erik quanstrom
all process-like implementations except if they give up on per-cpu multiprogramming are setjmp based at heart. - erik On Jul 9, 2015 09:31, Bakul Shah ba...@bitblocks.com wrote: Your use is different and simple enough that I would suggest doing this from scratch in pure C. Or start from an

Re: [9fans] Gawk in 9front-ports

2015-07-07 Thread erik quanstrom
On Mon Jul 6 19:40:45 PDT 2015, staal1...@gmail.com wrote: There was a recent discussion about that it would be nice to have gawk on Plan9. i'm confused. wasn't there also an effort to un-apeify the one true awk? - erik

Re: [9fans] Help with interrupting fgetc()

2015-06-27 Thread erik quanstrom
two additional points. I the style for note matching is strstr matching because the exact string can't be counted on. for example details may be added. also the bio(2) library and peint(2) areusually used instead of stdio. - erik On Jun 27, 2015 1:30 PM, Nils M Holm n...@t3x.org wrote:

[9fans] unicode8.0.0

2015-06-20 Thread erik quanstrom
if you're running recent 9atom, /lib/unicodedata and the runepunct and runeclass data may be updated either by pulling the source or by ; cd /sys/src/cmd/runeclass ; mk nuke ; mk install i recommend pulling the source as isalpharune(2) and runeclass(2) have been tweaked

Re: [9fans] drawterm source?

2015-06-18 Thread erik quanstrom
On Thu Jun 18 03:43:58 PDT 2015, 0in...@gmail.com wrote: Anyone looked at this, or have a version which performs both of these features? So, I think you'll be happy with https://github.com/0intro/drawterm now. so why do we have so many un-coordinated versions of drawterm? - erik

Re: [9fans] inequality testing in shell

2015-06-15 Thread erik quanstrom
On Sun Jun 14 14:12:13 PDT 2015, nsa...@gmail.com wrote: Why doesn't the plan9 test program have features for checking inequalities (i.e. greater than etc.)? What do you guys do when you want to test for inequality? Maybe the most convenient way to do that in the shell would be if I made

Re: [9fans] Ports tree for Plan 9

2015-05-31 Thread erik quanstrom
There have been many fixes to BWK's code since then. If you're going to start over, it should be done from his current code, available from his Princeton home page. 9atom's awk has been updated with bwk's recent source. it also has a fix for the problem sometimes seen with plan 9 installs

Re: [9fans] Ports tree for Plan 9

2015-05-30 Thread erik quanstrom
On Sat May 30 13:36:14 PDT 2015, s...@9front.org wrote: On May 30, 2015, at 11:54 AM, erik quanstrom quans...@quanstro.net wrote: I would very much like to see this fast and conformant, so that APE awk can be thrown in the trash. i don't understand this. awk is bwk's ota source

Re: [9fans] Ports tree for Plan 9

2015-05-30 Thread erik quanstrom
On Sat May 30 21:43:03 PDT 2015, k...@sciops.net wrote: Quoting arn...@skeeve.com: BWK has said that malloc affects the performance of his awk; I think it's in his README file. Yes, it was explained to me that plan 9 malloc does useful things instead of just shoving things into the

Re: [9fans] Ports tree for Plan 9

2015-05-30 Thread erik quanstrom
On Sat May 30 22:02:11 PDT 2015, quans...@quanstro.net wrote: On Sat May 30 21:43:03 PDT 2015, k...@sciops.net wrote: Quoting arn...@skeeve.com: BWK has said that malloc affects the performance of his awk; I think it's in his README file. Yes, it was explained to me that plan 9

Re: [9fans] Ports tree for Plan 9

2015-05-30 Thread erik quanstrom
I would very much like to see this fast and conformant, so that APE awk can be thrown in the trash. i don't understand this. awk is bwk's ota source, with some minor tweaks to fit the environment. it works well, and allows portable awk to be written. can you explain what is to be gained by

Re: [9fans] Ports tree for Plan 9

2015-05-30 Thread erik quanstrom
Personally, it's just one more reason to reduce our nation's dependence on foreign code -- does anyone want to help test pap's native awk? pretty difficult to do if there is a desire to use git or hg. - erik

Re: [9fans] Ports tree for Plan 9

2015-05-29 Thread erik quanstrom
On Wed May 27 12:51:19 PDT 2015, cinap_len...@felloff.net wrote: A potential bug in APE sys/wait.h : the header does not make sure that pid_t has been defined. Compiling sbase on Plan9/APE ended up in situations where there were lots of compilation faliures simply because

<    1   2   3   4   5   6   7   8   9   10   >