Re: [9fans] segfree() - more details?

2009-04-02 Thread Charles Forsyth
in segattach(2) suggests that there is some mechanism to associate disk file portions with memory segments (that being what Unix's MMAP does, roughly), not really: it will read initial text and data from an image, but that's it. apparently if you segfree your data space it will reinitialise it

[9fans] outside the gsoc2009

2009-04-02 Thread hugo rivera
Sadly for me, I found out that I do not qualify as a student (I thought I did, but I don't). Anyway, I've seen some interesting ideas for plan 9 and inferno, most of them out of my reach. But I think some of them are easy enough for me to try them (hope so!). So I would like to give it a try to

Re: [9fans] segfree() - more details?

2009-04-02 Thread Charles Forsyth
OK, I believe you, but you're not telling me _how_ the initial text and data from an image is specified. And that is really the bit I want to know about :-) it's set by exec.

Re: [9fans] GSOC: Gitfs

2009-04-02 Thread Eric Van Hensbergen
On Thu, Mar 26, 2009 at 4:54 PM, Federico G. Benavento benave...@gmail.com wrote: you could also use uriel's port of git to Plan 9, I think Googling fails me, where? -eric

Re: [9fans] GSOC: Gitfs

2009-04-02 Thread sqweek
2009/4/2 Eric Van Hensbergen eri...@gmail.com: On Thu, Mar 26, 2009 at 4:54 PM, Federico G. Benavento benave...@gmail.com wrote: you could also use uriel's port of git to Plan 9, I think Googling fails me, where? I remember he started the port but I'm not sure he got it functional. I

Re: [9fans] segfree() - more details?

2009-04-02 Thread cinap_lenrek
I think russ has added this functionality to his kernel. The sourcecode of his linuxemu had commented out lines that used special segname with a filename to map elf-files into memory. /n/sources/contrib/rsc/linuxemu/linuxemu.c: /* * mmap, if it were handled by the kernel * void* _mmap(char

Re: [9fans] outside the gsoc2009

2009-04-02 Thread hugo rivera
2009/4/2, erik quanstrom quans...@quanstro.net: if you do a server as well, i'd be able to put it to use. great. Just have to wait for the gsoc results. -- Hugo

Re: [9fans] segfree() - more details?

2009-04-02 Thread ron minnich
On Thu, Apr 2, 2009 at 4:44 AM, Charles Forsyth fors...@terzarima.net wrote: OK, I believe you, but you're not telling me _how_ the initial text and data from an image is specified.  And that is really the bit I want to know about :-) it's set by exec. see port/fault.c to see what happens on a

[9fans] rc output redirection

2009-04-02 Thread hugo rivera
Hi, I got confused by output redirection, even though I have used it like a thousand times: cmd1 | cmd2 | cmd3 this pipes cmd1 stdout to cmd2's stdin and finally cmd2's stdout is piped to cmd3's stdin. All cmd[1-3] stderr are displayed (presumably) at the terminal along with cmd3's stdout, right?

Re: [9fans] rc output redirection

2009-04-02 Thread lucio
If this is the case, how can I redirect cmd1's stderr to cmd3's stdin instead of cmd2's? or both? It's a pipe_line_, not a directed graph. You could write a wrapper to do what you want quite easily, but expecting a simple, generic shell notation to do it is asking a bit much. At least, I

Re: [9fans] segfree() - more details?

2009-04-02 Thread lucio
see port/fault.c to see what happens on a page fault in the text segment. Yep, I remember trying to understand that part from a rather superficial study of the sources. Nemo's commentary will no doubt prove itself invaluable once again, as soon as I track it down (time to print a copy). And

Re: [9fans] J9P/StyxLib

2009-04-02 Thread Roman V Shaposhnik
On Wed, 2009-04-01 at 22:02 +0200, Bernd R. Fix wrote: As I wrote in an earlier mail, I am not too deep into this licensing stuff, but I know what I would like to have for my software: I want it Open-Source - that's my basic 'statement'. For me this means: I am willing to share my ideas (and

Re: [9fans] typed sh (was: what features would you like in a shell?)

2009-04-02 Thread roger peppe
2009/4/2 fge...@gmail.com: On Thu, Apr 2, 2009 at 8:41 PM, John Stalker stal...@maths.tcd.ie wrote: What I most often miss in shell programming is a proper type system. You should have a look at alphabet. It is cool. http://www.vitanuova.com/inferno/man/1/sh-alphabet.html i certainly enjoyed

Re: [9fans] typed sh (was: what features would you like in a shell?)

2009-04-02 Thread tlaronde
I don't know if others have already hit this kind of problematic, but I was dealing with a fair amount of C code, usable both as a library and accessible by a shell. Plus debugging needs. So I was, again and again, writing a wrapper to access a C function from the shell. So I ended concluding

Re: [9fans] what features would you like in a shell?

2009-04-02 Thread LiteStar numnums
If you have to go to this level, wouldn't it be better to have a language for this? You probably wouldn't want this interactively, prototyping aside. On Thu, Apr 2, 2009 at 2:41 PM, John Stalker stal...@maths.tcd.ie wrote: so I'm writing to get your opinions. maybe there are thing that people

Re: [9fans] J9P/StyxLib

2009-04-02 Thread Bernd R. Fix
Roman V Shaposhnik schrieb: Not implying anything, just a question: what made you pick GPL in the first place? Thanks to everyone for sharing their views on the licensing issue. Quite a few statements and arguments to think about... Choosing an appropriate license for a project is even trickier

Re: [9fans] rc output redirection

2009-04-02 Thread Russ Cox
But when you do something like cmd1 | cmd2 |[2] cmd3 you get cmd1's stdout piped to cmd2's stdin; but my confusion begins here: is it cmd1's or cmd2's stderr that gets redirected to cmd3's stdin? maybe both? my guess is that ... why guess? % {echo cmd1 [1=2]} | {echo cmd2 [1=2]} | sed