Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Oleg
On Fri, Nov 07, 2014 at 08:17:55AM +0100, k...@shike2.com wrote: > > > perhaps a linked list would make sense, but atexits(2) doesn't say which > > order > > the functions will be run in. and it doesn't seem like a great idea to > > depend on > > atexits running things in a particular order. >

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Charles Forsyth
On 6 November 2014 21:05, Oleg wrote: > I looked at atexit() and atexitdont() and i don't understand why these > functions are implemented with a static array instead of singly linked > list? > May be somebody with a greater plan9 experience can help me with my > question. > It might have been t

Re: [9fans] Setting up Mail in Acme on the Raspberry Pi.

2014-11-07 Thread Mats Olsson
Hi again! The DNS problem only occurs when I try to send from the gmail account I'm using now to the Swedish domain: "spray.se". An empty message comes through ending with a dot . and that's it. Thanks for all your effort to help me out! Kind Greetings, Mats 2014-11-06 20:12 GMT+01:00, Steffen N

[9fans] reattach to a rio session

2014-11-07 Thread András Hrubák
I connect plan9 by drawterm. After closing drawterm, how do I re-connect to its rio to see again windows which were started before? How do I reattach a window running e.g. 'rc' from other login session to the current?

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Oleg
On Fri, Nov 07, 2014 at 08:19:05AM +, Charles Forsyth wrote: > On 6 November 2014 21:05, Oleg wrote: > > > I looked at atexit() and atexitdont() and i don't understand why these > > functions are implemented with a static array instead of singly linked > > list? > > May be somebody with a gre

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Charles Forsyth
On 7 November 2014 09:44, Oleg wrote: > f malloc works like in linux (at first invocation allocate more bytes than > requested and then each malloc() use this already allocated by kernel area > of memory), i think this isn't a big performance impact. > I wasn't really thinking about performance;

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Oleg
On Fri, Nov 07, 2014 at 10:22:26AM +, Charles Forsyth wrote: > Yes, that's why I suggested fixing atexitdont to move any remaining values > down the array. How can i send a patch to 9front?

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Charles Forsyth
On 7 November 2014 10:57, Steffen Nurpmeso wrote: > Safety against asynchronous un-/registration can't be it, anyway. No, there's a lock. I meant avoiding too many possible interactions between low-level run-time functions and the rest of the library. (I'd consider atexit and exit to be lower-l

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Steffen Nurpmeso
Oleg wrote: |On Fri, Nov 07, 2014 at 08:19:05AM +, Charles Forsyth wrote: |> On 6 November 2014 21:05, Oleg wrote: |> |>> I looked at atexit() and atexitdont() and i don't understand why these |>> functions are implemented with a static array instead of singly linked |>> list? |> It

[9fans] Error booting with a new user.

2014-11-07 Thread Mats Olsson
Hi again! Actually it seems to be a cosmetic error but anyway I'd like to get it solved. This is what I get at bootup after ipconfig ... : -s: 'bin/-s' file does not exist rc: /rc/lib/rcmain:30 token EOF: syntax error init: starting /bin/rc term% So after the message I can boot my setup by just

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Oleg
On Fri, Nov 07, 2014 at 11:49:08AM +, Charles Forsyth wrote: > On 7 November 2014 10:57, Steffen Nurpmeso wrote: > > > Safety against asynchronous un-/registration can't be it, anyway. > > > No, there's a lock. I meant avoiding too many possible interactions between > low-level run-time > f

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Charles Forsyth
Not for atexit, but for some other functions, I've had to follow various trails in glibc, and it's just an intricate convoluted nightmare, so that probably colours my view.

Re: [9fans] reattach to a rio session

2014-11-07 Thread Anthony Sorace
> After closing drawterm, how do I re-connect to its rio to see again windows > which were started before? How do I reattach a window running e.g. 'rc' from > other login session to the current? Short answer: You can pre-arrange for this to work with command-line tools. Except in a very

Re: [9fans] reattach to a rio session

2014-11-07 Thread Skip Tavakkolian
if disconnection is the only issue (e.g. not changing ip addresses between disconnect/re-connect), aan(8) might be what you need. On Fri, Nov 7, 2014 at 1:44 AM, András Hrubák wrote: > I connect plan9 by drawterm. After closing drawterm, how do I > re-connect to its rio to see again windows whi

[9fans] acme & mouse wheel

2014-11-07 Thread Oleg
Hi. Does anybody known how to use mouse wheel to scroll acme window?

Re: [9fans] acme & mouse wheel

2014-11-07 Thread Kostarev Ilya
On p9p works out of the box. --  Kostarev Ilya On 7 Nov 2014 at 20:00:46, Oleg (lego12...@yandex.ru) wrote: Hi. Does anybody known how to use mouse wheel to scroll acme window?

Re: [9fans] acme & mouse wheel

2014-11-07 Thread andrey mirtchovski
http://plan9.bell-labs.com/wiki/plan9/mouse_scrolling/ On Fri, Nov 7, 2014 at 9:56 AM, Oleg wrote: > Hi. > > Does anybody known how to use mouse wheel to scroll acme window? >

Re: [9fans] acme & mouse wheel

2014-11-07 Thread trebol
Have you set the mouse to ps2intellimouse?

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread sl
> How can i send a patch to 9front? You can file an issue and link to your patch here: http://code.google.com/p/plan9front/issues/list Or you can sign up for the 9front mailing list and post there: http://9front.org/lists.html sl

Re: [9fans] acme & mouse wheel

2014-11-07 Thread Mats Olsson
On my Raspberry Pi a cordless mouse with wheel worked out of the box and so did the cordless keyboard. Kind Regards, Mats 2014-11-07 18:25 GMT+01:00, tre...@india.com : > Have you set the mouse to ps2intellimouse? > > >

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread erik quanstrom
On Fri Nov 7 07:26:55 EST 2014, charles.fors...@gmail.com wrote: > Not for atexit, but for some other functions, I've had to follow various > trails in glibc, > and it's just an intricate convoluted nightmare, so that probably colours > my view. calling malloc from the atexit path will pull mall

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Steffen Nurpmeso
Charles Forsyth wrote: |On 7 November 2014 10:57, Steffen Nurpmeso wrote: | |> Safety against asynchronous un-/registration can't be it, anyway. | |No, there's a lock. I meant avoiding too many possible interactions between I thought more about reentrancy because he referred to Linux. But o

Re: [9fans] acme & mouse wheel

2014-11-07 Thread Oleg
On Fri, Nov 07, 2014 at 05:25:51PM +, tre...@india.com wrote: > Have you set the mouse to ps2intellimouse? No. Thank you for the hint!

Re: [9fans] acme & mouse wheel

2014-11-07 Thread Oleg
On Fri, Nov 07, 2014 at 10:28:18AM -0700, andrey mirtchovski wrote: > http://plan9.bell-labs.com/wiki/plan9/mouse_scrolling/ Thank you! That has helped me.

Re: [9fans] atexit() & atexitdont()

2014-11-07 Thread Oleg
On Fri, Nov 07, 2014 at 02:53:11PM -0500, erik quanstrom wrote: > On Fri Nov 7 07:26:55 EST 2014, charles.fors...@gmail.com wrote: > > > Not for atexit, but for some other functions, I've had to follow various > > trails in glibc, > > and it's just an intricate convoluted nightmare, so that proba

Re: [9fans] Persistent font in Acme.

2014-11-07 Thread Mats Olsson
I like the idea of making a small script but I couldn't make it work. What I want is to get this to execute without to much typing: term%acme -f /lib/font/bit/lucidasans/latin1.10.font and that's it. Any suggestion for a script and how to execute it would be most appreciated. Kind greetings, Mats

Re: [9fans] Error booting with a new user.

2014-11-07 Thread Quintile
the first time you login as a new user you need to run the newuser script, I think it is /sys/lib/newuser (no plan9 to hand) check the plan9 wiki -Steve > On 7 Nov 2014, at 12:17, Mats Olsson wrote: > > Hi again! > > Actually it seems to be a cosmetic error but anyway I'd like to get it

Re: [9fans] Persistent font in Acme.

2014-11-07 Thread sl
> I like the idea of making a small script but I couldn't make it work. > What I want is to get this to execute without to much typing: > term%acme -f /lib/font/bit/lucidasans/latin1.10.font and that's it. > Any suggestion for a script and how to execute it would be most > appreciated. Anything yo

Re: [9fans] Persistent font in Acme.

2014-11-07 Thread Mats Olsson
Hi sl! Thanks for your input. I tried something similar and got an error message. I tried your suggestion and got the same error message. It says: "rc: /bin/a:3: token EOF:syntax error". So something else must be added. Thanks! Kind Regards, Mats 2014-11-07 20:03 GMT, s...@9front.org : >> I like

Re: [9fans] Persistent font in Acme.

2014-11-07 Thread sl
> Thanks for your input. I tried something similar and got an error > message. I tried your suggestion and got the same error message. It > says: "rc: /bin/a:3: token EOF:syntax error". So something else must > be added. Thanks! Make sure the file ends with a newline. My example works on my syste

Re: [9fans] Error booting with a new user.

2014-11-07 Thread Mats Olsson
Hi Steve! Thanks for your input! I checked the docs, manuals and the wiki before trying to add another user. After adding the user I tried to reshape the environment I had made as Glenda and I think something went wront there. Kind Greetings, Mats 2014-11-07 19:23 GMT, Quintile : > the first tim

Re: [9fans] Persistent font in Acme.

2014-11-07 Thread Mats Olsson
A followed your advise and got "permission denied" so I executed "chmod 755 ..." and then it worked. Thanks a lot! I really appreciate your help. Kind Greetings, Mats 2014-11-07 21:22 GMT, s...@9front.org : >> Thanks for your input. I tried something similar and got an error >> message. I tried yo

Re: [9fans] Persistent font in Acme.

2014-11-07 Thread erik quanstrom
> So, you could make a script $home/bin/rc/a: curious choise. not that you'd want to use this anymore, but ... ; cat /bin/a: #!/bin/rc rfork e flop=/dev/fd0disk if(! test -r $flop) flop='#f'/fd0disk if(! test -f /srv/dos) dossrv >/dev/null [2]/dev/null unmount /n/a:>[2]/dev/null